Dec 4, 2011

Installing Microsoft Hyper-V on Windows 2008R2 nested in VMWare Workstation 8


I was trying to create a lab enviroment to test Hyper-V high availability.

After confirming that I have enabled virtualisation of VT-x/EPT like in picture bellow

I have tried to install Hyper-V role. I succeded!!!

But, the problem appeared when tried to start virtual machine.
Error stated (Hyper-V error ID 20144)

*****************
Description:
The Virtual Machine Management Service failed to start the virtual machine '%machinename%' because one of the Hyper-V components is not running (Virtual machine ID %ID_of_the_virtual_machine%).
 *******************

After reading a lot of docs there is one thing to do if you want to run nested VMs.



Edit VMX configuration file of virtual Hyper-V server and at the end add the following line:

hypervisor.cpuid.v0 = "FALSE"

Update (2.7.2013.): VMX configuration file is VMWARE Workstation configuration file for Virtual Machine runned under VMWare Workstation . It is located within folder (or directory or whatever you call it) where virtual HDDs of that VM are located. For examle, D:\VirtualMachines\Windows2008R2HyperV\. Under folder Windows2008R2HyperV, you should find VMX configuration file.

Machine must be turned off. After adding line, power on virtual Hyper-V server and everything will be ok.

You don't need to reinstall anything. You can reconfigure existing machine and make it work.

I think that VMWare should make this automatic.

Post me if it's not working or explanation is not clear.

39 comments:

  1. great post this has been busting my balls in my lab all day

    thanks

    ReplyDelete
    Replies
    1. Thanks for your help I am very much thankful to you. i am getting this error since One month.finally It worked and its amazing.

      Delete
  2. That was bustin' my b*** several days :)... I'm happy the article helped you! Cheers!

    ReplyDelete
  3. Perfect! This thing busted several of myths. Where did you find those information, especially about adding new value to the config file? Thanks a lot!
    draq

    ReplyDelete
  4. Hi! I've found it in VMWARE documentation. There are articles that are explaining how to enable nested virtualization, where another hypervisor is a guest and you have another virtual machine nested.

    Maybe I can find a hyperlink to send it to you, if you need it.

    At the moment, you have a lot of articles like this all over the web.

    Velimir

    ReplyDelete
  5. Thank you very much from Germany for this article. It helped me use a test drive downloaded from Citrix.

    Karlheinz

    ReplyDelete
  6. Works perfectly! Thanks for posting it on the web ;)

    ReplyDelete
  7. Thanks velimir Kojic..
    it's very usefull..
    could u give me hyperlink about VMWare documentation???

    Regards,
    Chazali Husni

    ReplyDelete
    Replies
    1. I've used this documentation while creating this article.

      http://communities.vmware.com/docs/DOC-8970/diff?secondVersionNumber=38

      Delete
    2. Its working fine and very good share by admin , Thanks for such a sharing ............

      Delete
  8. Just working.
    Thanks. :)

    ReplyDelete
  9. Excellent! Thank you very much!

    ReplyDelete
  10. I have amd brazos dual core c60 which supports according to amd software,
    esxii5 with hypervior is working fine,
    but when adding the mentioned hypervisor.cpuid.v0 = "FALSE",the vmware 8 is giving fault occurance,
    disabling this parameter hyper v is installing with no error ,but when I launch any oparating system it is giving one of the hyper v component is missing.

    ReplyDelete
    Replies
    1. I've tested this configuration on Intel i7 CPU.

      Do you have a chance to test your configuration on Intel CPU? Or to test it on someones system with AMD CPU to see that system's behavior...

      Delete
    2. No!I am testing for lab purpose.Also Itried to install the hyper v in that amd machine in separate partition like a base machine,that time the virtual hdd was not loading,my question is that microsoft HAV tool as well as amd toolare are giving positive result,wil I have to update 2008 r2 for this comaptibility or the problems lises some where else

      Delete
    3. Hi!

      I'm gonna ask a stupid question, maybe. Is CPU virtualisation support enabled in BIOS?

      Delete
  11. Thanks a lot Sir!!! I have wasted a day on this issue...

    ReplyDelete
  12. Guys i am having a issue with Hyper-V ..can you guys give me a clue to fix this .. Basically i am running a Win7 where i am using VMware to create my small lab. So i start installing Windows Server 2008R2 and i am using now from this OS Hyper V to create some virtual machines. Since i am trying to install the first virtual machine, a win7 iso i get this message error ..

    [img]http://i32.servimg.com/u/f32/11/22/20/87/vm110.jpg[/img]

    Can anybody help me here?

    Regards []

    ReplyDelete
    Replies
    1. Check the Event Viewer on Hyper-V server machine to get more detailed error msg.

      Post iz here.

      Delete
  13. Edit VMX configuration file of virtual Hyper-V server and at the end add the following line:

    hypervisor.cpuid.v0 = "FALSE"

    Where is the file that this has to be added to at, like what is the filename and location?

    Thanks

    ReplyDelete
    Replies
    1. VMX file is named by a name you gave to a VM (virtual_machine_name.vmx). File is located in a VM folder, where virtual HDDs are, etc...

      Delete
  14. Follwed the procedure on Vmware 8 and now it works fine

    Thanks

    ReplyDelete
  15. Thank you for information... :D

    ReplyDelete
  16. Thanks for article, but in my case it didnt work. I have error message: The virtual machine could not be started because the hypervisor is not running.
    Do you know what is all about?

    ReplyDelete
    Replies
    1. Could you get me your Event ID?

      P.S. Sorry for not replying for so long time, I was pretty busy :(.

      Delete
  17. Thanks a lot!!! It saved me a lot of time!!!!

    ReplyDelete
  18. Awesome!! thanks for posting this setting :)

    ReplyDelete
  19. Dear Sire i tried the same but its not working for me when i add the Line hypervisor.cpuid.v0 = "FALSE" and restart the host machine i get an error while connecting back to the virtual server it self in vmware they are sayin that a folder is missing ...when i remove the line it works back again normaly any help pls ?? you can email me the solution s-smoove20@live.com thanx

    ReplyDelete
    Replies
    1. Check are you adding something else besides the line "hypervisor.cpuid.v0 = "FALSE" ". If you add some unrecognizible characters in configuration, it could make problems.

      Delete
  20. where do i VMX configuration file
    m using VMware fusion on MAC, and want to run nested hyper-v in that...
    so to correct configuration file, m nt able to find it.

    ReplyDelete
    Replies
    1. VMX file is named by a name you gave to a VM (virtual_machine_name.vmx). File is located in a VM folder, where virtual HDDs are, etc...

      I don't know does this works on Fusion and on MAC, but you could give it a try.

      Delete
  21. Thanks a lot, It worked for me.

    ReplyDelete
  22. Hi after i have done as you told, the error still show up with hypervisor is not running

    ReplyDelete
    Replies
    1. Hi,

      I have the same issue... Could you please let me know if you found a soulution for it ? thanks !

      Kurt

      Delete
    2. Unfortunately, I found no other solution for this problem, expect this one, that I explained above. It worked every time, for me.
      Could you post an error you get when trying to boot?

      Delete
  23. Thanks a lot the useful info. It's helped me saving a lot of time.

    ReplyDelete
  24. My colleague is working inside VMware Workstation and he can boot VM's inside a VM. I use Windows8 with Hyper-V inside Hyper-V and I can not power up my VM...

    Is there some way to accomplish this when using Hyper-V inside Hyper-V?

    ReplyDelete
    Replies
    1. Honestly speaking, I have not tried this and I probably will not in near future. If I make this, I'll publish a tutorial how to do it.

      Sorry :(.

      Delete