AlexanderWillner / runMacOSinVirtualBox

Run macOS 10.16 Big Sur (and other versions) in VirtualBox on macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hangs with black screen at Starting VM 'macOS-VM' (3 minutes in the VM)...

fakob opened this issue · comments

To Reproduce
Steps to reproduce the behavior:
Setup: on macOS 10.14.6 trying to create a Catalina virtual machine

  1. run make all
  2. VirtualBoxVM -> macOS-VM hangs with black screen at the first Starting VM 'macOS-VM' (3 minutes in the VM)...
  3. when pressing enter it successfully ejects the installer medium and starts the vm ending on Trying to find a bootable device... Failed. as of course nothing has been installed in step 2

Expected behavior
That it boots the installer medium and Catalina gets installed.
I used this script earlier to install other versions than Catalina and it always worked like a charm.

Additional context
The log file seems fine except for the following error. Not sure what it means though:

VBoxManage: error: VDI: cannot create image '/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi'
VBoxManage: error: Error code VERR_ALREADY_EXISTS at /Users/vbox/tinderbox/6.0-mac-rel/src/VBox/Storage/VDI.cpp(680) in function int vdiImageCreateFile(PVDIIMAGEDESC, unsigned int, PVDINTERFACEPROGRESS, unsigned int, unsigned int)
VBoxManage: error: Cannot create the disk image "/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi": VERR_ALREADY_EXISTS
Complete log file
[2019-12-21 16:40:12] Running checks (around 1 second)...
[2019-12-21 16:40:12] .
[2019-12-21 16:40:12] Creating image '/Users/fakob/VirtualBox VMs/macOS-VM.dmg' (around 20 seconds, version 15.2.02, will need sudo)...
[2019-12-21 16:40:12] .
created: /Users/fakob/VirtualBox VMs/macOS-VM.dmg

/dev/disk2          	Apple_partition_scheme         	
/dev/disk2s1        	Apple_partition_map            	
/dev/disk2s2        	Apple_HFS                      	/Volumes/macOS-VM
WARNING: "--applicationpath" is deprecated in macOS 10.14 and greater. Please remove it from your invocation.
Erasing disk: 0%... 10%... 20%... 30%... 100%
Copying to disk: 0%...
 10%...
 20%...
 30%...
 40%...
 50%...
 60%...
 70%...
 80%...
 90%...
 100%
Making disk bootable...
Copying boot files...
Install media now available at "/Volumes/Install macOS Catalina"
"disk2" ejected.
[2019-12-21 16:48:59] Creating iso '/Users/fakob/VirtualBox VMs/macOS-VM.iso.cdr' (around 25 seconds)...
[2019-12-21 16:48:59] .
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading  (Apple_Free : 2)…
Reading disk image (Apple_HFS : 3)…
Elapsed Time:  5m 11.748s
Speed: 32.8Mbytes/sec
Savings: 0.0%
created: /Users/fakob/VirtualBox VMs/macOS-VM.iso.cdr
[2019-12-21 16:54:11] Creating VM HDD '/Users/fakob/VirtualBox VMs/macOS-VM.vdi' (around 1 minute)...
[2019-12-21 16:54:11] .
created: /Users/fakob/VirtualBox VMs/macOS-VM.sparseimage
Converting from raw image file="/dev/disk2" to file="/Users/fakob/VirtualBox VMs/macOS-VM.vdi"...
Creating dynamic image with size 34359738368 bytes (32768MB)...
Disk /dev/disk2 ejected
[2019-12-21 16:56:43] Adding APFS drivers to EFI in '/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi' (around 5 seconds)...
[2019-12-21 16:56:43] .
created: /Users/fakob/VirtualBox VMs/macOS-VM.efi.sparseimage
Volume EFI on /dev/disk2s1 mounted
Volume EFI on disk2s1 unmounted
Converting from raw image file="/dev/disk2" to file="/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi"...
Creating dynamic image with size 1048576 bytes (1MB)...
Disk /dev/disk2 ejected
[2019-12-21 16:56:46] Creating VM 'macOS-VM' (around 2 seconds)...
[2019-12-21 16:56:46] .
Virtual machine 'macOS-VM' is created and registered.
UUID: 70dd8e49-fe9d-4e39-8bf2-659b3e14661b
Settings file: '/Users/fakob/VirtualBox VMs/macOS-VM/macOS-VM.vbox'
[2019-12-21 16:56:47] Adding installer DVD for VM 'macOS-VM'...
[2019-12-21 16:56:47] .
[2019-12-21 16:56:47] Adding APFS drivers to EFI in '/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi' (around 5 seconds)...
[2019-12-21 16:56:47] .
Volume EFI on /dev/disk2s1 mounted
Volume EFI on disk2s1 unmounted
Converting from raw image file="/dev/disk2" to file="/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi"...
Creating dynamic image with size 1048576 bytes (1MB)...
VBoxManage: error: VDI: cannot create image '/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi'
VBoxManage: error: Error code VERR_ALREADY_EXISTS at /Users/vbox/tinderbox/6.0-mac-rel/src/VBox/Storage/VDI.cpp(680) in function int vdiImageCreateFile(PVDIIMAGEDESC, unsigned int, PVDINTERFACEPROGRESS, unsigned int, unsigned int)
VBoxManage: error: Cannot create the disk image "/Users/fakob/VirtualBox VMs/macOS-VM.efi.vdi": VERR_ALREADY_EXISTS
Disk /dev/disk2 ejected
[2019-12-21 16:56:48] Starting VM 'macOS-VM' (3 minutes in the VM)...
[2019-12-21 16:56:48] .
Waiting for VM "macOS-VM" to power on...
VM "macOS-VM" has been successfully started.
[2019-12-21 16:56:52] Press enter to stop the VM and to eject the installer medium (to avoid an installation loop)...
[2019-12-21 16:56:52] .
0%...
10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
[2019-12-21 17:05:15] Ejecting installer DVD for VM 'macOS-VM'...
[2019-12-21 17:05:15] .
[2019-12-21 17:05:15] Starting VM 'macOS-VM' (3 minutes in the VM)...
[2019-12-21 17:05:15] .
Waiting for VM "macOS-VM" to power on...
VM "macOS-VM" has been successfully started.
commented

Seems Oracle will fix it in the next update: https://www.virtualbox.org/ticket/19188

@AlexanderWillner VB v6.1.4 was released yesterday. I've just upgraded my guest Catalina to 10.15.3 without issues.