I'm writing this post on my new hackintosh - that is - OS X Leopard running on PC hardware. So far the system is pretty stable and I'm liking it a lot.

IMG_0734

leopard

Running OS X on PC hardware isn't always easy, I just happened to have the lucky mix of hardware that pretty much just works. The motherboard is the most critical determining factor.

My hardware

You could easily build a PC based on this hardware for under $500. We have sound, lan, any hard drive will do, a decent video card, a fast processor, and 4 GB of memory. I'm using this on my existing Vista machine, so I decided to install on an external drive. Dual booting is possible, and with USB it's easy: just unplug the USB drive to boot in windows. Other options allow you to have a boot menu to choose the OS.

Where to start

The definitive place to learn how to do this is the Insanely Mac Forums. Expect to read a TON before you start. Spend most of your time initially in the OSx86 forum.

The software

  • I got most of my help from this tutorial. It is based on this same hardware, and pretty much worked right away for me.
  • Kalyway 10.5.2 OS X Installer
    You can get this from the usual places. I originally used this install and it worked okay, however I noticed a handful of application crashes and the occasional GSOD (Grey screen of death). We're going to use this for the initial boot and to make a utility install. Utility installs will help when things go wrong, like for example if you decide to use a driver (known as kernel extensions or "kexts") and the kext causes a kernel panic on boot, then you can boot in the utility partition and fix it.
  • Retail Leopard OS X 10.5.5
    You can get this at an Apple store, ebay, craigslist, or the usual places. I found one on craigslist for $50.
  • 10.5.6 combo updater
  • v4.4 utility package from the tutorial author

You can get the combo updater and the utility package from the tutorial post. Follow the tutorial and you should be fine.

BIOS

Having an updated BIOS is usually a good idea. In my case I had to update to F5. I also had to enable SATA AHCI, which is supposed to increase the reliability of OS X. This made Vista blue screen on boot. Apparently Vista removes unused drivers to speed up boot time. Enabling a setting in the registry fixed this.

Create a utility install with Kalyway

This is something that was confusing to me. Sort of a chicken and egg problem, but you need to install the retail install from an existing OS X installation. I used the Kalyway installer. I shrunk a partition in Windows by 40GB, then rebooted with the Kalyway DVD. It takes a while, but eventually the OS X installer came up. You then go to Disk Utility and format the partition. Choose Mac Journaled as the format. OSX should install after 10-15 minutes. This is where some folks have hardware issues. If your sound, lan, or video cards don't work, then you have to roll up your sleeves and do some manual hacking. I lucked out and mine pretty much worked. It wasn't very stable though.

Once you're in, you can continue to boot to this install using the boot DVD. I was unable to get any bootloaders to work. This utility install will be helpful to fix any problems that arise from tinkering with the main OS.

From there, I followed this guide which provided me with most of what I needed to get the retail DVD installed, update to 10.5.6, run the postpatch.sh script and reboot. Then I ran the EFI hack which allows you to boot directly into OS X. At this point I set the USB drive to be first priority and viola! Leopard booted.

Getting 3D Graphics working

Upon booting the first time the graphics were sluggish and it could only run at 10204x768. There are a number of posts on the topic of video drivers, the problem is some of them are dated. NVinject worked for my 10.5.2 Kalyway install, but did not work for the 10.5.6 retail. Instead I had to use EFI Studio (found in the v4.4 package from earlier) and selected the 8600 GT 512 MB item. ![efistudio](https://s3.amazonaws.com/benpublic/blog/2017/12/efistudio.png)

Then I clicked "Add Device" which brought up this window:

![efistudio2](https://s3.amazonaws.com/benpublic/blog/2017/12/efistudio2.png)

Then click "write to com.apple.Boot.plist", reboot and you're good! To get sound working I had to install the ALC888 kext.

Installing kexts

Installing kexts is basically copying a file to /System/Library/Extensions, fixing up the permissions on the file(s) with

``` sudo chmod -R 755 /System/Library/Extensions/yourkext.kext
sudo chown -R root:wheel /System/Library/Extensions/yourkext.kext ```

then you need to remove the kext caches like so:

``` sudo rm -R /System/Library/Extensions.kextcache
sudo rm -R /System/Library/Extensions.mkext ```

Reboot and cross your fingers! If you get a kernel panic, then just boot in single user mode (press F8 at boot and type -s at the prompt) (or boot your utility install) and remove the offending kexts.

I found it easy to automate this process using KextHelper.

At this point I have a fully retail copy of 10.5.6, and I'm a "Mac Pro" in the eyes of Apple. This means (I think) that I can update to future versions with little to no tweaking!

![about-this-mac](https://s3.amazonaws.com/benpublic/blog/2017/12/about-this-mac.png) ![about-this-mac2](https://s3.amazonaws.com/benpublic/blog/2017/12/about-this-mac2.png)

If I were to build a Mac Pro from apple.com with these specs, it would cost near $3000!

Things still to figure out

My Microsoft Lifecam v1000 doesn't quite work. I got it to work in iChat for a few minutes, but doesn't work in Photobooth or Skype. This is a minor setback, as I can just buy a supported one.

My RAID array isn't visible. I have 2x250gb drives in RAID 1 (stripe). I need to investigate & see if there are drivers for my SATA raid card. All in all it's a small loss.

VNC comes built-in with 10.5.6, however it's SO SLOOOOWWW over the internet. Remote Desktop is far superior because they aren't streaming bitmaps, it is actually rendering a desktop locally & transmitting state changes. I really want to find a better solution for accessing my PC remotely.

Conclusion

This system has been really stable so far. I've had one crash, and I'm not sure what caused it, but a week has gone by with no lockups or crashes whatsoever. I'm really close to ditching my Vista install and put this on my fast Western Digital Raptor main drive.