The first step is to install the required KVM by following the instructions from the Ubuntu community page (
). To check if your system’s processor supports hardware virtualization, use this command:
$ egrep -c '(vmx|svm)' /proc/cpuinfo
If the output is 0, it means that your CPU doesn’t support hardware virtualization.
The next step is to install the CPU checker:
$ sudo apt-get install cpu-checker
Now you can check if your CPU supports KVM by issuing the following command:
If you see this message:
"INFO: Your CPU supports KVM extensions
INFO: /dev/kvm exists
KVM acceleration can be used"
It means you can run your virtual machine faster with the KVM extensions.
However, if you see this:
"INFO: KVM is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
and then hard poweroff/poweron your system
KVM acceleration can NOT be used"
You need to go to the BIOS setup and enable Intel VT.
For Ubuntu Lucid (10.04) or later, use the following command:
$ sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
Next, add your <username> account to the kvm and libvirtd groups:
$ sudo adduser your_user_name kvm
$ sudo adduser your_user_name libvirtd
After the installation, you need to log in again so that your user account becomes an effective member of the kvm and libvirtd user groups. The members of these groups can run virtual machines. You can verify that your installation has been successful with the following command:
$ sudo virsh -c qemu:///system list
Your screen will paint the following if the installation was successful:
Id Name State