Tabs

February 8, 2012

How to install a Snow Leopard Hackintosh in Virtualbox

We've already covered how to run a Mac OS X virtual machine with VMWare Fusion on your Hackintosh, but that tutorial won't do you much good if you haven't installed Mac OS X on your PC yet. If you need help deciding whether to make that leap of faith, then you can try installing Mac OS X Snow Leopard on Virtualbox, instead. Virtualbox is a virtualization suite that works for Windows-- installing Mac OS X on a virtual machine in Windows before doing it on your actual computer is great practice, and it gives you a chance to determine whether you'd actually prefer OS X over Windows. Read past the break for a full tutorial.

NOTE: The following guide is for installing Mac OS X Snow Leopard only, because it uses the same method that I use for my standard Snow Leopard installation guide.

For this virtual machine, we're going to use Virtualbox, which is a free and open-source virtualization suite.  Installing OS X with Virtualbox on Windows is more difficult than doing it with VMWare Fusion in OS X, because Windows virtualization programs do not "officially" support Mac OS X. You will not be able to enable full graphics support, for instance. This tutorial should only be taken as a proof of concept.

Computer Requirements
You need a computer with Windows to run Mac OSX on Windows (of course). You will need at least 4 GB of RAM and a dual-core (two core) processor or better. Personally, the computer I was using for this had a 4-core processor and 12 GB RAM, which is way more than enough. You also need about 10 GB of unused hard drive space.

Right click on "My Computer" on your desktop and click "Properties" to check the stats on your computer. If it doesn't directly tell you how many cores your processor has, look up your processor model on Wikipedia or Google. You also to note remember whether your processor is "Intel" or "AMD". This guide does not cover AMD processors, as they make Mac OS X more difficult to set up.

General Requirements
In addition to a good computer that uses an Intel processor, you need these following three things to run Mac OS X on Windows.

  • Virtualbox : This virtualization suite is free (unlike VMWare), and though it doesn't offer official support for Mac OS X, it works well enough.
  • iBoot and Multibeast : You need tonymacx86's boot CD to boot the Mac OS X installer, and Multibeast to enable Virtualbox to boot OS X without iBoot later on. Technically, any boot CD for Mac OS X will work, and you don't need Multibeast to install Chameleon (the main componen of Easybeast), but we'll use tonymacx86's tools for the sake of convenience. As usual, you have to register on tonymacx86.com to download these tools.
  • Mac OS X Snow Leopard installation DVD ($20): The method used by this guide requires the retail DVD for Mac OS X Snow Leopard. 

Step 1: Prep
Download Virtualbox, install it, and open it up. Also, if you want to be able to view USB devices from your Mac OS X Snow Leopard virtual machine, download the Virtualbox Extension Pack and run it before going to Step 2.

You also need to download the .iso file for iBoot.

Step 2: Create a new virtual machine
Virtualbox lets you run Mac OSX within Windows by creating a virtual machine, which is a program that simulates a normal computer.  To create a virtual machine, open up Virtualbox and click "New" on the upper left. Give your new virtual machine a name, and choose "Mac OS X" for the OS Type.

I recommend assigning at least 2 GB of RAM to the virtual machine, but you can assign as little as 1024 MB of RAM. Every time you turn on Mac OS X, that RAM that you assign here will be used to run the virtual machine. The RAM will be given back to your normal computer after you turn Virtualbox off.

You'll need to create a new hard disk for the virtual machine. Virtualbox will ask you what type of disk you want to create: VDI, VDMK, or VHD. VDI is the original format for Virtualbox, while VDMK is the format used by VMWare. If you're considering getting a copy of VMWare, you might want to choose VDMK. Otherwise, just choose VDI. I recommend creating a dynamically expanding disk; the only other option, fixed-size storage, will eat up your hard drive.

Step 3: Give your new virtual machine an operating system.
Your virtual machine will now be created. But don't stop now--you still need to change a few settings before your machine will actually work. Your new virtual machine will show up on the left column of the Virtualbox start page.  Select your Mac OS X virtual machine (single-click) from the main page of Virtualbox, and open up the virtual machine settings. Once the settings open up, go to "System" and uncheck the "Enable EFI" box. This is by far the most important single setting that you will need to change.

EFI, which stands for Extended Firmware Interface, is a feature that helps operating systems start up. Unfortunately, Mac OSX requires 'speshul' EFI, so the EFI that Virtualbox uses doesn't work.

In addition, make sure that "Enable IO APIC" is checked. Then, click on the "Acceleration" tab and check both of the options there. I'm not sure whether these options actually matter (EFI is definitely the most important variable), but it's better safe than sorry.

Once you're done with that, go to the settings for "Storage". In the storage tree box, you'll see a CD icon labeled "Empty". Click on it and click "Choose a virtual CD/DVD disk file". In the window that pops up, choose the .iso copy of iBoot.

Step 4: Start it up!
Start up your virtual machine. You should come up to a screen with the tonymacx86 apple on top.

Insert your retail Snow Leopard DVD into your computer's DVD drive. On the bottom right of the Virtualbox window, there will be a small CD icon. This is your virtual CD drive. Right-click on the CD icon, and switch the virtual drive from your copy of iBoot to your actual DVD drive (with the Snow Leopard DVD in it).

Then press "F5" to refresh the iBoot menu, so that it can detect the new installation disk. Once iBoot detects the disk, press the enter/return key on your keyboard to start up the OS X installation. The installation screen will come up in a few minutes. You will eventually come up to a page that asks you for a "destination" for your Mac install. Oh no, the page is blank! We'll have to fix that. To do this, start up Disk Utility (located under the Utilities menu in the top bar).

You need to use Disk Utility to erase your hard drive so that OS X can install itself on it. Partition the drive if you want (OS X cannot boot from a partition that's larger than 1 TB in size, so keep that in mind when partitioning). Then erase the drive/partition that you intend to install OS X on.

On the installation page for Mac OSX, the hard disk/disk partition should now be showing up. Select it and continue to the Install Summary page. Click the "Customize" button on the bottom left of the Install Summary screen, and uncheck additional options to speed up the process.

Install OS X. The process takes me 20-30 minutes. Once done, the computer will reboot. Right-click on the small CD icon in the bottom right of the Virtualbox window again, and switch back to iBoot. The iBoot menu (with the tonymacx86 apple at the top) will show up again. Choose your new Snow Leopard installation from the iBoot menu, and press Enter to boot it up.


Step 5: Install Easybeast with Multibeast
By default, your ethernet (internet) and sound should work in your Snow Leopard virtual machine. Open Safari and download Multibeast Snow Leopard edition. Open Multibeast, and install Easybeast. You can now boot your virtual machine without having to switch your virtual CD drive to iBoot every time.


Step 6: Make the screen bigger
Though this step is optional, I still recommend you do it anyways. Anyways, when you first use your Mac OS X, you'll probably notice one thing: your screen resolution is 1024x768. Since Virtualbox doesn't "technically" support Mac OS X, there's no official way to change this. But here's how you can change it anyways:

Open up Finder and go to the folder "Extra" in the main hard drive, and open the file org.Chameleon.boot.plist. Between <dict> and </dict> in the file, insert the following line.

<key>Graphics Mode</key>
<string>1920x1080x32</string>

You can change "1920x1080x32" to whatever resolution best fits your monitor. For instance, if you want to use the 1600x900 resolution, type in "1600x900x32". 

However, Snow Leopard won't let you save your changes normally, since "org.Chameleon.boot.plist" is a system-protected file. Instead, you'll have to save a new version of this file to somewhere random (like the Desktop of Mac OS X, for instance). Then, delete the old version of org.Chameleon.boot.plist, and replace it with the new version that you have edited. Once that's done, turn off the virtual machine.

Next, open the Command Prompt in Windows (make sure you are logged into an Administrator account on Windows). You can do this by opening the Start Menu, and typing "command prompt" into the Start Menu search bar. Then, type the following command into the Command Prompt.

cd "C:\Program Files\Oracle\Virtualbox"

This command will change the focus of the Command Prompt to the program folder for Virtualbox (if you installed Virtualbox somewhere different, then change the command to wherever you installed it). Next, type in this command:

vboxmanage setextradata "Name of virtual machine" "CustomVideoMode1" "1920x1080x32"

This command activates "vboxmanage", a command-line program included with Virtualbox that allows you to edit the properties of your virtual machine, including its built-in resolutions. Replace "Name of virtual machine" with the name of your virtual machine (in the screenshot below, my virtual machine is named "Mountain Mac 2"). Replace "1920x1080x32" with whatever resolution you're using.

Once that's done, start your virtual machine again. It will now boot in full resolution. Congrats!


Step 7: Turn off updates.
First, an important note: DO NOT UPDATE NORMALLY. This is a golden rule of Hackintoshing, and it applies to virtual machines running Mac OS X too.

Anyways, Mac OS X is set to automatically update itself. This is bad. To turn off automatic updates, click on the Apple icon in the upper left hand corner of Mac OS X, go to System Preferences, and then click on "Software Update". Uncheck the box that says "Check for Updates".


Step 8: Updating your virtual machine
So, maybe you don't want your virtual machine to be stuck on Mac OSX version 10.6.3 forever. Well lucky for you, it's possible for you to update Mac OS X without it exploding.

First, download the combo update for the version of Mac OSX that you want. Unlike normal updates from the Software Update utility (that you should have turned off in Step 9), a combo update is installed manually. If you want to update your virtual machine to Mac OSX version 10.6.6, just search "10.6.6 combo update" on Google. The official combo update from Apple is literally the first search result.

Download the update. This will take a while, since most of the combo updates are massive. Once you're done, click "Machine" on the top of your Virtualbox window, and "Take Snapshot". Basically, this saves your machine's current state, so if you accidentally make Mac OS X blow up while updating, you can just restore it to your previous state.


After you've taken a snapshot of your machine's current state, run the update. This will take another 20-30 minutes. Once the update finishes and asks you to restart your virtual machine, DON'T RESTART.

Instead, open the web browser in your Mac OS X virtual machine, and download the legacy kernel for the version of Mac OSX that you're updating to. If you're updating your virtual machine to Mac OSX version 10.6.6, search "10.6.6 legacy kernel" in Google. Look for a legacy kernel by "nawcom".

All of the legacy kernels are available on nawcom's blog, but like most blogs, the organization is terrible. It's easier just to Google his stuff.

Once you've found the correct legacy kernel, install it. Then you can restart your computer to complete the system update.


If everything went right, your virtual machine should still be able to boot. Hooray! :D Plus, Mac OS X will have been updated.

Recap
Installing Mac OS X on a virtual machine is excellent practice for the real thing: installing Mac OS X on your actual computer. Don't get too comfortable, though. Compared to most computers, Virtualbox virtual machines are very "vanilla", meaning that they're very compatible with Mac OS X from the start. After all, sound and ethernet work from the start. You can't count on being that lucky with a real PC.

And even if you don't plan on doing this for real, with a Hackintosh, it's still a really cool thing to try out over the weekend.

SEE ALSO: How to install Mac OS X Lion in Virtualbox

85 comments:

  1. Thank you It's great article I've ever seen!!

    ReplyDelete
  2. Thanks mate, it's an excellent article - captures all the required info.

    ReplyDelete
  3. Good stuff. Would this work using a Linux host? If so, which distro would you recommend?

    ReplyDelete
    Replies
    1. Though I haven't personally tested it, this will probably work on Linux. All the distros are pretty much the same, so I don't have any particular recommendations.

      Delete
    2. Thanks! I'll let you know how it goes.

      Delete
    3. yes it works on a Linux host....I'm running Cent 6

      Delete
  4. Its really nice article & very help
    -Arvind

    ReplyDelete
  5. Seems like a great article. But when I get to the point of switching the disk and pressing enter in iBoot to actually load the installation, I just get a grey apple logo forever. Help?

    ReplyDelete
    Replies
    1. me too. :(
      don't know what to do

      Delete
    2. I do as well.

      Delete
    3. Try using iBoot Legacy instead of iBoot 3.3. That's what worked for me, and I have an Ivy Bridge processor.

      Delete
    4. me too, but i was using iboot legacy. Also, without selecting the copy of SL, I press enter with the iBoot still in the virtual drive and press enter a few times, the the grey logo sticks forever...

      Delete
    5. Also 2 minutes after a guru meditation error comes.

      Delete
    6. The installation process was successful but when i downloaded multibeast and then installed the EasyBeast Install I turned off the virtual machine then turned it back on (without iBoot) I got an error saying: header read size 200 incorrect image signature then comes the apple logo with no spinwheel and stays forever like that please help!

      Delete
    7. but if i boot it with iBoot it says the error but just ignores and the apple logo pops out with the spinwheel and boot normally

      Delete
    8. Hi Amer,

      did you solve the problem?

      Delete
    9. Similar story here... boots fine with iBoot (without full-screen unfortunately), but doesn't boot without it (no spinwheel, freezes grey apple logo forever)...

      Delete
  6. is possible to connect a videoprojector with this installation?

    ReplyDelete
  7. is possible to connect a videoprojector with this installation?

    ReplyDelete
  8. is possible to connect a videoprojector with this installation?

    ReplyDelete
  9. If I work in say Garageband in OSX and then save and then quit out of OSX back to Win7, would I be able to access the file the next time i go into OSX?

    Like, do I have to install it into the VM each time, or will I be able to access OSX whenever i want to without having to go through setup every single time?

    I just want Garageband/Final Cut Pro/Soundtrack Pro.

    Can I install programs to the virtualised OSX? Like Soundtrack Pro?

    Sorry, new to this. Just asking if possible before I go through the hassle.

    ReplyDelete
    Replies
    1. Garageband will save its files onto the virtual machine's virtual hard drive. So when you close your virtual machine and boot it again, the files will still be there.

      You don't have to set up Mac OS X every time. The virtual machine is essentially a own full-fledged computer; once you've installed the operating system, you can just boot into it normally.

      Delete
  10. @C
    Thank-you very much.
    I plan to partition the HDD (500Gb) to say 400-PC/100-OSX.

    My laptop doesn't have a disc drive, would I be able to boot OSX via an ISO image from a USB?
    Or should I burn the ISO onto a disc and boot from external disc drive?

    Or could I boot from a mounted ISO via Daemon tools lite?

    Thanks.

    ReplyDelete
    Replies
    1. You don't have to use a DVD. Virtualbox actually allows you to use the ISO file directly.

      Delete
    2. I have 4GB only on my Quad core PC should I allocate 2GB?

      Delete
    3. I have 4GB, I allocated 1.5 and it's been working fine so far.

      Delete
  11. @C
    Legend!

    I'll try it this weekend and let you all know how it went, or come and ask a million Q's as to why it's not working (how I buggered it up!)

    Cheers.

    ReplyDelete
  12. @C
    Can you change the amount of disc space for the VM machine after insallation without having to whipe it?

    ReplyDelete
    Replies
    1. Not sure. I've never tried it. :P

      Delete
  13. I have it working all except USB input.
    Is there any way that I can fix that?

    ReplyDelete
    Replies
    1. Did you install the Virtualbox Extension Pack? It's necessary to enable viewing of USB devices from the virtual machine.

      Delete
    2. I got it working, thanks. It was the extension pack.

      Another issue I have is when I reboot or sutdown though OSX I get a kernal Panic. Is there any way to resolve this?
      I worry that I wouldn't be able to install any software due to I wouldn't be able to complete installation via rebooting.

      -TWG

      Delete
    3. I haven't really tried to fix this problem. However, installing EvOreboot in Multibeast may do the trick (install it along with System Utilities).

      Delete
  14. i have error"" A critical error has occurred while running the virtual machine and the machine execution has been stopped. For help, please see the Community section on http://www.virtualbox.org or your support contract. Please provide the contents of the log file VBox.log and the image file VBox.png, which you can find in the /home/ed/.VirtualBox/Machines/portroyal/Logs directory, as well as a description of what you were doing when this error happened. Note that you can also access the above files by selecting Show Log from the Machine menu of the main VirtualBox window"".

    ReplyDelete
  15. hi what's up?
    what i shuld do if the "Acceleration" does not give me to enter there and chack if the two of the boxes chacked (it's not because he doesn't give me choice to get in to the virtual machine).
    what shuld i do??? please helppp!!!!!

    ReplyDelete
  16. i have error"guro meditation
    A critical error has occurred while running the virtual machine and the machine execution has been stopped. For help, please see the Community section on http://www.virtualbox.org or your support contract. Please provide the contents of the log file VBox.log and the image file VBox.png, which you can find in the /home/ed/.VirtualBox/Machines/portroyal/Logs directory, as well as a description of what you were doing when this error happened. Note that you can also access the above files by selecting Show Log from the Machine menu of the main VirtualBox window".
    what shuld i do???

    ReplyDelete
    Replies
    1. This problem usually only happens when you try to install Lion on Virtualbox. However, you can probably fix it by selecting "Mac OS X Server (64-bit)" as the version on your virtual machine, instead of just "Mac OS X Server".

      Delete
  17. Hi guys. I would like to know if I would be able to hackibtosh a Lenovo E530 (i3 2.30ghz, 8GB RAM, NVIDIA GT 630M) / B570 ((i3 2.30gz, 4GB RAM, HD graphics.) using this method? Thanks

    ReplyDelete
    Replies
    1. Most computers work with this method, since you're only running a virtual Hackintosh, not a true Hackintosh (where hardware compatibility matters a lot more). Basically, the only requirement is that your computer support virtualization, which most do nowadays.

      Delete
  18. This is just a fantastic article, I have been looking around for a few days and this is by far the best I have seen on the subject

    ReplyDelete
  19. First I would like to thank you for the time you took to prepare this well detailed guide. I followed your instructions until STEP 4. After switching to the installation disk and starting installation, before it gets to the next step "selecting destination" I get an error saying "Mac OS X can't be installed on this computer" At that point, my choice are to either restart or restore from backup. Any ideas?

    Eddie

    ReplyDelete
    Replies
    1. I have this issue too.

      Delete
    2. I did a little research and supposedly that error comes up when you are using machine specific CD. In my case I was using a iMac CD. Im getting a retail version to see if it works.

      Delete
  20. Perdona, que otra manera hay para instalarlo en una netbook con procesador atom,porque marca quefalta la aceleracion por hardware, podrias ayudarme?

    ReplyDelete
  21. Thanks, got me up and running but cannot change screen resolution. When booting without iBoot it goes full-screen for me but doesn't get past the grey apple logo screen (the spinner doesn't even show up). If I go back to using iBoot, it will start but only in the default resolution. Any tips?

    ReplyDelete
    Replies
    1. press command d and go through the installation to make your vm go full screen.

      Delete
  22. The nawcom blog is down, where can i download the legacy kernel instead?

    ReplyDelete
    Replies
    1. You can also download it from OSx86.net.

      Delete
    2. But on this site i only found the 10.6.6 legacy kernel and not the 10.6.8 one :(

      Delete
    3. I linked you a copy of the 10.6.8 legacy kernel in my previous comment. Click on the blue words "OSx86.net".

      Delete
  23. Muchas gracias por tu excelente trabajo !!!!!!!marcaba EFI en Virtualbox y no me funcionaba.igual instale OSX de forma nativa con EFI X un hardware adicional USB y funcionò bien.

    ReplyDelete
  24. hello so i wanted to change resolution on my laptop 5330m but nothing happens ! please help

    ReplyDelete
  25. Thank u. I have tried other ways but none of them worked.
    At the end I did it.
    Thank u.
    Thank u.

    ReplyDelete
  26. It runs, but it tends to lock up a lot and I can't get to a terminal to kill the frozen program and I can't shutdown.
    There is also no package manager. I have to manually install software, what a pain in the ass.
    I will just stick with BSD and Linux as they are actually stable.

    ReplyDelete
  27. Help meee!!!!

    After I boot on iBoot I press F5 with the snow leopard .iso mounted

    Then I get an error:

    EBIOS read error: error 0x0c
    block 0x18a96c sectors 0

    Help please!!!!!

    ReplyDelete
    Replies
    1. same error. please help us!!!

      Delete
    2. enable passthrough option in CD/DVD

      https://forums.virtualbox.org/viewtopic.php?f=8&t=8623#p157726

      Delete
    3. Thanks Jibaro009! That helped me! :)

      Delete
    4. Where is this "passthrough" option?

      Delete
    5. Passthrough can only be enabled if you're using a disc, not an image file.
      If you're using a disc you can enable passthrough by going to Settings -> Storage -> select your drive -> On the right there is a checkbox saying "Passthrough". Simply check it and you're away.

      Delete
  28. Thanks for a great article!

    But I've got a problem. Here's what I did:

    I got to the point where you install the legacy kernel. I downloaded it, installed it, and rebooted. Everything seemed to be fine. However:

    I had one Mountain Lion and one Snow Leopard running at the same time, and without noticing, I installed the Snow Leopard kernel on the Mountain Lion machine!

    Of course, now I can't get back my Mountain Lion. Any tricks to get it back, or should I just give up and reinstall?

    ReplyDelete
    Replies
    1. I've got access to my files now using this trick:
      http://bethesignal.org/blog/2011/01/05/how-to-mount-virtualbox-vdi-image/
      Phu!This was the most important.

      Now I only need to figure out how to get back the old kernel. Hopefully it's just replacing a file, but I doubt it's that simple. Probably faster just to reinstall the OS, all programs, and so forth.

      Delete
  29. Can you download apps for it from the mac store like imovie and things like that (even if you have to pay)???

    ReplyDelete
  30. Hello,
    Everything works just fine unless the update part. When the update finishes, I can't move the MAC mouse. The only mouse available is the one for Windows. The black pointer on MAC is blocked at the top left of the screen.

    Anyone have an idea to resolve that ?

    The article is great though ! Everything is working and I have OSX on my PC !

    Thank you

    ReplyDelete
    Replies
    1. Had same problem here. Fixed it using the second method from here:

      http://www.sysprobs.com/fix-usb-mouse-stopped-working-snow-leopard-1066-update-vmware

      I installed the combo update, then before I pressed restart installed the legacy kernel and then the usb kext provided in the above article.

      Delete
  31. Does this work on dual core processors because when I used team hazards osx boot it said that I needed single core processor.

    ReplyDelete
  32. Hey... I got a problem after press F5 to refresh on step 4.
    I got stuck in the grey apple's logo. I spent about 15 minutes and nothing happened.
    :(

    ReplyDelete
  33. I have the contents of Mac OS X Snow Leopard on my flash drive. How could I switch from iBoot to the copy of Mac OS X Snow Leopard on my flash drive, not on CD?

    Thanks

    ReplyDelete
  34. Thanks for the great work and sharing this information with us! After installing the combo update and then the kernel I reboot and get a blue screen with a spinning wheel toward bottom center. It spins for a while then stops and nothing appears to happen after that. Any ideas?

    ReplyDelete
  35. Very Well Written and Easy to Follow. And love that you can update it, it keeps this article modern. Thanks for the post and all the help.

    ReplyDelete
  36. I noticed that it said that lion won't work if you have an AMD processor, will snow leopard work?

    ReplyDelete
    Replies
    1. Yes, Snow Leopard will work. However, you will have to use iBoot Legacy or Nawcom's ModCD instead of iBoot for the process.

      Delete
    2. Thanks I will give that a try!

      Delete
  37. it's been a great help. thanks!

    ReplyDelete
  38. Can someone TeamView me and help me install this because when i tried this using my retail Mac OS X install DVD I couldn't do this. Contact me here: http://www.modtutorialz.net or at: ModTutorialz.net@gmail.com

    ReplyDelete
  39. i'm stuck on this :( YOU NEED TO RESTART YOUR COMPUTER. I tried entering "arch=i386 -f -v" but nothing happens...

    ReplyDelete
    Replies
    1. Samesies... Need Help

      Delete
  40. Great Article!
    Worked very well for me on AMD with Nvidia graphics.
    Just working on getting the resolution to 1290x1080x32 then we are sorted! :D

    ReplyDelete
  41. Hi excellent article.
    I have only one question.
    When I plug in an usb device (flash memory) and try to connect it,
    it doesn't work. If I try to connect it again it says that I the previous request for connection is
    still ongoing.
    PLEASE HELP!

    ReplyDelete
  42. ive an error after installing i start my mac using iboot but it gives some errors and says you have to restart your computer i have tried it 10 to 15 times plz help

    ReplyDelete