Once you've made sure your CPU supports hardware virtualization and VirtualBox is installed get VirtualBox running. Once it's open click new to setup a new virtual machine.
In the name field enter:
OS X
Set the Operating System to
OS X
In the version field enter: Mac
OS X Server.
1 gig of ram should be enough
Create a new hard disk
Dynamically expanding storage
Set the location to a directory called OSX
Give the disk 20 gigs.
Select the osx.iso and click finish
Under settings » display crank up the video memory to 128 megs
Enable 3d acceleration
Under system » motherboard » Extended features: Enable IO APIC and Enable Absolute pointing device
Under the acceleration tab: enable VT-X/AMD-V and nested paging
Under storage » storage tree » click empty and then click the disc icon under attributes then select the location of your
OS X Iso. click ok
Click start
Once the installer is running, press f8
Enter “-v” at the prompt. This will let you know if something goes wrong and if so, what.
Once
OS X is running select the language, click the arrow button and then continue after a few seconds.
Agree to the usage terms
Select the disk utility and select VBOX HDD
Erase option with the following settings - Extended journaled name:
OS X
Leave the disk utility
Select the new hard disk
Click customize and select chameleon boot load 4 and legacy kernel and click ok
Click install and then play the waiting game
When it tries to reboot close the VM and reset the boot order in VirtualBox to start with the HDD
hit enter at the chameleon boot loader screen, otherwise it will just sit there.
At this point
OS X will have you do some configuring. Skip or enter the information.
In the finder, click go » utilities and open a terminal
login as root
cd into /Library/Preferences/SystemConfiguration
do a vi com.apple.Boot.plist
enter the following lines: the resolution is simply an example, make the resolution suitable to your monitor