How to install Snow Leopard on Virtualbox

I decided to write an article on installing snow leopard on VM since I spent quite a big of time trial and error. (And also as a record for myself).

Most of it is taken from http://www.taranfx.com/install-snow-leopard-virtualbox together with some of my experience.

Requirements:

  • Windows XP 32bit system (tried on Win7 x64)
  • Virtualbox v3.2 Beta 3 (v3.2 Beta 1 doesn’t work properly on win7 64bit)
  • Leopard distro (iAtkos 7, iDeneb v1.3 10.5.5, etc
    (I tested and both iAtkos 7 and iDeneb v1.3 seems to work, didn’t test the rest)
  • Snow Leopard Retail CD converted to ISO format so that you can mount the image on virtual box
    (If it’s in DMG format, use UtraISO or PowerISO to convert it to ISO)
  • Download and attach this Addon Util image[iso]. (contains few Kexts, utils). (link taken from taranfx)

Basically how we go about installing snow leopard on virtualbox is to first install leopard on a “harddisk”(virtualbox harddisk) and then boot up leopard and install snow leopard on another virtualbox harddisk. Installing leopard is generally no problem if you set the virtualbox settings correctly.

Install Leopard

I tried installing leopard for virtualbox 3.1.2, 3.1.4, 3.1.8. Didn’t try for 3.2 beta though, just upgraded my virtualbox and it still works, I believed it should be the same for 3.2. But in case it doesn’t install leopard using virtualbox 3.1.4 and then install virtualbox 3.2 over it.

Virtualbox Settings:

One new feature of Virtualbox is support for Mac OS X. Choose Mac OS X. Choose BSD/FreeBSD for Operating System/Version for versions earlier than 3.2.

Under System

  • Boot Order, check “CD/DVD-ROM”
  • Check “Enable IO APIC”
  • Probably you want to choose 1gb or more for the Base Memory
  • For Processor, choose 1 (or more – if it doesn’t work, choose 1)
  • For Acceleration,  check “Enable VT-x/AMD-V” (This is very important, if your computer does not support this option, you will not be able to install successfully or even reach the leopard installation screen)
  • you can check “Enable Nested Paging” (this shouldn’t matter from my experience)

Under Display(optional)

  • Enable 3D Acceleration

Under Storage

  • Add a IDE Controller and a Harddisk under the IDE controller  for installing Leopard (10gb or more)
  • Add a CD/DVD device and select your leopard distro image
  • Make sure the IDE Controller type is “ICH6”

Under Network

  • Check “Enable Network Adapter”
  • Choose “Bridge Adapter” (it should work for NAT etc also – you can change the settings for this, I don’t think it matters)

Under Serial Port

  • Uncheck “Enable Serial Port” (default settings, I didn’t test with serial port)

Under USB

  • Check “Enable USB Controller”

Installation process is straight forward.

  • If you are using iAtkos 7, you need to choose System->PS/2 mouse/keyboard->Apple PS/2 driver-Driver (there should be 3 options under this section, select only 1)
  • You might want to choose Ethernet driver (based on your Virtualbox Network settings), I chose the Intel ethernet drivers
  • When you’re done, it will want to restart your (virtualbox) machine
  • Allow it to restart and power off your system

Install Snow Leopard

The VM settings should be the same except that now you need to add another IDE harddisk under the IDE controller for your snow leopard installation and you need to moun the Util.iso and the Snow Leopard image.

You also need to choose the Boot Order to Hard Disk instead of CD/DVD-ROM

  • Power up your VM
  • Boot up your Leopard as usual (go through the usual registration process)
  • When you are on Leopard, Open up your Disk Util under Utility and format your snow leopard harddisk using the Volume Format Mac OS Extended(Journaled) (Assume the name given is “Snow”)
  • You should see the MacUtils on your leopard, open it and run the “unHideIt” application (you might need to do this twice)
  • Open you the Snow Leopard disk and browse to /System/Installation/Packages and run OSInstall.mpkg (note that there’s also another OSInstall.pkg, make sure you run the correct one if not you will not see the snow leopard installation screen)
  • Install Snow Leopard (you might want to customize your installation according to your needs – e.g. removing the printer drivers)
  • Install Chameleon which is found in the MacUtils to Snow Leopard drive. Refer to this if you need help installing Chameleon (Correction : Step 3 should be sudo dd if=boot1h of/dev/rdisk0s2)

You should do these changes to /Volumes/Snow:

  • Remove /Extra/Extensions (if any)
  • Copy from MacUtils/Mac/Extra/Extensions to Extra/Extensions
  • Delete SMBIOSResolver.kext
  • Copy from MacUtils/Mac/System/Library/Extensions to System/Library/Extensions
  • Navigate to System/Library/Extensions and delete “AppleIntelCPUPowerManagement.kext”
  • Fix permissions by using Terminal (from Applications > Utilities):
su
cd /Volumes/Snow/System/Library
chown -R root:wheel Extensions/
cd /Volumes/Snow/Extra
chown -R root:wheel Extensions/
kextcache -a x86_64 -K /Volumes/Snow/mach_kernel -m /Volumes/Snow/System/Library/Extensions.mkext /Volumes/Snow/System/Library/Extensions
kextcache -a x86_64 -K /Volumes/Snow/mach_kernel -m /Volumes/Snow/Extra/Extensions.mkext /Volumes/Snow/Extra/Extensions

(taken from taranfx)

Note: Keep your Leopard machine as there might be some problems with your snow leopard partition and you might want to edit it.

Configure Snow Leopard

Create another machine on Virtualbox with the same settings as before except that there’s some changes to the storage (the Leofx name in the pic would be better named as Snow Leopard or something) (snow.vdi in my case is my snow leopard harddisk)

  • Power up your system and boot snow leopard with the -v option (type -v when you are at the Chameleon boot screen so you will be able to know if there’s any problems)
  • My experience is that different machine has different kinds of problems
  • If you get some error messages while loading some kext, power up the previous leopard system and access your snow  leopard volume  and go to System/Library/Extensions and delete the kext, usually those kext will be in another color (Red or Orange etc) – backup and delete it, then boot up your snow leopard machine
  • From my experience, i get slightly different problems on my Win7 x64 and Win xp so it’s quite difficult to set exactly what needs to be deleted etc
  • You might also get problems with DSDT (refer to http://www.projectosx.com/forum/index.php?showtopic=121, basically you have to copy the dsdt.dsl to your /Volume/Snow root directory)
  • You can update to 10.6.3 through the usual Software Update on Snow Leopard. However, you might need to boot up your leopard machine and remove the DMOS.kext from /System/Library/Extensions because it will have some DMOS kext loading problem.

Some of the details might not be very details and accurate because I’m writing this based on what I remember from my few days of frustrating experience.

Sound

Check out http://forums.virtualbox.org/viewtopic.php?f=4&t=30843 and try the manual method. The first package didn’t work for me. Works for 32-bit OS. Didn’t work on Win7 64bit.

What doesn’t work?

  • sound
  • virtualbox shared folder (there’s no installation package for Mac) 0 refer to bottom for guide how to share folder
  • Taking screenshot

Share folder between Windows and Mac (on VM) both of them have to be on the same network, your Mac (on VM) will be connected to the network as if it were another physical machine

  • Go to System Preferences->Network
  • Select your connected connection
  • Click Advanced…
  • Select WINS
  • Type in the same workgroup as your windows system
  • Create a share folder on windows (let’s call this “win_machine”)
  • On Mac, Go->Connect to Server…
  • Type “smb://win_machine” (without the quotes)

How to install Mac OSX 10.5.7 on hp Elitebook 2730p (dual boot with win7)

I will go through how you could dual boot Mac OS X + Win 7 on a Elitebook 2730p

Requirements

  • Win7 is already installed
  • Free partition (for Mac OSX)
  • USB flash drive (8GB or more)
  • Another USB flash drive with bootable Win7
  • OSX86 Tools
  • An existing Mac (for preparing the USB)
  • Mac OSX distribution (iATKOS, iDeneb, Jas, etc) (Disclaimer: This is for experimental purposes, if you like the OS, please buy your own Mac OSX!)
  • EasyBCD
  • TabletMagic (if you want the tablet feature)

Formatting Free Partition

Steps

  1. Open Up Computer Management and go to Disk Management
  2. Right Click on the partition for installing Mac OSX, Select Format(you can choose any file system FAT32, NTFS, doesnt really matter)

Preparing for bootable USB with Mac OSX (from an existing Mac OS)

  1. Go to Applications, select Disk Utilitydisk utility
  2. Plug in your USB
  3. On the left pane, you should see your USB drive, select it and click on the Erase tab on the right
  4. Choose Mac OS Extended for the Volume Format and give it a name (in my case OSX), Click on Eraseformat usb
  5. Click on Erase again when prompted whether to erase
  6. Double click on your Mac OSX distribution ISO image (iATKOS_v7.iso in my case)double click iso file
  7. You should see the iATKOS_v7 on the left paneshould_see_the_iatkos_v7_by_the_left_menu
  8. Now click on the Restore tab and 1)drag the iATKOS icon to the Source and 2)drag the usb flash drive icon to the Destinationrestore
  9. Click on Restore
  10. Click on Restore again when prompted
  11. Run the OSX86 Tools UtilityOSX86 Tools Utility
  12. Click on Install EFI/Run FDISK
  13. Choose your newly “restored” USB under the Disk to Use (I changed the name from OSX to OSXUSB in my case so as not to confused with my harddisk) and click on Install EFIinstall_efi_2
  14. And you are done preparing the bootable USB flash drive!

There’s also a method for preparing the USB from win xp, you can search around for that if you need it.

Installing Mac OS

  1. Restart your Elitebook, press F9 when you see the HP logo (1st screen)
  2. Select USB Hard Drive (If you don’t see USB Hard Drive there, restart and press F10 and select it under the Boot configuration)DSCF2488
  3. It should now boot up using the USB you have previously prepared and you should see the Apple white screenDSCF2489
  4. When you see the first screen with a menu bar on top, select Utilities -> Disk UtilityDSCF2491 DSCF2493
  5. On of left pane of the Disk Utility window, select your free partitionDSCF2497
  6. Select the Erase Tab, Choose Mac OS Extended (I tried with Mac OS Extended(Journaled) also), give a name, then click on EraseDSCF2498
  7. Step through the installation again under you reach this screen. Select the Destination (the partition you previously formatted) and click ContinueDSCF2505
  8. (Important) When you reach the Installation Summary Screen, click you CustomizeDSCF2507
  9. You will need to select a couple of things:-X86 Patches – > OHR-Driver -> System->USB-Driver -> System->Sound->Voodoo HDA driver-Driver -> System->PS/2 mouse/keyboard->Apple PS/2 driver-Driver -> System->Laptop battery-Driver -> System->NTFS-3G-Network ->Wired->Intel(DO NOT check -Network ->Wireless)
  10. When you are done go back to Installation Summary page and click on Install(It should take around 15 mins to install)
  11. And you are done installing Mac OSX

Bootmgr is missing problem

You might encounter this problem after you have installed Mac OSX and during the first boot. Do not panic, use your usb (with the bootable win7) (refer to this for how to prepare such a usb). When you have boot up using the USB, choose Repair, it should prompt saying that there’s something wrong with your boot files etc). This will restart your system.

Dual Boot Using Win7 Bootloader

  1. Go into Win7, download and install the EasyBCD
  2. Click on the Add/Remove button, Add in an entry for your mac (Select Mac for the tab and Generic Mac, give it a name)
  3. Save and reboot your com
  4. Now your elitebook able to dual boot with Win7 + Leopard 🙂

Getting the Tablet to work

  1. Install TabletMagic
  2. Go to System Preferences, Run TabletMagic
  3. Select serial0 for the Port
  4. Click on the TabletPC tab, Click on Enable Digitizer (Your comp should reboot)
  5. You might encounter an error message when you boot up, if so, continue with Step 6tabletmagic_error
  6. Open up Terminal type incd /System/Library/Extensions/Apple16X50Serial.kext/Contents/PlugIns/Apple16X50ACPI.kext/Contents/sudo chmod 644 Info.plistsudo chown root:wheel Info.plist
  7. You could have problem with the alignment, just play around with the configuration on the Mapping tab

What’s not working

  • Wireless
  • Graphics card is not detected
  • Sleep

Bios Settings

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to FurlAdd to Newsvine