Closed ramondsq closed 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.
@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
I have this issue too.
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
OS: Windows 11 Pro 22H2 22621.1105 VirtualBox version: 7.0.6 r155176
VirtualBox logs: VBoxHardening.log VBox.log