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.53k stars 1.12k forks source link

Error reporting on Ubuntu 20 startup has no details #340

Closed DreamPWJ closed 4 years ago

DreamPWJ commented 4 years ago

stage: check_default_virtual_machine

Checking that VirtualBox starts the virtual machine without errors. Error while starting the virtual machine.

DreamPWJ commented 4 years ago

executive sudo apt update && sudo apt-get install -y virtualbox virtualbox-guest-additions-iso coreutils gzip unzip wget xxd dmg2img

myspaghetti commented 4 years ago

Hi, please execute ./macos-guest-virtualbox.sh troubleshoot and attach the generated macOS_troubleshoot.txt file here.

DreamPWJ commented 4 years ago

macOS_troubleshoot.txt

DreamPWJ commented 4 years ago

You don't see any error messages in the logs @myspaghetti

myspaghetti commented 4 years ago

From the log:

the host CPU does NOT support HW virtualization

DreamPWJ commented 4 years ago

Windows above does not support shell scripts so I put scripts to prevent Windows within the virtual machine of Ubuntu system

myspaghetti commented 4 years ago

If you're on Windows I recommend you run the script on Cygwin.

DreamPWJ commented 4 years ago

macOS_troubleshoot.txt

DreamPWJ commented 4 years ago

This is a new mistake I've been trying for days and it still doesn't work @myspaghetti

DreamPWJ commented 4 years ago

use Cygwin error C:\cygwin\bin\bash .\macos-guest-virtualbox.sh

myspaghetti commented 4 years ago

You are trying to run the script on PowerShell. Please run the script on bash in mintty (Cygwin Terminal).

DreamPWJ commented 3 years ago

@myspaghetti in cygwin not install coreutils gzip unzip wget xxd dmg2img

o-sdn-o commented 3 years ago

If you are using Hyper-V you need to configure nested virtualization

Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
myspaghetti commented 3 years ago

I'm pretty sure that if the asker knew how to install an X server on Windows so they can run VirtualBox on WSL2 with nested virtualization they wouldn't have been trying to run a bash script on PowerShell or asking how to install packages on Cygwin.

Out-of-the-box GUI support on WSL2 is coming soon, and when that happens the preferred method to run the script will be through nested virtualization on a WSL2 Linux instance.

Until then, it's far easier for an inexperienced user to run the script on Cygwin.