How to install OS X Yosemite in Virtualbox!

Hey guys!
In this post, I'm going to show how to install Mac OS X Yosemite on Virtualbox from the official installer.

UPDATE: Virtualbox v4.3.26 had released and sound doesn't lag the system (but it isn't that stable)

NEW UPDATE: Virtualbox 5.0 has released and it now has an option for Yosemite although I haven't tested it. It also has an option for El Capitan. I'll have to try it soon.


First, download the OS X installer from the Mac App Store. Once downloaded, open a terminal window (Applications > Utilities > Terminal) and type the following:
sudo gem install iesd
iesd -i /path/to/Install\ OS\ X\ Yosemite.app -o Yosemite.dmg -t BaseSystem
 Then, find the Yosemite.dmg and copy it to a windows host (or if you are going to run it on a Mac OS X host, keep it there).

Next, install Virtualbox(version 4.3.20) and create a new Virtual Machine with the following settings:
OS: Mac OS X Mavericks (64 bit) 
RAM: As much as possible
Hard disk: VDI, Dynamically Allocated, 500 GB or more,
(EDIT: You also need to modify the VM from the command line to make it boot (You need Administrator privileges). First, quit VBox. Then, open a Command Prompt with Admin Privileges and type the following (Replace the parts in capitals. Quotes are necessary) :
"PATH\TO\VBOX\INSTALL\VBoxManage.exe" setextradata "NAME OF VM" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
"PATH\TO\VBOX\INSTALL\VBoxManage.exe" setextradata "NAME OF VM" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
"PATH\TO\VBOX\INSTALL\VBoxManage.exe"setextradata "NAME OF VM" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
"PATH\TO\VBOX\INSTALL\VBoxManage.exe" setextradata "NAME OF VM" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
"PATH\TO\VBOX\INSTALL\VBoxManage.exe" setextradata "NAME OF VM" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
If you have a Haswell or later Intel CPU, you also need to set the CPU ID:
 "PATH\TO\VBOX\INSTALL\VBoxMAnage.exe" modifyvm "NAME OF VM" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
)
Then, start the Virtual Machine and when asked, choose the dmg file created earlier.
Wait for it to boot and load the setup menu.
Choose your region and click Continue.
Before choosing the disk to install to, in the menu bar at the top, choose Utilities > Disk Utility.
Once Disk Utility loads, you will see the Virtual Harddisk in the sidebar. Click on it, choose Partition, choose 1 partition, give a name and click on Partition. Click OK.
Once it's partitioned, exit Disk Utility and continue the setup.
Choose the newly created partition and click continue.

Wait for the set up to complete and then the VM will reboot. (Make sure the dmg is still mounted in the VM because i had encountered a problem where the VM would just hang at Extension SDK cache rebuild)

Wait for it to boot. Once it brings up the welcome screen, follow the steps to configure the VM. 

You might notice that the VM is laggy. To reduce some lag, search for "mac os x beamoff" and download beamoff.app. Run it(right click > Open, since its from an unidentified developer). You will see a noticeable decrease in lag. Set it to run at every boot(System Preferences > Users > Login Items > + button, locate the beamoff.app file and double-click)

Next, change power saver settings to prevent VM hangs(System Preferences > Energy Saving > Sliders to Never, uncheck "Put Harddisks to sleep whenever possible")

Congratulations! You now have Mac OS X Yosemite on Virtualbox!
Thanks for reading!
-Technohacker

Comments

Popular Posts