Discussion about

June 5th 2014 4:41 pm

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):

Patebin: pastebin.com­/rFmQvFWc

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!

Via: forums.macrumors.com­/showthread.php­?p­=19191255

sort by

12 replies

Hi Dave,
Work? Has anyone ever managed to test this and work properly? Reply me, please... thanks at once.
0 like dislike

I have it working in VirtualBox, but it's ridiculously slow! Probably to be expected.
2 like dislike

Thanks so much... I'll try do this here...
0 like dislike


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.
0 like dislike

You're a moron...
0 like dislike

Well here I am a few days later and it lags, not a deal buster. It really lags when I display all of the apps on launchpad, other than that it runs fine. I did give it the max video memory, but I did read that you can only use 1 core, but I did add 2 cores. I'm about to upgrade my virtual box to see if there are any improvements. I can't logon to my apple account. I have 2 way security, I wonder if that's the reason why.
0 like dislike

in step 9 and 10 I had to use "detach" instead of "unmount". I got a Resource Temporarily Unavailable error with unmount. Everything else went fine.
0 like dislike

Thank You for the script.
This worked at my end. Using MacBook Air 13-inch Base OS Mavericks
Using VirtualBox 4.3.16
0 like dislike

Hi, i am having some problems, i am getting the extension SDK cache is not present
0 like dislike

Small fix, you need to run "hdiutil detach /Volumes/OS\ X\ Base\ System/" instead of umount. If you don't, you get the error: hdiutil: convert failed - Resource temporarily unavailable
0 like dislike

To Make it work under GNU/Linux/VirtualBox 4.3.18 + Intel video card, I refered to:
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
0 like dislike

Ran into an issue on step 11:
$ 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)
0 like dislike

12 users following this discussion, including:

  • Langdon
  • frankspin
  • dave
  • esler
  • lkadsadkls
  • pqsk
  • ronfernando
  • shirlene
  • Tbishop105
  • vukodlak75

This discussion has been viewed 171467 times.
Last activity .