4

The first thing I did, was enable WSL in the Windows Features dialog, then I installed Ubuntu 20.04 from the store. Befote doing anything else, I found an article WSL Kernel that said that I should install an update to the Linux kernal from here, this was an msi installer (wsl_update_x64.msi). I noticed there was an indication that the Virtual Machine Platform should have been enabled before installing Ubuntu, but it was too late by then. I then launched Unbuntu from the start menu link and a console window popped up with this error:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

Press any key to continue...

The microsoft article Windows Subsystem for Linux Installation Guide for Windows 10 says this for error (0x80370102):

Installation failed with error 0x80070003 or error 0x80370102

    Please make sure that virtualization is enabled inside of your computer's BIOS. The instructions on how to do this will vary from computer to computer, and will most likely be under CPU related options.

but macs do not have a bios. So how do I ensure virtualisation is enabled on a Macbook PRO running windows 10 (2004) on bootcamp, without access to bios settings?

If I uninstall everything and disable WSL and Virtualisation and so this all over again in the right order, will this aleviate the issue or will I still need to change the bios setting which I have no access to.

3
  • 2
    Did you ever figure out how to solve this?
    – junglie85
    Commented Jun 4, 2020 at 11:41
  • Did you not turn on Virtual machine platform after installing Ubuntu. You can uninstall and install Ubuntu again if it doesn't work after turning Virtual machine platform on.
    – VidathD
    Commented Jun 24, 2020 at 11:36
  • "So how do I ensure virtualisation is enabled on a Macbook PRO running windows 10 (2004) on bootcamp,"... Please if you gonna use mac use MacOS, dont mix oses.... Commented Jan 21, 2021 at 0:06

2 Answers 2

3

The answer to this problem comes in 2 parts. Most macs support virtualisation, but you need to find out how to check this. I found this issue on stackoverflow How to enable support of CPU virtualization on Macbook Pro?. From a macOS terminal, you need to run this command:

sysctl -a | grep machdep.cpu.features

This returns something like:

machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C

If the string returned contains "VMX", then Virtualisation is supported.

Now, you need to ensure that virtualisation is enabled from the macOS side. Open up system settings then go to Start Up disk. Now just looking at the current setting may show that your windows partition is set as the start up disk. You need to explicitly go in and set it to windows, so unlock the padlock and click on your windows partition. The act of doing so activates other settings including enabling virtualisation. When I first encountered this issue, I could already see that my windows partition was visibile in the list of disks to selected as the startup disk and I probably thought no more of it, not realising you have to set it to windows explicitly.

After I did this then rebooted into windows, then open "Programs and Features" (run appwiz.cpl), then select "Turn windows features on or off", look at the options and ensure that "Hyper V" is not a disabled greyed out option. Select "Hyper V", then enable "Windows subsystem for linux". You should now be able to proceed with WSL2 without seeing errors pertaining to virtualisation not being enabled.

8
  • I didn't have to select Windows as the startup disk (it doesn't even appear in system preferences), what worked was enabling ALL sub-features of Hyper-V. Commented Sep 5, 2020 at 4:39
  • Hey Nick, so how did you do that; ie "enable ALL sub-features of Hyper V"? (Is that on the windows side under turn windows features on/off? If I remember rightly, even that Hyper-V was greyed out if I didnt enable from with mac side as previously described.
    – Plastikfan
    Commented Sep 16, 2020 at 20:17
  • Yes, it’s on the Windows side. I didn’t have to enable anything on the Mac side. I’m not sure why it’s greyed out for you. Commented Sep 17, 2020 at 22:25
  • Hi again Nick, well that indeed is strange. Perhaps it is down to differences in hardware. I am running a Mid2014 MACBOOK-PRO, if you run that command I showed above do you see the same machdep.cpu.features list? I know its a long list, but if you posted your list, I could script a solution to compare the 2 without having to manually eye-ball it.
    – Plastikfan
    Commented Sep 23, 2020 at 10:11
  • @Plastikfan On windows I get sysclt is not a recongized command ??? Commented Jan 15, 2021 at 22:15
0

in my case, after enable virtualization in BIOS (F2 button push during starting the computer) and turn on windows subsystem linux in Window Feature, it still doesn't help and has the error 0x80370102. I reopen the Window Feature again, and check in the Virtual Machine Platform. then the error is fixed and the ubuntu is installed successfully in wsl environment in my computer. enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .