The different types of virtualisation

Mike Halsey MVP
Jun 30, 2011
Updated • Jan 1, 2013
Internet
|
7

Yesterday I wrote about new Type-0 hypervisors and how they're set to make a bit impact, not just for businesses with huge server farms, but also how that is going to filter down onto the desktop of home computers, perhaps as early as next year.  But what it a Type-0 hypervisor, indeed what are the Type-1 and Type-2 virtualisation I was talking about.  I thought I'd follow that article up with a quick guide for you.

Virtualisation, first of all, is the process of running an operating system on a computer that isn't natively installed there.  The whole OS is instead installed inside a file called a Virtual Machine (VM).  This file is comparable to a ZIP file on your compter in some ways, in fact this is probably the most useful analogy.

The contents of a VM aren't compressed as those in a ZIP file are, but what you have is a single file, say one called Win7Ult.VM for the sake of argument, that contains within it an entire copy of Windows 7 and additional installed software, with all the file and folder structures intact.

apple boot camp The idea is that you can do one of three things with a VM.  In its simplest terms, best epitomised by Microsoft's Virtual PC software or Parallels for the Mac, you can run a second operating system on your computer that resides in a window on your standard desktop.  In the second scenario you can boot from one of these virtual machines.  In this case it will appear that you're running a full operating system that's installed on your computer in the normal way.  Instead what you're really doing though is running the VM from within it's single data file.

Finally, and this is the most common usage now in servers, you can run virtualisation management packages, such as Microsoft's new Hyper-V in Windows Server 2008, that allows several virtual machines to be run concurrently, each one as if it had been booted from, and each one with it's own unique processor core and reserved memory.

This is the most common usage for virtualisation at the moment and it permits one server to perform multiple tasks.  It can be, to cite an example, a file server, an email server, a printer server and a web server simultaneously.  There's more than enough power in modern computers and processors to do all of this without breaking a sweat, so why just have a server run one of these tasks, when it can perform multiple ones simultaneously.

This brings me on to the different types of virtualisation.  For very first, Type-2 is best associated with Microsoft's Virtual PC.  This type essentially runs in an emulator.  This emulator pretends to be a computer, with its own processor, memory and such.  Instead, none of that hardware actually exists.  It's all virtual and the emulator interprets commands and sends the traffic back and forth with your real hardware.

This isn't very useful for many tasks as it is quite limited and won't easily give a virtualised OS access to hardware such as graphics cards, USB devices and printers.

This is where Type-1 virtualisation comes into play.  This type has full access to much of your computers hardware, including peripheral devices.  With Type-1 virtualisation though there is a driver which loads the virtual hard disk (VHD) but the virtual machine has full access to other hardware including the memory and processor.  Examples of Type-1 virtualisation are XP Mode in Windows 7 and Boot Camp on the Mac.  In the case of the latter, Type-1 virtualisation is required because the Mac uses a very different BIOS system to Windows.  Thus a driver is required to interpret traditional PC BIOS calls and translate them for the platform they're actually using.

Type-0 virtualisation is not available in many products but Windows Server 2008's Hyper-V (which is rumoured to also be making an appearance in some editions of Windows 8) is perhaps the best known example.  This type of virtualisation does away with the need for any interpretation layer between the hardware and the VM.  It won't work on every piece of hardware, for instance the Mac will always need a Type-1 interface for the reasons I explained earlier.  On Server systems though, and other computer systems where each VM is tailored for that specific hardware it the option that will provide the best performance and the lowest power consumption.

The world is now moving towards Type-0 virtualisation because the lack of any additional layers between the OS and the hardware will mean there's less for the computer to do.  This makes everything more efficient.  Type-2 VMs are now hardly seen and, with Type-1 VMs having made it to our desktops some years ago now, the future for virtualisation is looking very good indeed.

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. nonsoike said on June 30, 2011 at 6:01 pm
    Reply

    At present, any discussion on virtualization without mentioning Vmware, in my opinion, is incomplete.

  2. Roebie said on June 30, 2011 at 10:09 am
    Reply

    Quote “This brings me on to the different types of virtualisation. For very first, Type-0 is best associated with Microsoft’s Virtual PC.”
    I think you meant Type-2 here.

    1. Mike Halsey (MVP) said on June 30, 2011 at 10:28 am
      Reply

      @Roebie Fixed, cheers :)

  3. Jojo said on June 30, 2011 at 9:39 am
    Reply

    All this slow software virtualization crap will be dead and gone if Intel ever releases the hardware based virtualization they have been working on for years now.

    Big iron IBM and the now defunct plug compatible manufacturers (Amdahl and NAS/HDS) had hardware based virtualization back in the mid-1980’s. IBM’s version was called PR/SM or LPAR’s. Look it up on Wikipedia.

  4. Craig D said on June 30, 2011 at 9:27 am
    Reply

    “Windows Server 2008′s Hyper-V (which is rumoured to also be making an appearance in some editions of Windows 8) is perhaps the best known example.”

    I beg to differ!! VMware , the type-0 market leader, is perhaps the best known example, and by far the much MUCH better product.

    1. Mike Halsey (MVP) said on June 30, 2011 at 10:01 am
      Reply

      @Craig D

      I completely agree, but forgot about VMWare at the time.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.