It’s looks like that I’m off and hiatus from blog for a while so it’s time to starting a new article and hope it’s not for the last one 😀 .
KVM (Kernel-based Virtual Machine) is currently popular terms among the virtualization technology. What makes it popular and become the strong competitor for Xen Hypervisor are the technology behind KVM and Red Hat decision to move focus on KVM instead of Xen for next release Red Hat Enterprise Linux 6.0. What makes KVM gains an advantage on the technology side are the inclusion KVM module into Linux kernel so we do not need a patch or different kernel as we need for Xen Hypervisor. Beside the two virtualization technology above, those are various virtualization technology running on Linux : VMWare, VirtualBox, OpenVZ etc but Xen and KVM are quite popular among others.
SUSE Linux Enterprise Server 11 was added KVM beside Xen Hypervisor on Service Pack 1 release. openSUSE 11.3 released on July 15, 2010 also appendÂ KVM as Virtualization package beside the default Xen Hypervisor. Following article covers KVM installation on openSUSE 11.3 64 bit (the 32 bit installation should be similar).
- Install KVM module by using YAST orÂ Zypper.Â Install following package : kvm, libvirt, libvirt-python, virt-utils, yast2-vm, virt-manager, virt-viewer, bridge-utils, vm-install. We may also install virtualization stuff by using YAST | Virtualization | Install Hypervisor and Tools and then adds KVM package withinÂ YAST | Software | Software Management, but the second tips will also installingÂ Xen Hypervisor . SLES 11 SP1 has different way to install KVM by asking which Virtualization technology should be install if we choose second tips. I don’t know why openSUSE take different method to install and not as simple as SLES 11 SP1 has.
- Activate Virtual Daemon. Open YAST | System | System Services (runlevel) and mark libvirtd as enable services
- Open YAST | Virtualization | Virtual Machine Manager
- If Virtual Machine Manager has noÂ “localhost (QEMU) option, add the KVM instance by clickingÂ menu File | Add Connection and choose KVM/QEMU and then click Connect
- After that, we may create a new virtual appliance by clickÂ New and follows theÂ wizard.
Managing KVM on openSUSE/SLES seems to be similar as managing Xen Hypervisor because both virtualization using same front-end application (libvirt) on openSUSE/SLES YAST. KVM need a motherboard supporting virtualization extensions as it’s feature, e.g : Intel VT (Virtualization technology) or AMD-V. To check whether your motherboard supporting virtualization extension, run the following command on konsole/terminal :
Intel VT :
grep --color vmx /proc/cpuinfo
grep --color svm /proc/cpuinfo
Some motherboard disable virtualization extension by default so you must check BIOS setting to see whether virtualization extension has been activated or not.