Linux virtualisation with KVM

Summary

At the Chemnitz Linux Days 2007, Jörg Rödel, a kernel developer at AMD, presented KVM, the Kernel Virtual Machine. Alongside established technologies such as Xen, KVM was just emerging as a lean virtualisation solution. The talk explained KVM, the underlying emulation layer QEMU and AMD’s hardware virtualisation AMD-V.

What is KVM?

KVM turns the Linux kernel itself into a hypervisor. Instead of a separate virtualisation system below the operating system, KVM uses the virtualisation features of modern processors; at AMD this technology is called AMD-V, at Intel VT-x. To Linux, every virtual machine is a normal process that can be managed with the usual tools.

QEMU emulates the hardware a guest system expects, such as disks, network cards and graphics. KVM ensures that the guest’s processor code runs directly, and therefore quickly, on the real hardware.

Why it was a turning point

KVM had entered the official kernel with Linux 2.6.20 a few weeks before the talk, whereas Xen was maintained outside the main branch for a long time. This closeness to the kernel made KVM the winner: today it is the basis of Proxmox VE, OpenStack, many cloud providers and virtualisation on Linux in general. The talk therefore came at exactly the moment this development began.

Ideas

  • With KVM, the Linux kernel itself becomes the hypervisor.
  • To the host system, virtual machines are normal processes.
  • QEMU emulates devices, KVM runs the processor code directly.

Insights

  • Acceptance into the kernel’s main branch can decide the success of a technology.
  • Hardware support in the processor made virtualisation lean and fast.

Facts

  • KVM entered the official kernel with Linux 2.6.20 at the beginning of 2007.
  • AMD-V is AMD’s hardware virtualisation; Intel’s counterpart is called VT-x.
  • The speaker was Jörg Rödel from AMD Saxony.

References

Remarks

  • Jörg Rödel spoke again at the Chemnitz Linux Days in 2016, then about modern TCP in the Linux kernel.

Recommendations

  • Use grep -E 'svm|vmx' /proc/cpuinfo to check whether your processor supports hardware virtualisation.
  • Use a management layer such as libvirt or Proxmox VE for KVM instead of QEMU command lines by hand.

Open the programme item

Search the Web Archive

Found a mistake or have something to add? Get in touch.