Operating System-Level Virtualization Explained

This kind of server virtualization is a technique where the kernel of an operating system allows for multiple isolated user-space instances. These instances run on top of an existing host operating system and provide a set of libraries that applications interact with, giving them the illusion that they are running on a machine dedicated to its use. The instances are known as Containers, Virtual Private Servers or Virtual Environments.

Operating System-Level Virtualization

Operating system level virtualization is achieved by the host system running a single OS kernel and through its control of guest operating system functionality. Under this shared kernel virtualization the virtual guest systems each have their own root file system but share the kernel of the host operating system.

This is a special case of Hosted Virtualization where the hypervisor (the container) has very limited functionality, relying on the Host OS for CPU scheduling and memory management. If you prefer, this method, which uses virtualization at the OS level, doesn’t even include the use of a real hypervisor; instead, the virtualization capabilities are part of the hosting operating system, which performs all the functions of the hypervisor.

Operating System-Level Virtualization

In other words, OS level virtualization is based on the creation of isolated containers or partitions on a single physical server, and the use of OS instances for each guest application environment to work independently of the other partitions. With this technique, you install the virtualization software layer on top of the operating system and all of the guest systems run on top of this layer using the same operating system as the host OS but with each guest having its own resources and running in complete isolation from the other guests.

It can be argued that this is not virtualization in the strict sense of the term; rather a technique that just allows for machine consolidation.

Examples of OS level virtualization are OpenVZ, Virtuozzo, or Solaris Zones.

Advantages of OS Level Virtualization

  • This form of virtualization usually imposes little or no overhead thereby ensuring most of the machine’s resources are available to the applications running in the containers;

  • This is a cost-effective and efficient solution for creating similar guests, but it’s only practical for certain situations. It is an ideal approach for web hosting companies which have multiple virtual web servers running on a single box or blade. This is very convenient because patches or modifications can be made to the host server and they will instantly be applied to all of the containers. Another example would be a company that has to manage multiple SQL databases or any other scenario where many similar or identical servers need to be hosted or managed within the same datacenter.

Limitations of OS Level Virtualization

This approach typically limits operating system choice. Containerization usually means that every guest OS must be identical or similar to the host in terms of version number and patch level. For example, with Linux as the host operating system, only Linux distributions can be run as the guest operating systems. This can cause problems if you want to run different applications in the containers, since applications are often certified for only a certain OS version and patch level. It is not possible for a Linux guest system designed for the 3.0.9 version of the kernel to share a 3.1.1 version kernel.

1 comment:

Unknown said...

Thank you! Really helpful material.