How to install OS X Yosemite inside VirtualBox
Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.
Steps (most likely, the Engadget forums are going to bork the formatting, I'll drop in a Pastebin link below):
1. Download Yosemite from the App Store (or your favorite digital content distribution warehouse)
2. Open terminal
3. Run "gem install iesd"
4. Run "iesd -i /Applications/Install\ OS\ X\ 10.10\ Developer\ Preview.app -o yosemite.dmg -t BaseSystem"
Adding additional steps because certain files end up missing from above:
5. Run "hdiutil convert yosemite.dmg -format UDSP -o yosemite.sparseimage"
6. Run "hdiutil mount /Applications/Install\ OS\ X\ 10.10\ Developer\ Preview.app/Contents/SharedSupport/InstallESD.dmg"
7. Run "hdiutil mount yosemite.sparseimage"
8. Run "cp /Volumes/OS\ X\ Install\ ESD/BaseSystem.* /Volumes/OS\ X\ Base\ System/"
9. Run "hdiutil unmount /Volumes/OS\ X\ Install\ ESD/"
10. Run "hdiutil unmount /Volumes/OS\ X\ Base\ System/"
11. Run "hdiutil convert yosemite.sparseimage -format UDZO -o yosemitefixed.dmg"
12. Add yosemitefixed.dmg as a live cd in virtual box
13. Change the chipset of your virtual machine to "PIIX3"
14. Start your VM, open Disk Utility within installer and create a new HFS+ partition on the virtual disk
15. Install it!
You say that it is ridiculously slow, but how much memory did you add. Also, do you have a SSD and how many cores did you add to it? I am curious, because I have SSD, and quite a bit of ram that I can pump into it. In the past I had problems with Ubuntu on virtual box, but when I upgraded the hardware on my macbook pro I was able to add lots of memory and make it use ssd, and added 2 cores and it runs really smooth. Curious if this would also be the case here. I do know it's a live CD and we shouldn't expect much, but just being hopeful that with added goodies the vm will run smoother. I have slow internet, so maybe by the time you answer I will have the file downloaded lol. I am just now downloading it from the app store.
that points to:
The file Key.text made everything work for me under GNU/Linux+VBox 4.3.18!
VBoxManage.exe modifyvm "Yosemite 10.10 Retail" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduc... "MacBookPro11,3"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersio... "1.0"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct... "Iloveapple"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealS... 1
$ hdiutil convert yosemite.sparseimage -format UDZO -o yosemitefixed.dmg
hdiutil: convert failed - Resource temporarily unavailable
Attempting to unmount yosemite.sparseimage gave an error as well:
$ hdiutil unmount yosemite.sparseimage
hdiutil: unmount: "yosemite.sparseimage" failed to unmount due to error 16.
hdiutil: unmount failed - Resource busy
Not sure how to fix this via commandline, but I was able to open Disk Utility and "eject" the related volumes that way. Then the convert succeeded.
(This was done using a host OS of Yosemite 10.10.2 and the Yosemite 10.10 download - not the preview version)