Create VirtualBox OSX Guest

Once you have all the information required to do so, creating a OSX virtual machine (VM) in VirtualBox isn’t so tough. However, this is recommend for the technically capable and not something a beginner should attempt. This article isn’t going to cover every single detail. You’ll need to some trial  and error to get it right.

This process works for OSX 10.6 and above.

Step 1

Create install media. Use Apple’s recommended createinstallmedia. Alternatively, create an installer USB Flash drive and make a disk image (dmg, cdr, or iso) of that.

Step 2

Create the VM using the VirtualBox interface. Type will be Mac OSX and choose the Version appropriate for your needs. Set memory to as much as you can spare, make the disk size appropriate for your needs and I suggest a minimum of 2 CPU’s.

Step 3

In VirtualBox enter Settings > System for the new VM. Change the Chipset to PIIX3, uncheck Floppy Disk, and ensure all Extended Features are checked. Go to Display and set Video Memory to the maximum you can spare. Finally, go to Storage and create a new Optical Disk choosing the disk image created in Step 1. Don’t bother starting the VM yet.

Step 4

Choose from the list below that best fits the machine description you are about to install and run the 5 associated commands in a terminal.

VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F2238BAE"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-2BD1B31983FE1663"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "Macmini6,2"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F65AE981FFA204ED"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "VM_Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Step 5

Start your VM in VirtualBox and Select your Language when prompted.

Step 6

Run Disk Utility and format the hard drive then exit.

Step 7

Run the OSX installation as prompted.

 

Enjoy!