Tuesday, 12 November 2013

Mac OS X on VirtualBox

A) Prepare Installer iso from

1. Download OS X Installer App from App Store
2. Go to InstallerApp/Contents/SharedSupport/
3. Mount InstallESD.dmg
4. Copy BaseSystem.dmg somewhere
5. Mount BaseSystem.dmg and Remove softlink of Packages
6. Copy actual Packages folder from mounted InstallESD.dmg location
 
B) Install FakeSMC.kext
1. Mount BaseSystem.dmg
2. Go to <MountedLocation>/System/Library/Extensions
3. Remove all below kext's ( you may want to have backup all those first )
    mv NVD*.kext /bkup
    mv ATI*.kext /bkup
    mv AppleIntelGMA*.kext /bkup
    mv AppleIntelHD*.kext /bkup
    mv AppleIntelSNB*.kext /bkup
    mv IOBluetooth*.kext /bkup
4. Download FakeSMC.kext from

5. Unzip and copy FakeSMC.kext to
    System/Library/Extensions
6. Change owner 
    chown -R root:wheel FakeSMC.kext
7. Change permission
    chmod 755 FakeSMC.kext
8. Unmount

C) Convert dmg to iso
    hdiutil convert BaseSystem.dmg -format UDTO -o BaseSystemInstaller.iso

D) Create VM in VirtualBox
     mount this installer iso as LiveCD and install os x