Scott's picture

With the looming prospect of having to build ios apps around the corner but not having $2,799 in my pocket to be able to buy one of these, I decided I wouldn't mind coughing up the $19.99 to buy Mountain Lion. I knew already that its possible to find ready made copies of Mountain Lion that can be installed into virtualbox but I wanted to feel that I took the high road for a change and install it from an original, purhcased version. I couldnt find an existing guide for this so I figured out a few of the small parts in between other guides and here is the result. For the record, I am working on ubuntu and this guide will probably need adapting to do the same on windows.

I am not going to copy paste the hard work of so to start with find someone who has Mac OS X Snow Leooard 10.6.6 or later installed and then follow this guide to the end of step 2.

If you read the line above properly you should now have a nice bootable OS X usb install stick. The problem is that the usb stick will not be recognised by virtualbox or hackboot so the next step is a very small workaround. Open up your favourite terminal and do the following:

:~$ vboxmanage internalcommands createrawvmdk -filename /home/scott/osxusb/output_usb.vmdk -rawdisk /dev/disk/by-id/usb-Kingston_DataTraveler_2.0_ABCDEFGHIJKLMNOP123456789-0\:0

Change the green bit to wherever you want (its a very small file so no worries) and the yellow bit should match your usb stick.

Once again, I am not going to plagiarise so open up this guide but be prepared to add one small point to the end of Step One (so 1.6). Step 1.6 is very simple and key to this guide. After adding the Hackboot 1 ISO, click on "Add hard disk" under IDE controller and choose existing disk. Browse to the output_usb.vmdk file that you created above and click OK. You can now proceed exactly as the lifehacker guide says except when you open Hackboot 1 for the first time you should see a USB option to use instead. Thats it!

Have fun with your nice new purchased version of Mountain Lion OS X.





14 comments to the "Installing a GENUINE Mountain Lion OS X in virtualbox"
Stev-o's picture

Thanks for this handy guide, on behalf of myself and anyone else who's had success with it. I just wanted to point out that for Windows users, the command looks slightly different. First, go into Control Panel -> Administrative Tools -> Computer Manaement -> Disk Management, and find out the disk number representing your USB drive (i.e. mine was Disk 1). You could also find this number from the "diskpart" utility from the command prompt, which you'll need to be in anyway to run VBoxManage. In fact, you need to Run Command Prompt as Administrator (i.e. right-click on cmd.exe and say Run As Administrator.)

Because my USB drive was Disk 1, here's the exact command I entered in the Administrator Command Prompt:

C:\Program Files\Oracle\VirtualBox>vboxmanage internalcommands createrawvmdk -filename "C:\Users\Stephen\VirtualBox VMs\Snow Leopard\output_usb.vmdk" -rawdisk \\.\PhysicalDrive1

Finally, I needed to run VirtualBox as Administrator as well, in order to attach output_usb.vmdk to the IDE Controller in my storage settings.

As far as the referenced guide from Lifehacker, I only ever needed to use HackBoot1.iso, and not HackBoot2.iso. Also beware that the installation selection menu for MultiBeast Lion has changed significantly from what's pictured. At the time of this posting, I'm still working on finding the correct audio device driver to get sound to work, but will post my findings to the Lifehacker tutorial once I finish.

Xilo's picture

I've tryed to create usb installer directly from iAktos vm. In this case there some problems with usbs drivers and filesystems and not run. (I've lost the error but googling it not pop up).


Umm's picture

So I have installed everything. BUT:

Why do I have to keep the USB Stick inserted in my PC AND keep the vmdk as a IDE drive in order for the thing to boot up?

I followed the Lifehacker guide where it says to delete this certain file which should make the VM to boot up without HackBoot. Which is does. But without the vmdk you talk about here, the only thing you see is "FATAL: No bootable medium found! System haltet."

Does the whole thing run from the usb stick now or what? What do I have the 40GB harddisk for if not for the OS?

tehfink's picture

I have the same problem. Using this tutorial, my 10.8 install in Virtualbox won't boot without either the Hackbookboot iso or the usb key, both of which require manual intervention in the boot process…

tehfink's picture

Update: I installed "EasyBeast Installation" & "UserDSDT" from the Mountain Lion edition of Multibeast, and now 10.8 in Virtualbox boots without the Hackboot 2 disk (seems to use Chimera instead). I don't know if installing both are necessary.

RobBrownNZ's picture

Thanks for this, it worked for me.
I did have problems with device permissions, which had me very confused until I realised that the output_usb.vmdk file is just a pointer back to the USB device. I fixed it by doing a "chown myname:myname" and a "chmod 666" on /dev/sdb, /dev/sdb1, and /dev/sdb2.
Probably not the "right" way to do it!

Sigmoid's picture

I do not mean to bash you or this post, or the hackintosh community at all, I'm sure you all have good reason, just want to make something clear. Your "GENUINE" claim is, in fact, pretty far from genuine.

See how OS X costs $19.99, while Windows costs $99.99? The reason for that is NOT that Microsoft is more expensive. It's because part of the "price" of OS X is actually built into the hardware price. The OS X license expressly forbids installing it on non-Mac hardware, for that reason. $19.99 is just the price of the media plus the option of upgrading from an older OS.

Rony's picture

Hi! I have post about VirtualBox about using an existing virtual disk:

Xilo's picture

I've a problem: when going to install, after language choice, vm stop response (keyboard stop response, mouse never response). I've an iAtkos installed without any problem.

Any idea?

Ulli's picture

Works like a charme! Thank you for these superb Guide. Im running VirtualBox on Windws 7 (64bit). Hopefully all further Updates of Mountain Lion will work that way.

And Remember: As STEV-O said: It is nessesary to run cmd.exe as administrator.

Thumbs Up!

Jong Lee's picture

Can you help me out... My storage shows as IDE and system chipset is PIIX3... I've created the vmdk but I'm getting a VirtualBox Error:

Failed to open the CD/DVD image C:
\Users\John\VirtualBox VMs\OSX\output_usb.vmdk

The medium C:
\Users\John\VirtualBox VMs\OSX\output_usb.vmdk
can't be used as the requested device type.

Don't understand what I did wrong.

Casey's picture

If the installer option isn't showing up for you under Windows, check to see that your VMDK drive comes before your VDI drive on the list of controllers. Once I put the VMDK on 0 it became visible to me.
Now, if I can just get past the "unable to find driver for this platform" error I should have another Mac in the house :) Will be handy when someone else is using the Mac but I want to use my OSX-only apps.

euge's picture

Very interesting trick to make VM see your USB stick. Though, on MacOS X Mavericks when I was trying to install MacOS X Mavericks VM my VM stuck at starting Darwin x86_64, i.e. right after loading all the kexts... I can't reach the installer. :((

willy's picture

I would love to work with that platform. Very user friendly. Thanks for sharing this information. I came to know the latest update of installing genuine mountain. Keep posting.

Add new comment