install KVM on ubuntu
First of all you need to check your PC have the capability to use the kernel based virtualization.
Checking by using command below:sudo egrep '(vmx|svm)' --color=always /proc/cpuinfo
1 |
|
If you found this command output nothing, just switch to another virtualization software as your PC does not support KVM.
Then to install KVM component:sudo apt-get install qemu-kvm kvm-ipxe ikvm ubuntu-vm-builder libvirt-bin bridge-utils
After installation, the virtual network card is created by default, so just start virtual network card process:sudo service libvirt-bin start
Before making use of the virsh
command to operate VM in real, you need to grant permission to operate them by adding into group:sudo adduser rugal libvirtd
sudo adduser rugal kvm
Just replace rugal
with your own user name.
Now just check if you have the right command and permission to execute below:virsh --connect qemu:///system list --all
Our installation procedure proven sucessful as output below:
1 |
|