Skip to content

Instantly share code, notes, and snippets.

@Lzok
Created February 7, 2021 02:41
Show Gist options
  • Save Lzok/5edb12b38369f2c51e944970265e10c6 to your computer and use it in GitHub Desktop.
Save Lzok/5edb12b38369f2c51e944970265e10c6 to your computer and use it in GitHub Desktop.
Commands to get WSL or Virtual box working (not both)

06-02-2021 I am working in a Windows 10 machine and I noticed I can't work with VirtualBox and WSL together. This is mostly due to Hyper-V.

After some research, the solution I found is quite uncomfortable.

If you want to use WSL, you will need to execute the following in an administrator promp (and reboot):

bcdedit /set hypervisorlaunchtype auto

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-Vi

If you want to use VirtualBox, you will need to disable the previous thing, so you need to execute the following in an administrator promp (and reboot):

bcdedit /set hypervisorlaunchtype off

DISM /Online /Disable-Feature:Microsoft-Hyper-V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment