KERNELBASED
VIRTUALMACHINE
Kernel Based Virtual Machine
Setup
Pradeep kr. Yadav
pradeepkumaryadav2102@gmail.com
WHAT IS KVM ?
1
KVM (for Kernel-based Virtual Machine) is a full virtualization
solution for Linux on x86 hardware containing virtualization
extensions (Intel VT or AMD-V). It consists of a loadable kernel
module, kvm.ko, that provides the core virtualization infrastructure
and a processor specific module, kvm-intel.ko or kvm-amd.ko.
Using KVM, one can run multiple virtual machines running
unmodified Linux or Windows images. Each virtual machine has
private virtualized hardware: a network card, disk, graphics adapter,
etc.
KVM is open source software. The kernel component of KVM is
included in mainline Linux. The userspace component of KVM is
included in mainline QEMU.
CONTENTS
1.SERVER SETUP
2.CLIENT SETUP
3.CONCLUSION
1.INSTALL NFS SERVER
# apt-get install nfs-kernel-server
SERVER SETUP
3
2.Create the exports/images file system and give permissions
# mkdir -p /exports/images
# chmod -R 777 /exports
# chmod -R 777 /exports/images
4
3.Add the following two lines to /etc/exports
/exports *(rw,sync,no_root_squash,no_subtree_check)
/exports/images *(rw,sync,no_root_squash,no_subtree_check)
5
4. Add the following line to /etc/hosts.allow
rpcbind mountd nfsd statd lockd rquotad : ALL
6
5. Change the group and owner of /exports/images/ to ‘nogroup’.
# chown nobody:nogroup /exports/images/
7
To start, restart and stop commands for NFS server.
# service nfs-kernel-server start
# service nfs-kernel-server restart
# service nfs-kernel-server stop
8
1. Install the required packages...
# apt-get install nfs-common
CLIENT SETUP
9
10
2. Add the following line to /etc/hosts.allow.
rpcbind mountd nfsd statd lockd rquotad : ALL
3. On the client we can mount the complete export tree with one command.
# mount server_ip_address:/exports/images /var/lib/libvirt/images
11
4. Install KVM and supporting packages
# sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
12
5. Create User
# sudo adduser user_name
# sudo adduser user_name libvirtd
13
6. Open Virtual Machine Manager Application
and Create Virtual Machine
# virt-manager
14
CONCLUSION
This System Software is very useful and easy to implement in
Batch Systems. This package is used to reduce Hardware cost
and also security issues. It is implemented in Cloud
Computing.
Colleges can implement it in Labs to reduce hardware cost as
Students use on less amount of resources during exams and
Labs.
THANK
YOU!

Kvm setup

  • 1.
    KERNELBASED VIRTUALMACHINE Kernel Based VirtualMachine Setup Pradeep kr. Yadav pradeepkumaryadav2102@gmail.com
  • 2.
    WHAT IS KVM? 1 KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc. KVM is open source software. The kernel component of KVM is included in mainline Linux. The userspace component of KVM is included in mainline QEMU.
  • 3.
  • 4.
    1.INSTALL NFS SERVER #apt-get install nfs-kernel-server SERVER SETUP 3
  • 5.
    2.Create the exports/imagesfile system and give permissions # mkdir -p /exports/images # chmod -R 777 /exports # chmod -R 777 /exports/images 4
  • 6.
    3.Add the followingtwo lines to /etc/exports /exports *(rw,sync,no_root_squash,no_subtree_check) /exports/images *(rw,sync,no_root_squash,no_subtree_check) 5
  • 7.
    4. Add thefollowing line to /etc/hosts.allow rpcbind mountd nfsd statd lockd rquotad : ALL 6
  • 8.
    5. Change thegroup and owner of /exports/images/ to ‘nogroup’. # chown nobody:nogroup /exports/images/ 7
  • 9.
    To start, restartand stop commands for NFS server. # service nfs-kernel-server start # service nfs-kernel-server restart # service nfs-kernel-server stop 8
  • 10.
    1. Install therequired packages... # apt-get install nfs-common CLIENT SETUP 9
  • 11.
    10 2. Add thefollowing line to /etc/hosts.allow. rpcbind mountd nfsd statd lockd rquotad : ALL
  • 12.
    3. On theclient we can mount the complete export tree with one command. # mount server_ip_address:/exports/images /var/lib/libvirt/images 11
  • 13.
    4. Install KVMand supporting packages # sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager 12
  • 14.
    5. Create User #sudo adduser user_name # sudo adduser user_name libvirtd 13
  • 15.
    6. Open VirtualMachine Manager Application and Create Virtual Machine # virt-manager 14
  • 16.
    CONCLUSION This System Softwareis very useful and easy to implement in Batch Systems. This package is used to reduce Hardware cost and also security issues. It is implemented in Cloud Computing. Colleges can implement it in Labs to reduce hardware cost as Students use on less amount of resources during exams and Labs.
  • 17.