Run Hyper-V, VirtualBox and VMware on same Computer  

    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:
    Name:  VBox cannot run VM.jpg
Views: 366
Size:  28.0 KB

    Error message in VMware Workstation
    Name:  VMware cannot run VM.jpg
Views: 352
Size:  17.9 KB

    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:
    Name:  Hyper-V cannot run VM.jpg
Views: 351
Size:  28.2 KB

    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:
    Name:  Hypervisor.png
Views: 351
Size:  11.0 KB

    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




    Run Hyper-V, VirtualBox and VMware on same Computer Method One Run Hyper-V, VirtualBox and VMware on same Computer

     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:
    Click image for larger version. 

Name:	Hypervisor ON.jpg 
Views:	19 
Size:	108.1 KB 
ID:	244849
    (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.



    Run Hyper-V, VirtualBox and VMware on same Computer Method Two Run Hyper-V, VirtualBox and VMware on same Computer

     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
    Click image for larger version. 

Name:	Turn Hypervisor OFF.jpg 
Views:	12 
Size:	71.2 KB 
ID:	244853

    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:
    Click image for larger version. 

Name:	My Boot Menu.jpg 
Views:	15 
Size:	44.8 KB 
ID:	244854

    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. johngalt's Avatar
    Posts : 2,084
    Windows 10 Pro X64 Insider Preview (Skip Ahead) latest build
       #1

    Very nice!

    Thank you!
      My ComputersSystem Spec

  2. Kari's Avatar
    Posts : 16,318
    Windows 10 Pro
    Thread Starter
       #2

    Thanks, John.
      My ComputerSystem Spec


  3. Posts : 24
    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 ComputerSystem Spec

  4. johngalt's Avatar
    Posts : 2,084
    Windows 10 Pro X64 Insider Preview (Skip Ahead) latest build
       #4

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

  5.    #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 ComputerSystem Spec

  6. Kari's Avatar
    Posts : 16,318
    Windows 10 Pro
    Thread Starter
       #6

    Kamala said: View Post
    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 ComputerSystem Spec



  7. Posts : 24
    Windows 10 Professional x64
       #7

    Kari said: View Post
    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 ComputerSystem Spec

  8. Kari's Avatar
    Posts : 16,318
    Windows 10 Pro
    Thread Starter
       #8

    Kamala said: View Post
    You're right, that menu option thing is a very good idea. :)
    Name:  FIN_FlagOrb80.png
Views: 140
Size:  12.2 KB

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


    Name:  EN-US_FlagOrb80.png
Views: 140
Size:  15.6 KB

    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 ComputerSystem Spec

  9. johngalt's Avatar
    Posts : 2,084
    Windows 10 Pro X64 Insider Preview (Skip Ahead) latest build
       #9

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


 

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 Threads
Virtualbox and Hyper-V in Virtualization
Allegedly, virtualbox 6 and hyper-v can now coexist i..e you can run VB6 if Hyper-V is enabled - not tried it.
Solved Convert VMWare VM to Hyper-V in Virtualization
Hi folks am testing this little thing I saw on the Internet about converting a VM created with VMware to HYPER-V For anybody trying this too -- do back up your existing VM if you think you'll need it or if the conversion process fails, ...
Hyper V or VMWare? in Virtualization
While not an expert, I am fairly familiar with VMWare. I know very little about Hyper V, but have watched Kari videos about it. I know VMWare is easier to set up and there are some features easier to use in VMWare. What I am asking is what are the...
Vmware or virtualbox? in Virtualization
I have tested out vmware workstation and virtualbox and can't decide which is best, can you help me?
When you have Hyper-V fully installed on a Windows 10 machine, a Standard User can only access Hyper-V via a server connection. This gave me an idea. I was wondering if you could install only Hyper-V Management Tools on the host system and still...
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 01:46.
Find Us