myspaghetti / macos-virtualbox

Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS
GNU General Public License v2.0
13.46k stars 1.11k forks source link

complaint about WSL2 or WSLg #650

Closed kklmn closed 1 year ago

kklmn commented 1 year ago

Hello,

In trying to install in Cygwin in W11 I get a complaint about WSL. I run it in cmd, not in WSL, tried as admin as well. Tried it in WSL as well, with the same output.

These values may be customized as described in the documentation.

Press enter to continue, CTRL-C to exit
The script appears to be executed on WSL2 or WSLg.
Mind that WSL2 and WSLg require kernel module compilation and
custom configuration that is not supported by the script.
If the script does not detect the vboxdrv kernel module, it exits.

c:\Users\konkle\Downloads\Mac\macos-virtualbox-master>

Please guide me. Thanks!

myspaghetti commented 1 year ago

The prompt c:\Users\konkle\Downloads\Mac\macos-virtualbox-master> implies the script is running on cmd.exe, and cmd.exe is likely calling wsl.exe when the bash script is loaded. If you want to use Cygwin you should to run the script from the Cygwin terminal explicitly. That said, if you have WSL2 installed, VirtualBox won't have access to hardware acceleration and the script will exit.

kklmn commented 1 year ago

thank you!