Today I decided to do something I’ve been wanting to do for a while. I’m a GNU/Linux user at heart, so why do I want to install OS X you ask? Well mostly out of curiosity really. Just to see how it goes. I read this article on Lifehacker a while back about how to accomplish this with Windows, so I thought I’d try it on Ubuntu.
First, a checklist of what you need to do this:
Once you’ve downloaded all the iso-files, boot up Virtualbox and create a new VM.
Set Type to Mac OS X and Version to Mac OS X.
Press next and set the amount of ram you want to dedicate to this machine. I set mine to 4096, but 2048 should suffice.
Follow the steps to create a new virtual disk to install OS X on. I read somewhere that you would have to have an NTFS host disk to install the virtual disk on, but it worked fine with my ext4 setup.
Open up the settings for your Mac OS X machine. The Lifehacker guide told me to have the EFI setting enabled (which Virtualbox enabled by default), but when I tried that Hackboot 1 wouldn’t give me nothing but a blank screen. So, with my setting, turn that off.
In the graphics setting I set up 64mb ram.
On the Storage tab select Controller IDE and load Hackboot 1 in there.
You should now be ready to go. Boot up and you will get the Hackboot start screen. Select Storage from the top menu and load the OS X image and click F5, then Enter.
Follow the steps in the wizard. I got all the way to the “Select disk to install” screen, and it was blank… I went to the Disks tool and had to create a partition there, when that was done I exited the tool, and my virtual disk showed up when I got back to the previous screen.
I pressed on through the wizard
After the installation is done, you go through a series of steps to set up languages/keyboard and users
A few more steps and we’re ready to go.
Switch the boot disk to Hackboot 2 when rebooting, this is required to boot up.
Remember to be patient during booting, it takes some time to load up the desktop.
Thanks to debianandi and Lifehacker for help along the way!