#Macos virtualbox install
Click the 2nd entry, you should see (and then click): macOS Install DataĪt that point the installer boot will continue and you should get to the point where macOS can be installed.īash script to convert macOS installer app downloaded from app store to ISO.The 2nd partition is the recovery partition, the one you need to boot from to do the macOS installation. After installing macOS the boot should find that partition and boot normally, without dumping you out at the UEFI shell. The first is the PCI path to a boot partition that is not valid because you haven't installed macOS on it yet. You should see a list populated with two cryptic looking entries (PCI bus paths) Select Boot Maintenance Manager and click.You'll be brought into an EFI text-mode GUI.
#Macos virtualbox code
To manually boot/execute code in recovery partition in order to complete the installation, do the following (credit to VirtualBox forums for this information): The reason I got dumped in the UEFI boot shell is that macOS wasn't installed yet in the boot partition, and the boot loader doesn't automatically boot into the recovery partition if the first partition isn't valid. If you haven't formatted the disk, the installer will not err out but will just sit there expecting you to choose a disk, with none listed, and no option to continue with the installation.Īfter the first reboot during installation, I got stuck at the UEFI shell prompt, which is obtuse and confusing for the uninitiated (i.e. If you don't first explicitly format the virtual disk, the macOS installer will not find any disks to install macOS on.
#Macos virtualbox mac os
Erase/format it as Mac OS Extended Journaled. In Disk Utility, the hard disk will show up as a disk on the left. Erase), the virtual disk you created during the initial creation of the VirtualBox Guest VM. When the recovery partition's GUI comes up (wherein you have the option to reinstall (also used for initial install)), first choose Disk Utility, and find and format (e.g. Point the VM to the ISO you created in step 2, and boot it.VBoxManage setextradata "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 Without these extra data settings, the installer failed mid-boot, infinitely looping with some error pertaining to trying to reboot MACH). I borrowed these values from Windows VirtualBox install instructions, and modified the system product to match my iMac's (iMac17,1). These extra data settings I found to be omitted from most or all of the Mac installation instructions that I found online. NOTE: These seemed to be critical for me to get the installer to boot and run. OS Type: macOS 10.13 High Sierra (64-bit)įrom command line create the following VirtualBox extra data values for the VM. You may need or want to tweak the file names or the name of the OS/Installer app depending on what OS you're trying to install, etc.Īfter creating the ISO, create a Virtual Machine with the following configuration settings: You can convert the installer DMG to an ISO, using the script at the end of this answer. The autorun installer can be quit so that it can be converted to an ISO) (App store app puts it into /Applications and launches it. macOS High Sierra 10.13.6 (probably works with several macOS release versions)įirst download High Sierra installer from app store. VirtualBox 5.2.19 (no foreseeable reason future revs of VirtualBox won't work)
Late 2015 Retina iMac (probably any new enough Mac will work)