.. title: Virtualbox working with Hyper-V: more freedom with Docker!
.. slug: Virtualbox_with_Hyper-V_en
.. date: 2020-05-02 17:00:00 UTC+02:00
.. tags: hyper-v, virtualbox, docker
.. category: virtualization
.. link:
.. description:
.. type: text

| A major problem in virtualization on MS Windows machine was the incompatibility between Oracle Virtualbox and MS Hyper-V.
| They refused to work together.
| I used to run Docker in an Ubuntu Virtualbox VM, for instance.
| And I did not want to spend any time for a similar installation in Hyper-V.
| And Docker on Windows, through the MS WSL (Windows Subsystem for Linux) or through the older Docker Toolbox, was not easy to use

.. TEASER_END

Check this pages:

* |Install Docker Desktop on Windows| [Ref_Docker_Desktop]_

  * System Requirements: Windows 10 64-bit Pro, Enterprise, or Education and Hyper-V and Containers Windows features must be enabled.

* |Install Docker Toolbox on Windows| [Ref_Docker_Toolbox]_

  * Legacy desktop solution. Docker Toolbox is for older Mac and Windows systems that do not meet the requirements of Docker Desktop for Mac and Docker Desktop for Windows. We recommend updating to the newer applications, if possible.

* |Learn about the Windows| [Ref_MS_WSL_about]_

* |WSL 2 Frequently Asked Questions| [Ref_MS_WSL2_FAQ]_

  * The newest version of WSL uses Hyper-V architecture to enable its virtualization

| So I had to stick to Virtualbox.
| Then MS "opened" the Hyper-V API so that any other virtualization systems could work together with Hyper-V.
| Virtualbox had therefore to work a little bit.

And the Virtualbox development team did it:

* |Changelog – Oracle VM VirtualBox|  [Ref_Virtualbox_change]_

  * VirtualBox 6.1.4 (released February 19 2020)

    * Windows host: Restore the ability to run VMs through Hyper-V, at the expense of performance

* |Oracle1® VM VirtualBox1® User Manual|  [Ref_Virtualbox_manual]_

  * 9.32  Using Hyper-V with Oracle VM VirtualBoxOracle VM VirtualBox can be used on a Windows host where Hyper-V is running.  This is an experimental feature.No configuration is required.  Oracle VM VirtualBox detects Hyper-V automatically and usesHyper-V as the virtualization engine for the host system. The CPU icon in the VM window statusbar indicates that Hyper-V is being used.Note:When using this feature, some host systems might experience significant OracleVM VirtualBox performance degradation.

I tested Virtualbox with Hyper-V

* |Enable Hyper-V on Windows 10|  [Ref_Hyper-V_on]_

| Everything was blocked at the beginning but after a few tries...
| it works! No more problems!
| Docker should work now through Docker Desktop and through any Virtualbox VM with a Linux Guest!

--------

.. Post slug replaced by Post title and link to the post entry (for internal use)
.. |Virtualbox_with_Hyper-V_en| replace:: `Virtualbox working with Hyper-V: more freedom with Docker! <link://slug/Virtualbox_with_Hyper-V_en>`__

.. |Eyeglasses| unicode:: 0x1f453 .. Eyeglasses sign: Unicode character list - Code Table.NET - www.codetable.net/ [[https://www.codetable.net/unicodecharacters?page=88]] (20200505_042040)
.. |link| unicode:: 0x1f517
.. |earth| unicode:: 0x1f30d .. Earth Globe Europe-Africa

.. |Install Docker Desktop on Windows| replace:: |Eyeglasses| `Install Docker Desktop on Windows <https://docs.docker.com/docker-for-windows/install/>`__
.. [Ref_Docker_Desktop] Install Docker Desktop on Windows |earth| `<https://docs.docker.com/docker-for-windows/install/>`__

.. |Install Docker Toolbox on Windows| replace:: |Eyeglasses| `Install Docker Toolbox on Windows <https://docs.docker.com/toolbox/toolbox_install_windows/>`__
.. [Ref_Docker_Toolbox] Install Docker Toolbox on Windows |earth| `<https://docs.docker.com/toolbox/toolbox_install_windows/>`__

.. |Learn about the Windows| replace:: |Eyeglasses| `Learn about the Windows Subsystem for Linux (07/11/2016) <https://docs.microsoft.com/en-us/windows/wsl/about>`__
.. [Ref_MS_WSL_about] Learn about the Windows Subsystem for Linux (07/11/2016) |earth| `<https://docs.microsoft.com/en-us/windows/wsl/about>`__

.. |WSL 2 Frequently Asked Questions| replace:: |Eyeglasses| `WSL 2 Frequently Asked Questions <https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq>`__
.. [Ref_MS_WSL2_FAQ] WSL 2 Frequently Asked Questions |earth| `<https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq>`__

.. |Changelog – Oracle VM VirtualBox| replace:: |Eyeglasses| `Changelog – Oracle VM VirtualBox - www.virtualbox.org/ <https://www.virtualbox.org/wiki/Changelog>`__
.. [Ref_Virtualbox_change] Changelog – Oracle VM VirtualBox - www.virtualbox.org/ |earth| `<https://www.virtualbox.org/wiki/Changelog>`__

.. |Oracle1® VM VirtualBox1® User Manual| replace:: |Eyeglasses| `Oracle1® VM VirtualBox1® User Manual - UserManual.pdf (PDF) <https://download.virtualbox.org/virtualbox/6.1.6/UserManual.pdf>`__
.. [Ref_Virtualbox_manual] Oracle1® VM VirtualBox1® User Manual - UserManual.pdf (PDF) |earth| `<https://download.virtualbox.org/virtualbox/6.1.6/UserManual.pdf>`__

.. |Enable Hyper-V on Windows 10| replace:: |Eyeglasses| `Enable Hyper-V on Windows 10 <https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v>`__
.. [Ref_Hyper-V_on] Enable Hyper-V on Windows 10 |earth| `<https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v>`__
