Docker Desktop, VirtualBox and WSL2:
- https://learn.microsoft.com/pl-pl/windows/wsl/install-manual
- https://docs.docker.com/desktop/vm-vdi/ (if you are running docker under VM with Windows - enable nested virtualisation)
- microsoft/WSL#5650 (comment)
- https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
- https://answers.microsoft.com/en-us/windows/forum/all/wslregisterdistribution-failed-with-error/5fdd8aa6-175e-4a14-8fe6-07673133fd15
- https://stackoverflow.com/questions/33552810/virtualbox-virtualization-is-enabled-but-not-working (Hyper-V should be disabled)
- https://superuser.com/questions/567208/how-to-detect-if-vt-x-has-been-turned-on-in-the-bios
- microsoft/WSL#5430 - WSL2 inside Virtual Box (without solution)
- https://gist.github.com/bkonetzny/b769afcab375dedae743ac648622a4f1 - Docker in WSL 1
- https://docs.docker.com/desktop/faqs/windowsfaqs/ - Yes, you can run VirtualBox along with Docker Desktop if you have enabled the Windows Hypervisor Platform feature on your machine.
If your are running Windows under VM (ESXi, VMWare, VirtualBox) - nested virtualisation should be enabled. Don't forget to enable VT-d
in the BIOS of host PC also.
VirtualBox:
- Enable PAE/NX
- Enable Nested VT-x/AMD-v
Also take into account that Home Editions of Windows is not supported Hyper-V feature, and you should upgrade to Pro.
Windows Powershell as Administrator (Win+X):
DISM /Online /Disable-Feature /featurename:VirtualMachinePlatform
DISM /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V /All
Ept (SLAT) is not supported inside VM, Coreinfo seems shows the same. That's why Hyper-V VMs inside VirtualBox doesn't work.
00:00:00.848295 *********************** VT-x features ***********************
00:00:00.848295 Nested hardware virtualization - VMX features
00:00:00.848296 Mnemonic - Description = guest (host)
00:00:00.848296 VMX - Virtual-Machine Extensions = 1 (1)
...
00:00:00.848304 Ept - Extended Page Tables = 0 (1)
...
00:00:00.848315
00:00:00.848315 ******************* End of VT-x features ********************