grom358 Posted August 13, 2011 Share Posted August 13, 2011 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: nullCPUPowermanagenent.kext KextHelper.app (Download from http://cheetha.net/) 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 https://www.insanelymac.com/forum/topic/265453-install-retail-lion-on-virtual-box-41/ Share on other sites More sharing options...
Recommended Posts