0% found this document useful (0 votes)
138 views

Installing Mac OS

This document provides steps to create a bootable Mac OS X Lion installation image that can be used to install Lion in a virtual machine without requiring the original installation media. It involves attaching a new virtual hard disk to an existing Snow Leopard VM, copying files from the Lion DMG to the new disk to create a bootable installer, and modifying files to flag it as a server version compatible with VMware. Once completed, the new VMDK file can be used to install Lion in virtual machines without needing boot loaders or the original Lion media.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
138 views

Installing Mac OS

This document provides steps to create a bootable Mac OS X Lion installation image that can be used to install Lion in a virtual machine without requiring the original installation media. It involves attaching a new virtual hard disk to an existing Snow Leopard VM, copying files from the Lion DMG to the new disk to create a bootable installer, and modifying files to flag it as a server version compatible with VMware. Once completed, the new VMDK file can be used to install Lion in virtual machines without needing boot loaders or the original Lion media.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Installing Mac OS X in a Virtual Machine

Operating Systems Laboratory Amir Saman Memaripour

What You Need?


1. Working Snow Leopard Virtual Machine in VMware or
VirtualBox. Install Snow Leopard on VMware or on VirtualBox

2. Lion Leopard Installation DMG (Available for


developers in Apple site and some torrents sites). You can use the original retail DVD after the final release.

Why You Need This Installer Image?


1. There are no boot loaders available to boot the original
Lion installer in VMware.

2. The installation package available in DMG file cant be


installed in virtualization platform.

Steps to Follow (1)


Attach a 5GB new virtual hard disk (VMDK) file to working Snow leopard Virtual machine.

Steps to Follow (2)


Press Initialize when you start the Mac OS X virtual machine. Create a partition with following configuration in newly attached 5GB virtual hard disk.

Name LionInstaller Format: Mac OS X Extended Partitions: Single partition Apple Partition Map

Steps to Follow (2)

Steps to Follow (3)


Now attach the Lion Installation DMG or ISO you downloaded from Apple or Torrent sites to VMware virtual machines CD drive. Once you connect, it will be automatically mounted in SL virtual machine. Convert DMG file to ISO in Windows host as shown here. The file is mounted as Mac OS X Install ESD under Volumes.

Steps to Follow (4)


We need to copy the base system image from mounted ISO to our LionInstaller (new VMDK file). Mount the base system image from terminal and run the following command. cd "/Volumes/Mac OS X Install ESD open BaseSystem.dmg

Steps to Follow (4)

This will mount it as Mac OS X Base System in desktop and under Volumes.

Steps to Follow (5)


After Base System mounted, we can use Restore feature under disk utility to copy the entire data. Go to Disk Utilities and select the source and destination as shown below to start the restore this will copy the entire base system to 5GB hard disk. Provide the root access password.

10

Steps to Follow (5)

11

Steps to Follow (6)


Copy the kernelcache files with following command. cp "/Volumes/Mac OS X Install ESD/kernelcache" /Volumes/LionInstaller/kernelcache

12

Steps to Follow (7)


Modify the plist file to enable the kernelcahce we copied in new installer disk.
Go to /Volumes/LionInstaller/Library/Preferences/SystemConfigurati on/ and opencom.apple.Boot.plist file with TextEdit.

Enter following string and save the file. <key>Kernel Cache</key> <string>\kernelcache</string>

13

Steps to Follow (8)


Now copy the installation packages by following commands. sudo rm /Volumes/LionInstaller/System/Installation/Packages sudo cp -R "/Volumes/Mac OS X Install ESD/Packages" /Volumes/LionInstaller/System/Installation/Packages Second command will copy large size of data to new VMDK file. Wait for some time.

14

Steps to Follow (9)


We are almost done. Since VMware supports Mac OS X server versions only, newly created installation image should be flagged as server version. Run the following command. cd /Volumes/LionInstaller/System/Library/CoreServices sudo touch ServerVersion.plist

15

Steps to Follow (9)


Thats it, our bootable Lion installer image is ready and it can boot in VMware without any boot loaders. Shutdown the running Snow Leopard virtual machine and remove the 5GB VMDK file from virtual machine. This VMDK file can be attached to other new Lion VM to boot and install.

16

http://www.sysprobs.com/create-bootable-lion-os-installer-image-vmware-windows-intel-basedcomputers

17

You might also like