Do you want to run VirtualBox along with enabled Hyper-V Manager services at the same time on a single Windows 10 machine? Then it is possible now without disabling any of them, have a look at the steps given here in this tutorial…
Earlier there was a big problem when we want to use Hyper-V on Windows machine and that we couldn’t use Vmware, Virtual Box, or any other platform where we want Virtualization access. It was because Intel virtualization technology (VT-x) and the kernel access were already occupied by the existing Hyper-V service on the machine. However, that has been changed after Windows v1803 update. Now, we can run VirtualBox or VMWare workstation side by side with inbuilt Hypervisor Manager of the Windows 10 using its API.
Note: If you yet are not able to use VirtualBox without disabling the Hyper-V on Windows 10, there here is the solution… However, a few operating systems would not work and give output in the freezing of VMs on boot.
Enable Hyper-V and VirtualBox together at the same time on Windows 10
1: Open Turn Windows features ON & OFF
The first thing is to access the extra service which we want to be on Windows 10. Go to Search Box and type “Tune Windows features On & Off“.
2: Enable Hyper-V and Windows hypervisor platforms
Now, you will see various services, some of them are already enabled and others are not. So, scroll down to “Hyper-V” and after that further down to check the box of “Windows Hypervisor Platforms“. And then click on the OK button. It will start installing these two services on your Windows 10 machine.
Note: if you don’t turn on the “Windows Hypervisor Platforms” services then while running the VirtualBox you will get an error”
WHvCapabilityCodeHypervisorPresent is FALSE! Make sure you have enabled the 'Windows Hypervisor Platform' feature. (VERR_NEM_NOT_AVAILABLE). VT-x is not available (VERR_VMX_NO_VMX). Result Code : E_FAIL (0x80004005) Composant : ConsoleWrap
3. Restart your Windows 10 system
One all the above services installed on your computer restart it to make the update into effect.
4. Download Oracle VirtualBox
Although you might already have open-source Oracle VirtualBox on your Windows 10 system if you don’t then go to the official website and download the one. Run it to install. Also, those running older version they should update their VBox software to the latest version.
5. Configure Paravirtualization Interface
To make VirtualBox compatible with Hyper-V on Windows 10, this step is very important. What we have to do is, run the VirtualBox on your system, select the created Machine that you want to run.
- For example, here I have Ubuntu 20.04 VM server edition, thus will select that.
- Click on the Settings option given in the Menu.
- Select System⇒Acceleration Tab.
- Click the dropbox given in from of Paravirtualizatiopn Interface and select the Hyper-V.
However, by default VirtualBox will access Hyper-V API, if not then setting the paravirtualization interface will do that.
6. Run the Guest Virtual Machine
Now, on the area corresponding to the select Virtual Machine, you will see:
Acceleration= VT-X/AMD-V, Nested Paging, PAE/NX, Hyper-V Paravirtualization.
This means that your VirtualBox uses the Hypervisor as a virtualization platform to create and run virtual machines of different OS such as Linux, Windows, NAS, etc.
To see everything is working fine, just click on the start and you will see the running of the virtual machine, may be without any error.
7. Run VM on Hypervisor
Test Hyper-V and make sure its machines are also working fine without my error. Open the Hyper-V Manager and start your Virtual Guest created on it.