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

Stuck at stage: configure_vm #640

Closed ramondsq closed 1 year ago

ramondsq commented 1 year ago

OS: Windows 11 Pro 22H2 22621.1105 VirtualBox version: 7.0.6 r155176

image

VirtualBox logs: VBoxHardening.log VBox.log

myspaghetti commented 1 year ago

I haven't tested the script on VirtualBox 7. It's possible VBoxManage outputs something to STDERR. Could you paste the output of the following commant?

VBoxManage modifyvm macOS --cpus 2 \
            --memory 4096 --vram 128 --pae on \
            --boot1 none --boot2 none --boot3 none --boot4 none \
            --firmware efi --rtcuseutc on --chipset ich9 \
            --mouse usbtablet --keyboard usb --audiocontroller hda \
            --audiocodec stac9221 --audio=none

Attaching the output file of ./macos-guest-virtualbox.sh troubleshoot would be helpful too, as the error could be caused by type errors, for example if cpu_count, memory_size, or gpu_vram are strings instead of integers.

jshin313 commented 1 year ago

@myspaghetti

Running the VBoxManage modifyvm command gives:

Warning: --audio is deprecated and will be removed soon. Use --audio-driver instead!

Virtualbox 7.0.6 was released quite recently on January 17 2023 and one of the things changed was this audio deprecation (see the changelog)

Audio: The "--audio" option in VBoxManage is now marked as deprecated; please use "--audio-driver" and "--audio-enabled" instead. This will allow more flexibility when changing the driver and/or controlling the audio functionality

Strato30 commented 1 year ago

I have this issue too.

myspaghetti commented 1 year ago

Seems to work when removing the --audio flags on the one machine I tested it... So not very extensively tested but I'm going to say fixed in version 0.99.2.2