KVM ‘Quick’ (n dirty) howto.
Friday, February 12th, 2010Introduction (off-topic)
Recently, I found myself a new job with http://inuits.be. A company that ONLY deals with open source and related stuff. Yes, I’m quite ecstatic about it myself! The first meeting went very well and after a small ‘test’ of my capabilities, I was asked to find out how KVM works and write a howto about it. So that is exactly what I have done… Below, you will find the results of my endeavors.
Introduction
What is KVM?
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. KVM also requires a modified QEMU although work is underway to get the required changes upstream.
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.
The kernel component of KVM is included in mainline Linux, as of 2.6.20.
KVM is open source software.
Source: http://linux-kvm.org.
So what does this mean? We don’t have to software emulate the system to run our virtual machines in and speed up virtualization dramatically. As you can read, we need a kernel module to get things working so we will start off with inspecting and adjusting our kernel.
