Run Hyper-V, VirtualBox and VMware on same Computer  

Page 1 of 2 12 LastLast
    Run Hyper-V, VirtualBox and VMware on same Computer

    Run Hyper-V, VirtualBox and VMware on same Computer

    How to Run Virtual Machines and any Vrtualization Software on Same Windows 10 Computer
    Published by Category: Virtualization
    29 Aug 2019
    Designer Media Ltd

    information   Information
    When hypervisor is enabled at boot of computer, only Type 1 Hypervisors like Hyper-V can run virtual machines. To run virtual machines on Type 2 Hypervisors like VirtualBox or VMware, hardware Hypervisor must be turned off.

    Microsoft Hyper-V is a Type 1 Hypervisor. When a Type 1 Hypervisor is enabled, Type 2 Hypervisors (VMware Workstation, VirtualBox etc.) virtual machines cannot run. Virtual machines can be created and their settings edited both in Virtual Box and VMware Workstation, but their virtual machines can't be run. When tried, an error message tells that VM cannot be started.

    Error message in VirtualBox:
    Run Hyper-V, VirtualBox and VMware on same Computer-vbox-cannot-run-vm.jpg

    Error message in VMware Workstation
    Run Hyper-V, VirtualBox and VMware on same Computer-vmware-cannot-run-vm.jpg

    Both VirtualBox and VMware error messages are quite confusing, not clearly telling what the problem is.

    The same is true the other way around. When hardware Hypervisor is disabled, VirtualBox and VMware virtual machines can be started, but running a Hyper-V VM shows an error message. Contrary to messages from Virtual Box and VMware it clearly tells the cause:
    Run Hyper-V, VirtualBox and VMware on same Computer-hyper-v-cannot-run-vm.jpg

    This is because of the difference between Type 1 (native) Hypervisors and Type 2 (hosted) Hypervisors. Type 1 must be enabled even before operating system is loaded. When enabled, even the physical Windows installation on the host computer runs on hypervisor. Type 2, hosted Hypervisors run on top of the OS. Windows is loaded first, and hypervisor only thereafter.

    An image from Wikipedia article Hypervisor shows the difference better than I could ever explain:
    Run Hyper-V, VirtualBox and VMware on same Computer-hypervisor.png

    Problem is that because Type 1 Hypervisor needs to be enabled or disabled at boot before the OS starts loading, it can't be toggled ON / OFF live when Windows is running. It always requires a restart.

    This tutorial will show how to setup your Windows 10 computer to run virtual machines regardless which hypervisor is enabled and virtualization software used.

    Method One: Turn Hypervisor ON or OFF as required
    Method Two: Create Boot Menu entries to select Hypervisor




    Method One

     Turn Hypervisor ON or OFF as required


    1.1) Open an elevated Command Prompt (tutorial), run the following command:

    bcdedit

    1.2) This shows a list of boot entries on your computer. On the list, find your current OS with identifier {current}, and check if it has hardware Hypervisor turned ON or OFF:
    Run Hyper-V, VirtualBox and VMware on same Computer-hypervisor-.jpg
    (Click / tap screenshots to enlarge.)
    • hypervisorlaunchtype AUTO, Hypervisor is ON and enabled
    • hypervisorlaunchtype OFF, Hypervisor is OFF and disabled

    1.3) If Hypervisor is ON, you can run Hyper-V virtual machines, but to run virtual machines in VirtualBox or VMware Workstation, you must turn Hypervisor OFF with following command:

    bcdedit /set {current} hypervisorlaunchtype off

    1.4) Restart the computer. You can now run VirtualBox and VMware Workstation virtual machines, while Hyper-V virtual machines cannot be started. To again run Hyper-V virtual machines, enter the following command and restart computer:

    bcdedit /set {current} hypervisorlaunchtype auto

    1.5) If your current OS has Hypervisor turned OFF, you can run VirtualBox and VMware Workstation virtual machines. To run Hyper-V virtual machines, run command shown in step 1.4 and restart, and command shown in step 1.3 when you want again run VirtualBox or VMware Workstation virtual machines.

    1.6) Important to remember is that to toggle Hypervisor ON or OFF, it always requires a restart.



    Method Two

     Create Boot Menu entries to select Hypervisor


    2.1) Check if Hypervisor is ON or OFF as told in steps 1.1 & 1.2.

    2.2) Copy the current OS boot entry to a new one:
    • If Hypervisor in current OS is ON, use following command (#1 in next screenshot):
      • bcdedit /copy {current} /d "W10 No Hypervisor"

    • If Hypervisor in current OS is OFF use following command:
      • bcdedit /copy {current} /d "W10 With Hypervisor"

    2.3) The new boot entry will be added last to list. Note its identifier (#2 in next screenshot). In my example case now, my current OS has Hypervisor ON. To edit the new boot entry to turn HyperVisor OFF, I enter the following command (#3 in next screenshot):

    bcdedit /set {identifier of new entry} hypervisorlaunchtype off
    Run Hyper-V, VirtualBox and VMware on same Computer-turn-hypervisor-off.jpg

    2.4)
    If Hypervisor on your current OS is turned OFF, turn it ON in new boot entry with following command:

    bcdedit /set {identifier of new entry} hypervisorlaunchtype auto

    2.5) Restart the computer. In this example case now, as my default OS has Hypervisor ON allowing Hyper-V virtual machines to run (#1 in next screenshot), selecting No Hypervisor option (#2) allows me to boot to Windows 10 with hypervisor OFF to run VirtualBox or VMware virtual machines:
    Run Hyper-V, VirtualBox and VMware on same Computer-my-boot-menu.jpg

    If your default OS has Hypervisor OFF, you could select option 2 to run Windows 10 with Hypervisor, allowing you to run Hyper-V virtual machines.

    That's it, geeks. Easy and fast to turn Hypervisor ON or OFF, depending on which virtualization software you want to use to run virtual machines.

    Kari+



  1. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #1

    Very nice!

    Thank you!
      My Computers


  2. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #2

    Thanks, John.
      My Computer


  3. Posts : 26
    Windows 10 Professional x64
       #3

    Hi Kari...
    Lots of steps on method one can be skipped by a single click,by using a portable,freeware app called: HyperVSwitch
    you could add it in the tut,for the lazy people like myself. :)
      My Computer


  4. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #4

    Oh, that totally goes above and beyond what my little script does, thanks!
      My Computers


  5. Posts : 1,524
    Win10 Pro
       #5

    @Kari nice tutorial. I picked up your tip of setting hypervisor on/off options on the boot menu sometime ago. Very handy, thanks.
      My Computers


  6. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #6

    Kamala said:
    Hi Kari...
    Lots of steps on method one can be skipped by a single click,by using a portable,freeware app called: HyperVSwitch
    you could add it in the tut,for the lazy people like myself. :)
    I've tested Hyper-V Switch. Because it either shows the UAC prompt, or requires a scheduled task to run it, I find it a bit clumsy. I'd rather create separate boot options for Hypervisor ON or OFF.

    Kari
      My Computer


  7. Posts : 26
    Windows 10 Professional x64
       #7

    Kari said:
    I've tested Hyper-V Switch. Because it either shows the UAC prompt, or requires a scheduled task to run it, I find it a bit clumsy. I'd rather create separate boot options for Hypervisor ON or OFF.

    Kari
    I run it as administrator,and reboot.
    You're right, that menu option thing is a very good idea. :)
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #8

    Kamala said:
    You're right, that menu option thing is a very good idea. :)
    Run Hyper-V, VirtualBox and VMware on same Computer-fin_flagorb80.png

    Mukava törmätä suomalaisiin täällä!


    Run Hyper-V, VirtualBox and VMware on same Computer-en-us_flagorb80.png

    Nice to meet other Finns here!

    The thing is, you must restart in any case. Type 1 Hypervisor, Hyper-V in this case, must be turned on or off before OS starts loading.

    What is means is that when prerequisities have been done once, PC restarts. It's then a simple, single click to choose to boot with or without a Hypervisor, when it's on boot menu.

    In addition, in cold boot using Hyper-V Switch, if your Hypervisor is off but you need it on, you must first boot to dekstop, run Hyper-V Switch, and restart. Boot menu eliminates this uncessary restart.

    Kari
      My Computer


  9. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #9

    Ahhh, yes, very good point @Kari - that does simplify things even more.
      My Computers


 

Tutorial Categories

Run Hyper-V, VirtualBox and VMware on same Computer Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:38.
Find Us




Windows 10 Forums