Tabs

January 3, 2014

How to install OS X Mavericks on your PC with Niresh


If you're interested in running Mac OS X, but you don't want to pay ridiculous prices for a normal Mac, then a Hackintosh just might be for you. Right now, the newest iteration of OS X is 10.9, known as Mavericks. In this guide, we'll show you how to install Mavericks on your PC with the newly released "Niresh" distro.



The advantages of Unibeast vs. Niresh
Niresh is a distro, which is a pirated copy of Mac OS X that has been modified to work with a PC. Distros are a popular Hackintosh alternative to Unibeast, a better-known installation tool which requires a retail copy of Mac OS X instead. If you don't have any qualms with the legal issues regarding distros, they're actually the most convenient way to set up your Hackintosh.
Unlike previous versions of Mac OS X, Apple released OS X Mavericks onto the Mac App Store for free, meaning that the Unibeast method is now 100% free to use. However, using a distro to install Mac OS X still offers a far share of advantages:

  • You don't need a real Mac. Unibeast is a Mac app, so you need to have an existing Mac OS X installation for it to work. This usually means that you either have to find a real Mac, or set up a Mac virtual machine. However, with Niresh, you can just set up everything from a Windows computer.
  • The post-installation is easier. By default, Niresh will automatically install necessary Hackintosh-specific kexts and drivers for your computer when you boot your Mac OS X installation for the first time. Unibeast requires you to do this manually, using the Multibeast tool. While the post-installation in Niresh isn't perfect (you'll probably have to use Multibeast anyways), it's still a nice convenience.
  • You can install it on a hard drive that already has Windows installed. By default, the Mac OS X installer will not work with hard drives that were originally formatted in Windows. Therefore, if your computer's hard drive already has Windows installed on it, you won't be able to install Mac OS X on there. Normally, you can bypass this limitation on Unibeast by applying the MBR patch; however, Niresh does this for you automatically, saving you one extra step.
  • Niresh supports AMD. Normally, computers that use AMD processors are unsupported by Mac OS X. However, Niresh includes experimental "patched" kernels that may allow Mac OS X to work with these processors regardless.

Interested? Here are the requirements:
  • An existing Windows computer/Mac/Hackintosh: This is the computer where you will download and set up Niresh. The computer can run either Windows or Mac OS X; both operating systems will work.

  • A Hackintosh-compatible computer with an empty hard drive: This is the computer where you will install OS X Mavericks. It can be the same computer as the one mentioned in the previous point. If your computer already has Mac OS X installed, Niresh will just update OS X normally, without deleting any of your apps or files.

    However, not every computer will work with Mac OS X. Be sure to read the Hackintosh compatibility guide very carefully, to check whether or not your computer qualifies. Also, Mac OS X needs its own hard drive-- a minimum of 10 GB of space is required, but at least 50 GB of space is recommended. It's preferred that you use a completely empty hard drive for this, but if your computer already has Windows installed on your hard drive, be sure to create an appropriate hard disk partition for OS X Mavericks beforehand (by following Step 1 of our guide to MBR partitions).

  • Niresh 10.9 (Free): Niresh is a "distro" of OS X Mavericks that has been modified to work with PCs. You will need to use a bittorrent client to download the disk image file, which is a little less than 6 GB in size. On the Niresh website, you'll be given an option to either download the "ISO Version" or the "USB version" of "Niresh - 10.9 - Mavericks". While either version will probably work, download the DMG version, just in case.

  • An empty USB drive (6 GB or larger): In this guide, you will write Niresh onto a USB drive, and boot your computer from that drive to install OS X Mavericks. The USB drive must be at least 6 GB in size. Since you will need to erase all of the files on the USB drive, make sure to back up its contents first. You can reuse this USB drive for normal stuff after you finish installing Mavericks.

  • Win32 Disk Imager: (Free): If you're using a Windows computer to set up Niresh, you need to use Win32 Disk Imager to write the Niresh disk image file onto your USB drive.

  • Multibeast (Free): Multibeast is a collection of kext files that your Hackintosh will need to run properly, after the initial installation. Be sure to download the newest version 6 of Multibeast, not the older versions 3, 4, or 5 (which are for Snow Leopard, Lion, or Mountain Lion respectively).

1a. Create your Niresh USB drive (Mac)
Follow this step if you're setting up Niresh on a Mac or existing Hackintosh. Plug your USB drive into Mac OS X, and open Disk Utility (located in Applications->Utilities in your main hard drive). Select your USB drive in the sidebar of Disk Utility, and erase the drive. You can rename and format the drive any way you want-- it doesn't really matter.

Next, open your downloaded Niresh disk image by double-clicking it; this file will probably be named "OSX-Mavericks.dmg". Then, open Terminal (also located in Applications->Utilities), and type the following:

diskutil list

Press the enter/return key. This command will output a list of drives currently connected to Mac OS X, including your USB drive. Each drive is labeled with an identifier such as "disk0", "disk1", etc. In the screenshot below, my USB drive (which is named "PIZZA") has the identifier "disk3". Remember this identifier.

Next, type the following commands:

diskutil unmountdisk /dev/"identifier"

sudo dd if="location of Niresh disk image" of=/dev/r"identifier" bs=1m

Replace "identifier" with the actual identifier of your USB drive (don't include the quotation marks), and replace "location of Niresh disk image" with the actual file path of the Niresh disk image that you downloaded (also without quotation marks). In the screenshot above, my Niresh disk image is located in the "Downloads" folder of my "Kitten" hard drive, so I type if=/Volumes/Kitten/Downloads/OSX-Mavericks.dmg as part of the second command. Meanwhile, my USB drive had the disk3 identifier, so I type of=/dev/rdisk3 (don't forget the letter "r" before the identifier).

Press the enter/return key. Terminal will ask for your system password. After you enter your password, it will begin writing the Niresh disk image onto the USB drive. This will probably take 10-15 minutes, though it may take longer, depending on the speed of your USB drive. The terminal screen will be frozen during the whole process-- this is normal! Once it finishes, your USB drive will contain a fully bootable version of the OS X Mavericks installer.

1b. Create your Niresh USB drive (Windows)
Follow this step if you're setting up Niresh on Windows. Plug your USB drive into your computer, and open Window's built-in Disk Management utility. You can easily do this by typing "partition" into your Start Menu search bar and choosing the "Create and Format hard drive partitions" option.

You will see a list of drives connected to Windows. Right-click on your USB drive, and click "Format". From here, erase the USB drive (you can rename and format the drive any way you want-- it doesn't really matter).

Next, open Win32 Disk Imager. Click the blue file icon on the app's main screen. In the Windows Explorer window that pops up, select your downloaded Niresh disk image; this file will probably be named "OSX-Mavericks.dmg". (You will only be able to see the file when you select the "*.*" option in the "Files of type" field-- the default "Disk Images" option won't work)

Next, select the device letter of your USB drive, and click "Write".

Win32 Disk Imager will begin writing the Niresh disk image onto your USB drive. This will probably take 10-15 minutes, though it may take longer, depending on the speed of the drive. Once it finishes, your USB drive will contain a fully bootable version of the OS X Mavericks installer.

2. Set up the parts of your PC
I covered these steps in my Snow Leopard guide, but they're worth mentioning again:
  • Unplug all USB-connected devices from your computer before you begin the setup (except your keyboard and mouse). A faulty external USB hard drive can cause your Hackintosh bootloader to give you EBIOS errors on startup.
  • Open up your computer and unplug any extra internal hard drives that your computer has, besides the hard drive that you're installing OS X on. (Just unplug the hard drive SATA cables from your motherboard.)
  • If possible, connect your monitor to the DVI port of your computer's graphics. The Mac OS X installer sometimes has problems with HDMI and VGA.
NOTE: If you're installing Mac OS X on a computer that already has Windows installed, you may have to enable AHCI for Windows beforehand. Otherwise, Windows won't boot afterwards. Also, after installing Mac OS X, you should also sync your clock on Windows with Mac OS X.

3. Set up your motherboard's BIOS
The BIOS is basically a settings page for your motherboard. To enter the BIOS on my own computer's Gigabyte P67A-D3-B3 motherboard, I have to press the delete key when it boots (before the operating system starts). Different manufacturers set different keys for opening the BIOS.

NOTE: If you have a newer Gigabyte motherboard that uses the UEFI interface instead of BIOS, check out our guide for setting up the UEFI instead.

If your Hackintosh already has Mac OS X Snow Leopard, Lion, or Mountain Lion installed, the only thing you'll need to change in the BIOS is the "Boot Device", so that your Niresh USB drive has highest priority.

If your Hackintosh doesn't have any version of Mac OS X installed yet, you have to change a few extra BIOS settings. Before starting, reset all of your BIOS settings to their factory defaults. On Gigabyte motherboards, you can reset your BIOS settings to their default by selecting "Load Optimized Defaults" on the main page of the BIOS. Once your BIOS is running on its defaults, you need to change these three settings:

Boot Device - Change the boot device of your computer so that "USB-HDD" is first. You need to do this for Niresh to work. After you finish installing Mac OS X, you should change this setting back to default, so that "Hard Disk" is the first boot device (this optional, but it will speed up your boot times).

HPET - Change this to 64-bit.

SATA Control Mode (your BIOS might call this a different name) - This will probably already be set to "SATA", "IDE", or "RAID". Change it to "AHCI". Mac OS X only works with AHCI.

Keep in mind that the BIOS on most motherboards do not support using a mouse, so you'll probably have to navigate through the BIOS with the arrow keys on your keyboard. Press "Enter" to change a selected option in the BIOS. On my Gigabyte motherboard, I have to press F10 to save my changes.

4. Boot into Niresh
Restart your Hackintosh, and plug in your Niresh USB drive. If things go well, your computer will boot from the USB drive instead of booting from your normal hard disk. You will then be able to view the Niresh menu.

If you do not manage to reach the Niresh menu, check your motherboard's BIOS settings to make sure that the changes you made in Step 3 were properly applied. If they were, but you still cannot boot from the Niresh USB drive, unplug your USB drive, and go back to Step 1. Reformat your USB drive with Disk Utility and try again. If all else fails, try using a different USB drive for Niresh.

At the Niresh menu, press the enter key (or return key) to start the OS X Mavericks installer. The installer screen will take several minutes to load. If you are trying to install OS X Mavericks on a computer using an AMD processor, you'll have to type the boot flag "amd" or "amd64" (without quotation marks)-- which flag you need depends on your specific processor, so test one flag a time. Type the boot flag "amdfx" (also without quotation marks) if your AMD processor has "FX" in its model name.

In the worst case scenarios, instead of loading the Mac OS X installer, you may end up at a dark gray screen that tells you to restart your computer (a kernel panic), or you may end up with a small crossed-out sign (a loading error). If you get a kernel panic/loading error (or if the Mac OS X installer simply won't start within 10 minutes), you'll need to enter some boot flags. To enter boot flags, manually restart your computer by pressing your computer's power button. Then, once you've booted back into the Niresh menu, try typing any necessary boot flags before pressing the enter/return key. Check out this list of common boot flags for reference ( PCIRootUID=0 and -x are two popular boot flags).

5. Install Mavericks
Once you've entered the OS X Mavericks installer, you will come up to a page that asks you for a "destination" for your Mavericks installation.

If you're installing Mavericks on a computer that has never been turned into a Hackintosh before (i.e. doesn't already have Snow Leopard, Lion, or Mountain Lion installed), the hard drive selection box will be blank. We'll have to fix that. To do this, start up Disk Utility, which is located under the Utilities menu in the top bar.

You need to use Disk Utility to erase a hard drive partition so that OS X Mavericks can install itself on it. In the sidebar of Disk Utility, choose the hard drive partition where you want Mavericks installed, and erase it by using the "Erase" tab. You can also just erase the entire hard drive (this is the preferred solution if you don't plan to dual-boot Windows and Mac OS X from the same hard drive). In the screenshot below, my two hard drive partitions are called "Stuff" and "More Stuff", while my entire hard drive is called "21.47 GB VMware Virtual".

When erasing, the format should be set to "Mac OS Extended (Journaled)". You can also partition the hard disk by using Disk Utility's Partition tab.

NOTE: Mac OS X cannot boot from a partition that's larger than 1 TB in size, so if you have a 2 TB hard drive, you will have to partition it.

On the installation page for Mac OSX, the hard disk/disk partition should now be showing up. Select it, and then click the "Customize" button on the bottom left. This is where using a distro becomes really useful: Niresh allows you to install extra Hackintosh drivers and kexts, straight from the OS X Mavericks installer. The "Customize" page essentially does the same thing as Multibeast, though the layout (and most of the names of the options) are different.

However, choosing the right options from this page can be really tricky, so unless you're absolutely certain about which drivers and kexts you need to install for your computer, I don't recommend installing too much stuff from here. The default selection will enable Mac OS X to boot from the hard drive without any assistance, and automatically enable audio and ethernet. For most computers, that will be enough.

If you wish to install more, refer to our guide to Multibeast. Otherwise, you can figure out the rest in Step 6, where you'll actually set up your Hackintosh with Multibeast.

If your computer already has Mac OS X installed and you are simply updating it to Mavericks, you can just uncheck all of these options. Mac OS X treats Mavericks as just another update-- there's no need to reinstall all of your kexts and drivers.

Once you're done with the "Customize" page, install Mavericks. This will take at least 30 minutes.

6. Boot into Mac OS X
Once the installation finishes, remove your Niresh USB drive, and restart your computer. At the boot screen, you'll see an icon for the hard drive where you installed Mavericks. Select it (use the arrow keys on your computer) and press "Enter".

Mavericks will boot. Mission accomplished! Once again, if you get a kernel panic/loading error when you try to boot your new Mavericks installation (or if the installation simply won't start within 10 minutes), you'll need to enter some boot flags. To enter boot flags, manually restart your computer by pressing your computer's power button. Then, once you've booted back into the Niresh menu, try type any necessary boot flags before pressing the enter/return key. Check out this list of common boot flags for reference ( PCIRootUID=0 and -x are two popular boot flags).

Once Mavericks has booted successfully, click through through the Mac OS X setup screens until you reach the desktop. From here, Niresh will work its magic, and automatically install the rest of the Hackintosh-specific kexts and drivers from Step 5.

Wait several minutes, while this process works in the background. Once you receive a notification saying that the installation has been completed, restart your computer.

6. Multibeast
Multibeast is a collection of kext files that you usually need to install for your Hackintosh to have sound, internet, a high resolution screen, and more. Different Hackintosh builds require different Multibeast setups, though most setups are very similar. Find out what Multibeast options you need to install. If you have a Gigabyte GA-P67A-D3-B3 motherboard like me, check out my own Multibeast setup.

Since Niresh already installs a lot of necessary kexts for your Hackintosh automatically, you probably won't have to manually install audio or ethernet kexts with Multibeast. However, you may still want to use Multibeast to run UserDSDT, apply a few extra fixes, etc.

If you're just updating your Hackintosh from an older version of Mac OS X, you don't have to reinstall UserDSDT, Easybeast, or Chimera in Multibeast after installing Mavericks. Mac OS X treats Mavericks as just another update. You might also have to reinstall miscellaneous kexts, such as TRIM Enabler (for SSDs).

To run Multibeast in OS X Mavericks, you have to go the "Security" section of System Preferences in Mac OS X, go to the "General" section, and check "Anywhere" in the "Allow applications" section. After running Multibeast, you'll also probably want to change your BIOS settings back to normal (from Step 3).

Once that's done with, you should be running a fully functional copy of OS X Mavericks on your PC. If you plan on updating Mac OS X in the future, check out our guide to updating your Hackintosh. Congratulations!