Virtualization Techniques


By now every technical person must have heard of the term virtualization and probably has some general notions of what it can do. My guest is that very fews know how virtualization is achieved. Hopefully this blog will help reveal some of the virtualization mysteries.

In general, the term virtualization refers to the separation of a service request from the underlying physical delivery of that service. For standard x86 systems, there are two virtualization approaches:

  1. Hosted architecture – runs virtualization layer as an application on top of an OS.
  2. Hypervisor architecture (bare-metal) – run virtualization layer directly on top of the hardware.

Virtualization layer is the software responsible for hosting and managing all virtual machines on virtual machine monitors (VMM).

A virtual machine is piece of software container that can run its own OS and applications as if were a physical computer and it contains its own virtual CPU, memory, and I/O devices.

The central component of virtualization is the hypervisor. It is a platform that allows multiple OS to run on a host computer at the same time.

There are two types of hypervisor:

  1. Type 1 (native or bare-metal) – which is used in Hypervisor architecture.
  2. Type 2 (hosted) – which is used in the hosted architecture.

Each VMM running on the hypervisor implements the virtual machine hardware abstraction and it has to partition and share the CPU, memory and IO devices. Of all the pieces of a system that need to be virtualized, CPU presents the most interesting challenges. There are three techniques:

  1. Full virtualization using binary translation
  2. OS assisted virtualization or paravirtualization
  3. Hardware assisted virtualization

Full virtualization translates kernel code to replace nonvirtualizable instructions with new sequences of instructions that have the intended effect on the virtual hardware.

Paravirtualization involves modifying the OS kernel to replace non-virtualization instructions with hypercalls that communicate directly with the virtualization layer hypervisor.

Hardware assisted virtualization leverages the features that are specifically designed by hardware vendors to aid the VMM to do its job.

In conclusion, virtualization is a complex problem, but it seems like the virtualization pioneers like VMWare and others have figured out how to crack it. There is no doubt about the values that virtualization provides to companies, developers, and our environment. I will blog about its benefits in the post.

Advertisements
This entry was posted in Technology. Bookmark the permalink.

One Response to Virtualization Techniques

  1. Rick says:

    I feel a virtual environment is so much easier for management, disaster recovery, and deployment there is no question *that everyone including small business should employ this technology.

    *There are a few time that virtualization is not the right choice but this is rare.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s