Skip to content

Instantly share code, notes, and snippets.

Last active February 22, 2022 08:39
Show Gist options
  • Save frdmn/de12c894a385bc8e6bff to your computer and use it in GitHub Desktop.
Save frdmn/de12c894a385bc8e6bff to your computer and use it in GitHub Desktop.
Install OS X 10.10 Yosemite in VirtualBox
Copy link

hi , I have the same problem just like @edissonp had. My system is windows 7 (64bit with 8GB RAM), dmg is 10.10 and virtualbox with version 4.3.18

Copy link

liar666 commented Nov 19, 2014
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/DmiSystemProduct" "MacBookPro11,3"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "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/GetKeyFromRealSMC" 1

Copy link

wush978 commented Nov 19, 2014

@liar666 your post works for me, thanks!

Copy link

ghost commented Nov 19, 2014

@liar666, thanks! Works great on SL6.5+VB4.3.18!

Copy link

frdmn commented Nov 20, 2014

@liar666 Nice find!

Copy link

This is not working for me with this error:

This version of Mac OS X is not supported on this platform!

Any idea?

Copy link

frdmn commented Nov 26, 2014

@sandvige which OS X did you try? Yosemite? Latest version from AppStore?

Copy link

Cool! It worked good for me.

Copy link

Hi, trying to install yosemite in Virtualbox 4.3 on linux host. I get stuck with this message

ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: C-state power management not initialized

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3200.000
BogoMIPS: 6784.35
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-7



Copy link

@liar666, thanks! Works great on GNU/Linux+VB4.3.20!

Copy link

@edissonp saw the same thing but then the GUI installer showed up about 10 second after I see this error message

Copy link

mmuldoor commented Jan 5, 2015

I'm going to try a different route.. Installed OSX via Niresh's Mavericks Distro, then trying to upgrade to Yosemite. I'll post the results!

Copy link

jsgv commented Jan 10, 2015

Im stuck on the shell screen, won't install.
Not sure how to proceed from here.

UEFI Interactive Shell v2.0 UEFI v2.31 (EDK II, 0x00010000) . Revision 1.02

Press ESC in 4 seconds to skip startup.nsh or any other key to continue.
2.0 Shell>      

Fixed: just needed to change the SATA Port

Copy link

I think instead of using mount and unmount, one should use attach and detach for hdiutil.

Copy link

geopast commented Feb 20, 2015

Would you be able to post the same steps for installing 10.9 and 10.8 on a Mac in VB?
I've tried following the above for 10.10 and they worked after adjusting the guest CPU as you suggested.
I'm trying now to do the same install for 10.9 but it halts during the startup at the following:-

hfs: mounted OS X Base System on device root_device

Copy link

Worked perfectly fine for me, thanks!

A few notes:

  • running VM 4.3.22 on OSX Yosemite
  • at point 11, I didn't get errors in the Terminal, but still had to unmount in DiskUtility by hand to continue

Copy link

First guide ever that completely worked and also mentioned the correct chipset ID.
Thank you very much, my new integration test server appreciates it a lot!

Copy link

jozacks commented May 20, 2015

A few other bits of info that weren't explicitly spelled out that might be helpful for others:

  • create VM with type Mac OS X and version Mac OS X (64-bit); I set RAM to 4096, not sure that is optimal; create thje VM with a virtual hard drive of format VDI (I chose dynamically allocated)
  • to get it to boot from the CD, I started the VM and then went to Devices menu > CD/DVD Devices > Choose a virtual CD/DVD disk file..., then navigated to choose yosemitefixed.dmg. Then shut down machine and started it again.
  • to change chipset ID, go to settings for the VM > System > Motherboard > Chipset
  • I had to run the first command as root (sudo) (and maybe other commands, I just ran them all as root after that)

Copy link

FYI, I just downloaded yosemite today to try this and after the iesd step, the resulting yosemite.dmg already has both BaseSystem.dmg and BaseSystem.checklist. I think you can remove all the steps regarding creating a sparse image, copying the files, and then recreating the dmg saving many gigs of extra copies.

Copy link

@liar666 answer worked for me too! Yoohoo!

Copy link

I get UEFI Sheel too. "change the SATA Port" is how to do?

Copy link

Ditto, how do you "change the SATA Port"? Mine is set to SATA Port 0 in the VirtualBoxes' Settings, Storage. Is there a way to do it using the UEFI shell or command line?

Copy link

hi sir,

i'm getting error when i going to install yosemite 10.10 in virtual box win windows 7 like below image. kindly help to do this.

thanks and regards
Satla Kranthi


Copy link

@liar666 hey friend , VBoxManage.exe modifyvm "Yosemite 10.10 Retail" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
"Yosemite 10.10 Retail" should I change this part ? if i have to change this what should i type here ?

Copy link

@liar666, thanks! Works great on Win7+VB5.0.16

Copy link


Can you please help with this, I am not able to install MAC OS X 10.9 Virtual image. I am installing it for the first time and have followed all the instructions.

Copy link

@JesusGalvan I also have that shell prompt popping up, did you solved it by just changing the Sata port of the .vdi file in the Controller: SATA ?

Copy link

@JesusGalvan @magnusviri @magnusviri Did you find any solution ? Because i got the same error.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment