17
KERNEL BASED VIRTUAL MACHINE Kernel Based Virtual Machine Setup Pradeep kr. Yadav pradeepkumaryadav2102@gmail. com

Kvm setup

Embed Size (px)

Citation preview

Page 1: Kvm setup

KERNEL BASED VIRTUAL MACHINE

Kernel Based Virtual Machine Setup

Pradeep kr. [email protected]

Page 2: Kvm setup

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.

Page 3: Kvm setup

CONTENTS

1.SERVER SETUP2.CLIENT SETUP3.CONCLUSION

Page 4: Kvm setup

1.INSTALL NFS SERVER

# apt-get install nfs-kernel-server

SERVER SETUP3

Page 5: Kvm setup

2.Create the exports/images file system and give permissions

# mkdir -p /exports/images# chmod -R 777 /exports# chmod -R 777 /exports/images

4

Page 6: Kvm setup

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

Page 7: Kvm setup

4. Add the following line to /etc/hosts.allowrpcbind mountd nfsd statd lockd rquotad : ALL

6

Page 8: Kvm setup

5. Change the group and owner of /exports/images/ to ‘nogroup’.# chown nobody:nogroup /exports/images/

7

Page 9: Kvm setup

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

Page 10: Kvm setup

1. Install the required packages... # apt-get install nfs-common

CLIENT SETUP9

Page 11: Kvm setup

10

2. Add the following line to /etc/hosts.allow.rpcbind mountd nfsd statd lockd rquotad : ALL

Page 12: Kvm setup

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

Page 13: Kvm setup

4. Install KVM and supporting packages

# sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager

12

Page 14: Kvm setup

5. Create User # sudo adduser user_name # sudo adduser user_name libvirtd

13

Page 15: Kvm setup

6. Open Virtual Machine Manager Application and Create Virtual Machine# virt-manager

14

Page 16: Kvm setup

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.

Page 17: Kvm setup

THANK YOU!