Closed Hyperspeed1313 closed 2 years ago
Applying the EFI and NVRAM parameters
The EFI and NVRAM parameters may be set in the script before installation by
editing them at the top of the script. NVRAM parameters may be applied after
the last step of the installation by resetting the virtual machine and booting
into the EFI Internal Shell. When resetting or powering up the VM, immediately
press Esc when the VirtualBox logo appears. This boots into the EFI Internal
Shell or the boot menu. If the boot menu appears, select "Boot Manager" and
then "EFI Internal Shell" and then allow the startup.nsh script to execute
automatically, applying the NVRAM variables before booting macOS.
Changing the EFI and NVRAM parameters after installation
The variables mentioned above may be edited and applied to an existing macOS
virtual machine by deleting the .nvram file from the directory where the
virtual machine .vbox file is stored, then executing the following
command and copying the generated files to the macOS EFI System Partition:
./macos-guest-virtualbox.sh \
configure_vm create_nvram_files create_macos_installation_files_viso
After executing the command, attach the resulting VISO file to the virtual
machine's storage through VirtualBox Manager or VBoxManage. Power up the VM
and boot macOS, then start Terminal and execute the following commands, making
sure to replace "[VISO_mountpoint]" with the correct path:
mkdir ESP
sudo su # this will prompt for a password
diskutil mount -mountPoint ESP disk0s1
cp -r /Volumes/[VISO_mountpoint]/ESP/* ESP/
After copying the files, boot into the EFI Internal Shell as described in the
section "Applying the EFI and NVRAM parameters".
So far have done both High Sierra and Catalina tests and with
system_integrity_protection='77'
, the VM still had SIP enabled according tocsrutil status
.