Closed Harry089 closed 3 years ago
first bash macos-guest-virtualbox.sh then ctr+c scrpit and virtualbox, then set cpu_profile then bash macos-guest-virtualbox.sh populate_bootable_installer_virtual_disk bash macos-guest-virtualbox.sh create_target_virtual_disk bash macos-guest-virtualbox.sh populate_macos_target_disk
More generally, the order of the stages is specified near the top of ./macos-guest-virtualbox documentation
so you can see which stages to perform after you resume the interrupted stage.
The installation is divided into stages. Stage titles may be given as command-
line arguments for the script. When the script is executed with no command-line
arguments, each of the stages is performed in succession in the order listed:
check_shell
check_gnu_coreutils_prefix
set_variables
welcome
check_dependencies
prompt_delete_existing_vm
create_vm
check_default_virtual_machine
prepare_macos_installation_files
create_nvram_files
create_macos_installation_files_viso
configure_vm
populate_basesystem_virtual_disk
create_bootable_installer_virtual_disk
populate_bootable_installer_virtual_disk
create_target_virtual_disk
populate_macos_target_disk
prompt_delete_temporary_files
Since the script failed at populate_bootable_installer_virtual_disk
, you should resume it with ./macos-guest-virtualbox.sh populate_bootable_installer_virtual_disk create_target_virtual_disk populate_macos_target_disk prompt_delete_temporary_files
You could also just change it by running the command to change the cpu profile from another terminal sometime between when the VM is created and when booting is attempted, but the better way is probably that instead of my way for most people
When I ran into the same issue I added the cpu profile to the modifyvm command within configure_vm() function and ran the script from the beginning. It doesn't really take that long to run if you already have all the files downloaded
I did the same as @Yethal . An Example is below to help others. function configure_vm() { print_dimly "stage: configure_vm" if [[ -n "$( VBoxManage modifyvm "${vm_name}" --cpus "${cpu_count}" \ --memory "${memory_size}" --vram "${gpu_vram}" --pae on \ --boot1 none --boot2 none --boot3 none --boot4 none \ --firmware efi --rtcuseutc on --chipset ich9 ${extension_pack_usb3_support} \ --mouse usbtablet --keyboard usb --audiocontroller hda \ --audiocodec stac9221 --audio=none 2>&1 >/dev/null \ --cpu-profile "Intel Core i7-6700K" )" ]]; then echo -e "\nError: Could not configure virtual machine \"${vm_name}\"." echo -e "Please execute the stage ${low_contrast_color}configure_vm${default_color} again before resuming the script" echo -e "as described in the documentation.\n" echo "Exiting." exit fi
This has caused an error for me, i changed it like that:
--cpu-profile "Intel Core i7-6700K" --audiocodec stac9221 --audio=none 2>&1 >/dev/null )" ]]; then
now it works :) thanks
Please see below output. Script tries to find GUI but since macOS is not booting it fails.
So to change cpu-profile, I have to close VirtualBox and run the command as instructed in the documentation. But it does not say what to do after that. After I change the cpu-profile OS is booting up as expected but I cannot find a way to continue the script.
In the VM, it asks to select language and then get "macOS Utilities" window. Not sure how to proceed after this.