The Linux Foundation

Linux Weather Forecast/virtualization

From The Linux Foundation

This subsection of the Linux Platform Weather Forecast focuses on support for virtualization and containers.

Virtualization and containers are complimentary efforts which seek to allow different tasks to be isolated from each other on the same host system. In virtualization, the guest systems appear to be running on their own hardware; each guest system runs its own kernel. The container approach runs all guests under the same kernel in a way that isolates them from each other. Virtualization gives more complete isolation and allows guests to be running a different operating system than the host; containers, however, tend to be far more efficient.



Xen is a well-funded paravirtualization effort; it has been shipped in various forms by some distributors. It allows any operating system to run as a guest, but the guest kernel must be built specially to run under Xen.

Forecast: despite being at version 3.x, Xen has had a very slow path into the mainline kernel. The Xen developers have not always worked well with the kernel community, and have not always been interested in keeping their code current with current kernels. That notwithstanding, the core Xen support patches were merged for 2.6.23. Work continues on Xen, with the "balloon driver" (allowing the host to add memory to and remove memory from running guests) was merged for 2.6.26. Note, though, that some observers feel that technologies like KVM and Lguest (see below) will eventually displace Xen altogether.

For more information:

Kernel Virtual Machine (KVM)

KVM emerged out of the blue in October, 2006; it is an effort funded by Qumranet, a virtualization company still operating in "stealth mode." KVM is a full virtualization solution which is dependent on hardware support; as a result, it is relatively efficient but only works with certain recent processors. This code was merged for the 2.6.20 kernel.

Forecast: KVM is already in the mainline and has been generally well received. Certain aspects of the code - including the user-space API - are still stabilizing, though the worst should be past. SMP guest support for KVM was added for 2.6.23.

For more information:


Lguest is a simple virtualization project developed by Rusty Russell of IBM. It provides full virtualization on stock x86 hardware. The plan is to keep this code relatively simple, so it is unlikely to develop some of the features (live migration, for example) found in other virtualization solutions.

Forecast: Lguest was merged for 2.6.23. The "virtio" used to provide virtualized network and disk devices for lguest guests, was merged for 2.6.24, with enhancements merged for 2.6.25. In the longer term, expect to see lguest ported to architectures beyond i386.

For more information: An introduction to lguest (January, 2007)


There are several container-oriented projects all hoping to have their support code included in the kernel in the near future. The blocking point in most cases is the same: the kernel developers have no interest in merging separate support structures for each container implementation. So the container developers have been told to come up with a common infrastructure which works for all of them.

The needs of the container projects are about the same in each case: every globally-visible resource in the kernel must be moved behind a layer of indirection so that each container can have its own view. These resources include filesystems, process IDs, devices, network interfaces, interprocess communication mechanisms, even the current system time. In addition, most of these projects need some sort of resource control mechanism which can be used to keep containers from interfering (too much) with each other.

There is a core piece of infrastructure called "process containers" which is intended to tie together all container-related technologies in the kernel. Process containers are also used for the CFS group scheduling feature.

Forecast: The process of reworking various bits of container infrastructure and merging them into the mainline continues. As of 2.6.27, the network namespace work will be close to complete. Some pieces which remain outside include complete user namespaces, better sysfs support, and a mechanism for checkpointing and restoring running containers.

For more information:


This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.

[Article] [Discussion] [View source] [History]