Search code examples
windowsvirtualizationvirtual-machinehyper-v

Hyper-V causes the error "sorry, this application cannot run under a virtual machine"


After installing Hyper-V in the windows, I get the following error for running a game in my windows. Of course I am not running it in the virtual machine. I want to run the game in the PC itself that I installed the Hyper-V.

sorry, this application cannot run under a virtual machine

Even I tried to stop the Hyper-V service inside the Hyper-V management but that doesn't work for me and I get the same error. Please help me find a solution to this.

Thanks.


Solution

  • I found a good solution. making an entry in the boot loader, so that the hypervisor will not start by choosing that option while restarting the system. here is the steps to this:

    1.At the command prompt, type the following:

    bcdedit /copy {default} /d "No Hypervisor"
    

    2.The above command should say: The entry was successfully copied to {guid}. Copy that guid to the clipboard including the curly braces.

    3.Now, type the following command:

    bcdedit /set {guid} hypervisorlaunchtype off
    

    In the above command, replace {guid} with what you copied in step 2. I found the solution here : Hyper-V and VMware Workstation on the same computer. It works for me and I hope it will works for people having the same problem.