Jump to content

Install Retail Lion on Virtual Box 4.1


1 post in this topic

Recommended Posts

Requirements

  • Existing install of Mac OS X running on Virtual Box (I used Snow Leopard 10.6.8)
  • Lion Retail DVD Image

 

Virtual Box Settings

  • Operating System -> Mac OS X
  • Version -> Mac OS X Server (64 bit)
  • Enable IO APIC
  • Enable EFI
  • Chipset -> ICH9
  • Video Memory -> 128Mb
  • Enable 3D Acceleration

 

Also added this to MacOSX.vbox:

<ExtraDataItem name="VBoxInternal2/EfiGopMode" value="4"/>

<ExtraDataItem name="VBoxInternal2/SmcDeviceKey" value="ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc"/>

 

Preparation

  • Shutdown Mac Virtual Box
  • Create new Lion HDD to Virtual Box
  • Create new 5Gb LionInstaller HDD on Virtual Box
  • Boot into Mac Virtual Box
  • Format the new drives naming them Lion and LionInstaller

 

LionInstaller

NOTE:

  • CODE sections are commands type on Terminal
  • QUOTE sections show snippets of text file

 

  • Mount Lion Image (InstallESD.dmg) to Virtual Box DVD Drive

cd "/Volumes/Mac OS X Install ESD"
open BaseSystem.dmg

  • Using Disk Utility, restore BaseSystem.dmg to LionInstaller

cp kernelcache /Volumes/LionInstaller/kernelcache
cp mach_kernel /Volumes/LionInstaller/
sudo vi /Volumes/LionInstaller/Library/Preferences/SystemConfiguration/com.apple.Boot.plist

<key>Kernel Cache</key>

<string>\kernelcache</string>

sudo rm /Volumes/LionInstaller/System/Installation/Packages
sudo cp -R Packages /Volumes/LionInstaller/System/Installation/Packages
cd /Volumes/LionInstaller/System/Library/CoreServices 
sudo touch ServerVersion.plist
cd ~
cp /Volumes/LionInstaller/System/Installation/Packages/OSInstall.mpkg .
pkgutil --expand OSInstall.mpkg OSInstall
vi OSInstall/Distribution

var minRam = 1024;

 

function isVirtualMachine(){

return false;

}

 

function isSupportedPlatform(){

return true;

}

 

pkgutil --flatten OSInstall OSInstall.mpkg
sudo cp OSInstall.mpkg /Volumes/LionInstaller/System/Installation/Packages/OSInstall.mpkg
rm -rf OSInstall*

 

Create a kexts folder in LionInstaller and copy:

 

 

Installation

  • Shutdown Virtual Box
  • Disable EFI
  • Mount HackBoot Lion ISO to Virtual Box
  • Remove Snow HDD
  • Start Virtual Box. It will boot HackBoot. Select LionInstaller
  • Run through installer
  • After the installer completes, restart into Lion using HackBoot
  • Delete /System/Library/CoreServices/PlatformSupport.plist
  • Using KextHelper install nullCPUPowermanagenent.kext
  • You can now shutdown. Enable EFI and remove LionInstaller and HackBoot Lion.

 

PS: The attached OSInstall.zip contains the modified OSInstall.mpkg for if you wish to skip the steps to modify it.

HackBoot_Lion.zip

NullCPUPowerManagement.kext.zip

OSInstall.zip

Link to comment
Share on other sites

 Share

×
×
  • Create New...