USB Flash Drive-Based Chameleon 2.0RC2 / Retail Install

This tutorial is for installing OS X Leopard 10.5.6 on a PC using a USB flash drive.

It was penned by dougaa in its entirety and can be found on the insanely mac.com forum  

Add Customizations for Chameleon to Load

These steps install the kernel extensions and com.apple.Boot.plist files needed for your hardware. If you added a replacement kernel in step 11, you should have a com.apple.Boot.plist file which specifies the name of the replacement kernel. For my P4 install, com.apple.Boot.plist contains:

The end result is a flash drive which can be used to boot your PC using Chameleon and do maintenance on OS X (eliminating the need for an extra OS X partition), and Chameleon and OS X installed on your hard drive. The flash drive offers several advantages over a DVD. It is easier to set up, boots much faster than a DVD, and makes it easy to try different kexts or other changes. At the time of this writing, the required 8GB USB flash drive costs less than $20. 

For Snow Leopard, dougaa has written a similar tutorial http://www.insanelymac.com/forum/index.php?showtopic=199832.

These steps are based on my experience doing installs using an Intel D915GUX motherboard with a Pentium 530J processor, and also an Intel D975XBX2 motherboard (Bad Axe 2) with a Core 2 Quad Q6600 processor. dougaa has tried to generalize what worked well into a tutorial. The information here comes from a variety of sources, but munky's tutorial at http://www.insanelymac.com/forum/index.php?showtopic=127330 was particularly helpful. dougaa concentrated on the steps to get an initial install of OS X running, even if some hardware, such as sound, may not work initially. These steps and Chameleon are compatible with using EFI, but setting up EFI is not covered.

While the retail DVD installs 10.5.6, this method works for 10.5.8. After installing 10.5.6, Software Update can be used to update to 10.5.8 without taking any special precautions (thanks to Chameleon).

Please let me know about any problems with this tutorial and I'll make updates as needed.

Change Log

2009-05-15: Minor updates for 10.5.8 and Chameleon RC2

2009-05-15: Added a note that this works for 10.5.7

2009-05-15: Added a note about hard drive installation with RAID

2009-05-09: Initial version

Requirements

* The BIOS in your motherboard must support booting from a USB drive

* Leopard 10.5.6 retail DVD

This may also work with the original 10.5.0 DVD, but dougaa hasn't tested that.

* An 8GB or larger USB drive which can be completely erased, I assume most people will use a flash drive, but any drive separate from the one you are installing on will work.

* Access to an existing installation of 10.5.6

Access is only needed long enough to get the USB drive set up. 

Before starting you need to know what modifications are needed for OS X to run on your system. At a minimum, some number of kernel extensions (kexts) need to be replaced. You may also need a replacement kernel such as the excellent Voodoo kernel. Also, you may need to add device strings to com.apple.Boot.plist. If you already know what changes need to be made for your hardware this should go very smoothly. If not, do an initial install using one of the Leopard distributions. The distributions are a source of kexts and kernels, and by changing installer options you can determine what works best on your hardware. Also, the Leopard system you install using the distribution can be used to perform these steps. Once the flash drive is set up the distribution install can be replaced by the retail install.

Partition the USB Drive

These steps create a 512MB partition on the USB drive for Chameleon and any files needed to customize your OS X installation. They also create a 6.66 GB or larger partition for a copy of the OS X retail install DVD.

Copy the Retail Image to the USB Drive

These steps copy the contents of the retail DVD to the USB drive partition. To save space, the Xcode Tools optional install is not copied. After OS X is installed, the original retail DVD can be used to install Xcode Tools. Also, the latest version of Xcode Tools can be downloaded from Apple after getting a free ADC membership.

CODE

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Kernel</key>

<string>mach_kernel.voodoo</string>

<key>Kernel Flags</key>

<string></string>

</dict>

</plist>

Disconnect the USB Drive

Boot the USB Drive and Install OS X

We're ready to boot the USB drive. With the USB drive connected to the PC, boot or reboot it and go into the BIOS settings. Make sure the BIOS is set to allow booting from USB drives, and that the USB drive comes before any hard drives in the boot order. Don't forget to save any changes. If you've carefully followed the above steps, the most likely reason the USB drive won't boot is the BIOS settings. Just getting the USB drive to boot should work even if it turns out there is a problem getting OS X to run.

Finish the Installation

If you didn't need to make any changes to the retail disk image (step 11), and you always want to boot OS X using the USB drive, you're done! When booting just select the version of OS X you just installed on the Chameleon boot screen. After booting, the usbboot and OS X Install Image partitions can be ejected by dragging them to the trash.

If you did make changes to the retail disk image, continue with the next step. Otherwise, skip to step 26.

Install Chameleon on the Hard Drive

WARNING: The directions that follow assume a dedicated hard drive for OS X without any other operating systems. Also, BE VERY CAREFUL if there are any hard drives in the PC with data which needs to be preserved. You should have backups, and not follow these directions unless you are sure you understand the significance of each step.

Also, these directions are not for RAID installs. However, Chameleon will work with RAID. That's documented under "RAID Install" in the README file found in the Chameleon doc folder.

Set Chameleon Options

If desired, you can edit com.apple.Boot.plist to set various Chameleon options. The available options are listed in BootHelp.txt, which is in the Chameleon doc folder. I used the options to set the default partition in the boot menu, and also the graphics enabler and built-in Ethernet enabler. The enabler options are new in Chameleon RC2, and with those I no longer needed a device-string in com.apple.Boot.plist. Read Chameleon 2.0-RC2 is available with new features and less bugs on the Chameleon web site for more information about that.

Good luck!

Customize the Retail Image

Because Chameleon is being used, little or no customization of the retail image is normally needed. If you can't use the vanilla kernel, you'll need to add a replacement kernel to the retail image. For my P4 install I need to use the Voodoo kernel. For my Core 2 install the vanilla kernel works.

Add Additional Terminal Commands to the Retail Image

The OS X installation disk contains only a subset of all the Terminal commands included in a full install of OS X. This step makes all the commands available when Terminal is run from the installation disk, so it can more easily be used to setup or repair a hard disk installation. For example, this makes the "more", "emacs", and "vi" commands available. While the rest of these commands can be done from either an Intel or PowerPC machine running Leopard, these additional commands must be copied using an Intel OS X machine. While the additional commands can be very useful, they are not required for the other steps listed here.

Install Chameleon on the USB Drive