Building a Hackintosh

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.JPG


osx desktop

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.png

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

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.png


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.

  

#1 J. Ambrose Little avatar
J. Ambrose Little
1.10.2009
10:35 AM

Nicely done! Enjoy!


#2 PIlotBob avatar
PIlotBob
1.10.2009
12:31 PM

Nice article. You give me hope that I can get a nice "Mac Pro" for sub $1000. I'm glad you bought your license for this. So many people just don't do that. You do know that MS has an RDP client for Mac right? I use it all the time to remote into my Dell laptop from my iMac.

connect.microsoft.com/.../macrdc

BOb


#3 Sean Scally avatar
Sean Scally
1.10.2009
1:11 PM

Congrats!

I just completed my Hackintosh install too! I'm still running 10.5.2, however... not brave enough to try upgrading past that since I just barely seemed to get 10.5.2 running.

What spurred your move to OSX?


#4 benscheirman avatar
benscheirman
1.10.2009
4:33 PM

@PilotBob - yeah I know, but I'm talking about connecting to my mac from my work machine (windows). I've tried the built-in VNC, but it's REALLY slow. It also doesn't let me bump-down the color bit to, say, 8-bit.

@sean - I've had mac-evny for a long time now, and I know my next purchase will be a MacBook Pro, however that's a ways off, and this happened to work for me now :)


#5 Jason S avatar
Jason S
1.12.2009
8:58 AM

On the high end, Macs typically have a very high premium, on the low end it's much closer. This was a big factor in deciding which laptop to get, I settled on the regular MacBook.


#6 Tom Opgenorth avatar
Tom Opgenorth
1.12.2009
1:56 PM

I'm sort of thinking my next laptop will be a Hackintosh too. I'd be interested to hear a followup or two in the near future.

I guess the most important question is: How does it handle World of Warcraft?


#7 benscheirman avatar
benscheirman
1.12.2009
2:04 PM

@Tom: laptops are a bit tricker, since the hardware isn't as commodity. Do plenty of research before you decide on a laptop.

that aside, wow plays fantastic!


#8 Paul Squyres avatar
Paul Squyres
1.12.2009
3:58 PM

Nice going Ben. I just bought a new MacBook Pro...traded in my old one. Everything is great except for the glossy screen -- still not used to it. Kinda pissed that the 17" Macbook Pro has a matte build-to-order option and the 15" does not. So are you going to write some iPhone apps? I'm waiting for Apple to approve mine. Hopefully I can say (Cha-ching! soon).


#9 benscheirman avatar
benscheirman
1.12.2009
4:29 PM

@Paul - thanks! I have an idea for an iphone app, but I'm really lost with obj-c & xcode. I have the iPhone in Action book from Manning and I plan on going through that. What's yours about?


#10 Paul squyres avatar
Paul squyres
1.12.2009
4:44 PM

Unfortunately Ben, I'm under an NDA with Apple until my application is released. Sucks, but gotta play by their rules. I have 8 other ideas for some apps that haven't been done yet, and would love to collaborate with you on them sometime. One of the toughest things so far has been understanding all of the copyright laws. I had to purchase a bunch of "unlimited electronic license runs" for some graphics and animation sequences from iStockPhoto and various other sites to be completly legal. It can get a little overwhelming, but hopfully it will pay out in the end (and nice to have a neighbor who is an attorney :-). Yeah, objective-c is not my favorite language...gives me troubles....I found some great sites and a couple books I'll sent your way that were a great kick-start. Not too fond of interface builder too, but it's just a matter of learning it all.


#11 Moe Al-Kazzaz avatar
Moe Al-Kazzaz
1.14.2009
12:31 PM

i.gizmodo.com/.../the-netbook-hac

Be careful :)


#12 Dan Morphis avatar
Dan Morphis
1.15.2009
6:21 PM

Ben, pick up the Cocoa programming for Mac OS X book by Hillegass (http://www.amazon.com/Cocoa-Programming-Mac-OS-3rd/dp/0321503619/) He does a good job of taking you through Obj-C, the IDE and Cocoa.


#13 Darrin Demchuk avatar
Darrin Demchuk
1.16.2009
5:11 PM

Great article.

I'm really really close to making the move to building your exact rig as I need to be able to use the full Adobe Suite while also doing Ruby on Rails and some Python development so I need a Mac but just plain can't afford one.

I see that you are a software developer who lists some RoR links and from your screenshot I can see you have Photoshop installed. How does RoR run? Everything installed fine?

What about Photoshop, what's the performance like? Is it CS4 (and if so, does the hardware acceleration work with the NVidia card?)?

Thanks in advance!


#14 Peter Morris avatar
Peter Morris
2.15.2009
7:44 AM

Bizarre!

I am running Windows on an iMac. Useful operating system, silent hardware.

You are running MacOS on a PC. Useless operating system, noisy hardware.

:-)


#15 don avatar
don
3.30.2009
5:58 AM

check out this topic

10007.info/.../index.php

worlds most cheapest hackintosh pc


#16 afiszone avatar
afiszone
4.12.2009
10:36 AM

Nice Hackintosh, but you can run need for speed prostreet on your hackintosh !!


#17 Joseph avatar
Joseph
4.15.2009
11:22 PM

Save your money up for a real Apple Computer, you will never regret it. I can't imagine running OS X on a PC. That would be like trying to install a navigation system in a Hyundai from a BMW, Its just not right.


#18 @orlandocr avatar
@orlandocr
5.20.2009
2:38 PM

You've got the wrong link to "Intel Core 2 Duo E8400 @ 3.0ghz ($164)"


#19 CrazyEnigma avatar
CrazyEnigma
5.25.2009
12:48 PM

Great post. I am looking forward to hacking kexts to get my sound running.

It's interesting what people say about the Hack, but some people don't have a choice especially when they were suckered into buying Vista, when they could have shelled some extra dough and could have gotten a Mac, but is now wanting to get the most out of their crappy brand new hardware-supported Vista machine.

My main problem with my laptop was that the Video Driver kept crashing in Vista and it would reboot itself while I was working on something. Dell said everything was fine, and I would have to pay Microsoft to fix it (even though I was under warrantee, but my warrantee was only for Dell Hardware).


#20 sudheer avatar
sudheer
6.22.2009
4:06 AM

can anyone plzz specify what are the kexts to be installed to get the sound running...also plzz provide me the download links