A recent attempt to install Mac OS X Lion 10.7 in VMware found that Lion installable DMG files are not available in VMware on non-Apple machines and we need to create a virtual hard disk that can be booted to install Lion. This article describes how to create a VMDK virtual hard disk that can be booted.
Here, we need a VMware or VirtualBox virtual machine that has a previous version of Mac installed (refer to my previous article http://yanshurong.wordpress.com/2008/12/11/%E5%9C%A8vmware% e4%b8%ad%e5%ae%89%e8%a3%85mac-os/), as well as lion installable dmg files.
The following are the specific steps:
1. Installed a previous version of the Mac VMware or VirtualBox virtual machine to create a 5GB virtual hard disk.
2. Start the virtual machine, click on the Initialization button, and press the configuration below to create a partition for this 5GB virtual hard disk.
Name: Lioninstaller
Format: Mac OS X Extended
Partitioning: One partition-Apple Partition Map (click option button to modify)
3. Use tools to convert DMG files into ISO files, such as using UltraISO to convert them. The ISO file is attached to the virtual optical drive, and MAC OS x will automatically load the file.
4. We need to copy the basic system files from ISO to the "Lioninstaller" volume we created in step 2, using the "CD"/volumes/mac OS X Install ESD "and" open basesystem.dmg in the Command line window "Command to load the DMG file for the base system.
5. After the DMG file of the basic system is loaded, copy all the data using the recovery function of the disk tool (drag and drop the selection source and destination with the mouse), and need to provide the root account password when restoring.
6. After recovery of step 5 is complete, use the command "CP"/volumes/mac OS X Install esd/kernelcache "/volumes/lioninstaller/kernelcache" to copy kernelcache files.
7. Modify the Plist file to enable us to copy the Kernelcache to the new disk. Copy "volumes/lioninstaller/library/preferences/systemconfiguration/com.apple.boot.plist" files to the desktop based on the permissions reason. Use TextEdit to open the desktop file and modify it as shown in the following image, and copy back to the original path after modification.
8. Use "sudo rm/volumes/lioninstaller/system/installation/packages" and "sudo cp-r"/volumes/mac OS X Install esd/packages "/ Volumes/lioninstaller/system/installation/packages "Copy installation package, this takes a long time, please wait patiently."
9. Because VMware supports only the server version of Mac OS X, you need to mark the newly created installable virtual disk as a server version. Use the "cd/volumes/lioninstaller/system/library/coreservices" and "sudo touch serverversion.plist" commands.
OK, our Mac OS X Lion 10.7 can install the virtual hard disk has been finished, shut down the virtual machine and remove the virtual disk from the virtual machine, we will use this virtual disk to install the Apple Lion system.