Hyper-V & VMware: Only One at a Time

Hyper-V is great. Just love the idea of using the integrated virtualization infrastructure to host virtual machines. It’s a promising combination and I expected some performance improvements which I thought would be great to compare against VMware’s Workstation, Microsoft’s biggest rival in the virtualization market.

Unfortunately, things didn’t turn out as planned.

Scenario 1: Add Hyper-V first, then VMware

  1. Add Hyper-V role to the server
  2. Create a virtual machine inside Hyper-V (in this case I tried with Windows XP SP2)
  3. Install VMware Workstation
  4. Create a virtual machine inside VMware (Windows XP SP2 again)
  5. Starting the VMware guest for the first time resulted in a crash of the host operating system

Hyper-V works well and getting VMware Workstation up and running was no problem at all but I soon realized that VMware crashes my host (has been quite a while since the last encounter with the BSOD) while booting the guest operating system. The reasons for that are still unclear but I guest that both need mutually exclusive access to the hardware virtualization at the same time: Hyper-V needs it to function and VMware needs it to host x64 operating systems. The same is true for Microsoft Virtual Server 2005 or Virtual PC 2007.

Note: I have no intentions to run a virtual machine in each of the virtualization solutions at once. One at a time is sufficient but does not work even with Hyper-V services completely shut down.

Several options come to mind to find out if there is any way to get both virtualization environments running.

Scenario 2: install VMWare first, add Hyper-V later on

  1. Install VMware Workstation
  2. Create a virtual machine inside VMware (Windows XP SP2)
  3. Add Hyper-V role to the server
  4. Create a virtual machine inside Hyper-V (Windows XP SP2)
  5. Hyper-V service refuses to start and VMware now only hosts 32-bit guest operating systems

Once Hyper-V has been uninstalled VMware was able to host x64 guest OSes again.

No Solution, only a Crappy Workaround

Currently, there seems to be no way to have both virtualization solutions operational at the same time. If you don’t mind rebooting the host system you may want to consider adding an extra entry to the boot loader:

  1. Open a command prompt and create a new entry by copying the default one:
    bcdedit /copy {default} /d "Boot without Hypervisor"
  2. After successful execution copy the GUID (ID of the new boot loader entry) including the curly braces to the clipboard.
  3. Set the HyperVisorLaunchType property to off:
    bcdedit /set {guid} hypervisorlaunchtype off

    Use the GUID you’ve previously copied to the clipboard.

From now on you will be able to choose between a boot with Hyper-V enabled or disabled. That saves you from removing the Hyper-V role whenever you are forced to use VMware.







6 Responses to “Hyper-V & VMware: Only One at a Time”

Could just load ESXi on it, it’s what Hyper-V is meant to compete with anyway. It’d give a lot higher performance benefit over workstation which is a Type 2 hypervisor as well.

AlphaAlien added these pithy words on Sep 03 08 at 20:41

AlphaAlien – Good point. I decided to give Hyper-V a try because I was curious whether a Windows Server integrated technology will meet my requirements, which for some other reason didn’t. From my point of view performance wasn’t bad at all, so it’s well suited for my development purposes. On the other hand VMware comes with more useful tools and less networking hassles.

Didn’t notice that ESXi is given away for free. Will definitely look into it. Thanks for the pointer.

Steve Graegert added these pithy words on Sep 04 08 at 09:52

Hi Steve – the problem is that you are trying to run a hosted virtualisation product on top of a hypervisor. Does this work with VMware Server on ESX or Xen? (I hear that you can run ESX in VMware Workstation but wouldn’t expect VMware Server to run on any hypervisor as the various hacks that hosted virtualisation technologies employ to emulate the hardware will be incompatible).

Interestingly you can run Hyper-V on Hyper-V (I know it’s bizarre but I needed to demo an installation and I was running the demo in a VM!)

Mark Wilson added these pithy words on Nov 05 08 at 00:48

Another point (for AlphaAlien really)

Hyper-V (+System Center) is competing with ESX (and the rest of VI) – not ESXi and Hyper-V Server (i.e. the standalone product – not the WIndows Server 2008 role) is a closer match to ESXi

Sadly, Microsoft still doesn’t have a credible alternative to Workstation (only VirtualPC) – which is why I need to run Windows Server 2008 and Hyper-V on my laptop!

Mark Wilson added these pithy words on Nov 05 08 at 00:52

Mark – thanks for your input. Unfortunately, my technical expertize in the area of virtualization is insufficient to fully comprehend the reasons for the problems I’ve experienced so far. Yet, your comment seems to make things clearer for me. Thank you.

Steve Graegert added these pithy words on Nov 05 08 at 13:20

[...] of the above, Steve Graegart did come up with a neat solution for those instances when you raally must run a hoste…. It involves dual-booting, which is a pain in the proverbial but, according to Steve, it [...]

markwilson.it » Running VMware Server on top of Hyper-V… or not added these pithy words on Nov 06 08 at 11:00

Leave a Reply

Bad Behavior has blocked 1664 access attempts in the last 7 days.