Installation steps for KVM(Kernel based Virtual Machine):
Step 1: First criteria for a system for creating a kernel based virtual machine , Check whether the
system supports hardware virtualization or not. By implementing the following command:
egrep -c '(vmx|svm)' /proc/cpuinfo
if the output is 0 , then the system doesnot support hardware virtualisation
if the output is 1 or more than 1, then the system supports hardware virtualisation
Step 2: To check the system architecture, give the following command
arch
or
uname -m
if the output is x86_64 then the system has 64 bit kernel
if the output is i386,i486,i586 and i686 represents 32bit kernel
Step 3: install the KVM and its supportive packages, by giving the following command
sudo apt-get install qemu-kvm libvirt-bin bridge-utils
Step 4: check the changes that have been done inside the kernel, user name will occur defaultly after
the execution of the given command
sudo cat /etc/group
Step 5: Execute the following command to see whether the two users have been created
sudo cat /etc/passwd
1. libvirt-qemu
2. libvirt-dnsmasq
Step 6: Verify the installation of KVM by the following command
virsh -c qemu:///system list
Step 7: Install Virtual manager by the following command
sudo apt-get install virt-manager
Step 8: After installation just open the virtual manager by giving the following command
virt-manager
Step 9: If any error thrown , then install the qemu system by the following command
sudo apt-get install qemu-system
Step 10: After installation again open the virtual manager by running the following command
virt-manager
To uninstall the KVM use the following command:
apt -get autoremove