Why Mac? You’re a Debian Gnu/Linux user
I did this out of curiosity and just for the challenge more than anything, then deleted this VM shortly afterwards.
One thing I did notice while playing around with Mac, is how similar Ubuntu (Unity) is becoming to the Mac desktop. Everything was polished and nice to look at, but as a Debian (Openbox) user, i’m impressed by speed and reliability, not pretty wallpapers and icons.
What Hardware and Debian do you have?
I use Debian Squeeze with an AMD 64bit Quadcore CPU, Ati 1Gb GPU and 8Gb RAM. This is why I did this out of curiosity, as Apple Macs are Intel-centric.
Part 1 – Virtualbox & Ext4
One thing i noticed is that Virtualbox has an Ext4 bug which means that if you want to install Mac, your VirtualBox VMs directory needs to be on an NTFS partition. Luckily I have one of these, so I created the directory there, and pointed VirtualBox to use that one instead.
Part 2 – Which Mac iso?
I got one created by Hazard that is AMD 64bit compatible. Obviously, the legality of this image and running it virtually is in question, but as I said, both the iso and VM have been deleted now.
Part 3 – Create and Configure the Virtual Harddrive
Create a 30 Gb fixed Virtualbox drive for Mac. Once it is done, open Settings > System > Mother Board, and change:
- Remove the Floppy drive.
- Chipset selected to ‘ICH9’
- Enable IO APIC
- Disable EFI (This caused me a couple of failures)
- Only provide up to 2048Mb of RAM, more fails for some reason.
Part 4 – Starting the installation
In the drive settings, choose Hazard’s Snow Leopard iso, attach it the tht virtual CD drive, and start the VM
1. As soon as it starts run, a message will appear for you to hit enter to boot from CD
2. Follow the screens step by step, most of it is common sense.
3. The VBox HD is blank. So you have to format it with ‘Disk Utility’. When you get to the first screen with a menu bar, choose Utilities-> Disk Utility.
4. You’ll see the Disk, but it can’t be used until it formatted.
Choose the Harddrive and click the ‘Erase’ tab. Under Erase, choose Mac OS X Extended (Journaled) and then name it ‘OSX’ and click ‘Erase’ again.
5. Now close the Disk Utility and continue with the installation.
Part 5 – Special Settings for AMD CPUs (Screenshot 1)
At the next screen you’ll see a “Customize” button at the bottom left. Click it, and check the same boxes I have in the screenshot above, then continue the install. It took about 10 minutes on my machine.
**NOTE** See the Updates marked in RED – Do not install them, you’ll be left with an Unbootable Mac that hangs at the Apple Logo Splash Screen.
Part 6 – First Boot
1. Once the install is finished, remove the CD from the drive, by clicking the Virtualbox window menu Devices > CD/DVD Devices > Remove Disc from virtual drive.
2. Shutdown the VM, close VirtualBox, then reopen VirtualBox and start the VM. If all went well, you will now be greeted with the Mac preparation screen asking for your personal details to setup the desktop.
That’s it, basic install complete.
**NOTE** If you get a Kernel Panic with “vm_page_set_colors” Error
Paul Edwards commented that it can be solved by a simple boot option of “colors=32”.
Thanks for that Paul 🙂
Part 7 – Screen Resolution
I did two hacks to get my Screen Size – 1920×1080
1. Open your terminal, and as a user (not Root, nor Sudo) type this command with your screen resolution and the name of your VM:
VBoxManage setextradata “Snow Leopard” “CustomVideoMode1” “1920x1080x32”
2. Restart the Virtual Machine
From Mac VM:
1. Open the file browser, go to the root directory and open the “Extra” folder. You’ll see a file called “com.apple.Boot.plist“
2. Open it with the Text Editor, add the code below, then save it to your Desktop with exactly the same name and suffix (.plist).
3. Now drag it back to the “Extra” directory, and type in your password (admin permissions) and replace the old one.
4. Restart the Virtual Machine, and you should now have full screen available.
Here it is after the Screen Resolution Hack, which is perfect when you change it to Full Screen:
That’s about it. Have fun.
A heads up to these guys for their isos and guides:
Hazard Mac isos – http://leohazard.com/
Vbox Mac Howto – http://www.sysprobs.com/install-mac-snow-leopard-1063-oracle-virtualbox-32-apple-intel-pc
Vbox Mac Howto – http://randosity.wordpress.com/2010/06/21/running-mac-os-x-in-virtualbox/
VM Guide – http://blog.dmitryleskov.com/tag/vm/
VM Error Help – http://karim-ouda.blogspot.com.es/2011/07/errors-solutions-19.html