AlexanderWillner / runMacOSinVirtualBox

Run macOS 10.16 Big Sur (and other versions) in VirtualBox on macOS
MIT License
936 stars 125 forks source link

Hang when running against public Mojave release #19

Closed bland328 closed 5 years ago

bland328 commented 5 years ago

I don't know if the problem is with the released Mojave installer, or with my system. Perhaps in the GM of Mojave, the createinstallmedia behavior has changed? I'm running this under High Sierra.

When I put in my administrative password at this line of the script:

sudo "$INST_BIN" --nointeraction --volume "$DST_VOL"

it simply never returns. Or, at least, doesn't for an hour.

I've tried simplifying it to:

sudo "$INST_BIN" --volume "$DST_VOL"

in case createinstallmedia has anything to tell me, but nothing changed.

Is anyone else up against this?

AlexanderWillner commented 5 years ago

Anything of interest in $HOME/Library/Logs/runMojaveVirtualbox.log?

bland328 commented 5 years ago

Nothing interesting, sadly. Just this, with the exit status 130 being when I hit Ctrl-C:

[2018-10-01 22:05:49] Running checks (around 1 second)... [2018-10-01 22:05:49] . [2018-10-01 22:05:49] Opening GUI... [2018-10-01 22:05:50] Creating image '/tmp/macOS-Mojave.dmg' (around 20 seconds, version 14.0.22, will need sudo)... [2018-10-01 22:05:50] . [2018-10-01 22:22:13] line 168 - command 'sudo "$INST_BIN" --volume "$DST_VOL"' exited with status: 130. [2018-10-01 22:22:13] In ::createImage::main::main called at line 307. [2018-10-01 22:22:13] From function ::createImage::main::main (line 307). [2018-10-01 22:22:13] Look at /Users/brian/Library/Logs/runMojaveVirtualbox.log for details (or use Console.app). Press enter in the terminal when done...

AlexanderWillner commented 5 years ago

My guess is that it's waiting for your password. It might look like this when running the CLI version:

$ bash runMojaveVirtualbox.sh installer
Creating image '/Users/awi/VirtualBox VMs//macOS-Mojave.dmg' (around 20 seconds, version 14.0.22, will need sudo)....
Password:
bland328 commented 5 years ago

Ah...I should've said that it does ask for my password. Strange!

AlexanderWillner commented 5 years ago

What the script is doing:

$ hdiutil attach ~/VirtualBox\ VMs/macOS-Mojave.dmg -mountpoint /Volumes/macOS-Mojave
$ sudo "/Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia" --nointeraction --volume "/Volumes/macOS-Mojave" --applicationpath "/Applications/Install macOS Mojave.app"
bland328 commented 5 years ago

In my case, when

sudo "$INST_BIN" --nointeraction --volume "$DST_VOL"

executes, I'm prompted for my password, and hours later it still has not returned.

I've even added additional output as the very next line of the script, but it is never executed.