General Mac OS X Discussion General Apple and Mac OS X Discussion

Thread Tools Display Modes
  (#1) Old
rr409 rr409 is offline
Junior Member
Posts: 15
Join Date: Dec 2009
Default Mac OS X on any PC via Virtual Machine - 12-28-2009, 05:46 AM

Welcome to Snow Leopard: Mac OS X 10.6 and VMware Workstation 7

You know how things get easier with practice? Well, there wasn’t much required for this feat: Installing Mac OS X 10.6 (a.k.a. Snow Leopard) into a VMware Workstation 7 virtual machine. Workstation 7 appears to have greatly improved support for the Mac operating systems to the point that installing Snow Leopard into a virtual machine is much easier than it was with Mac OS X 10.5.6 under VMware 6.5.2. In fact, in this version (I’m using 7.0.0 build-203739), you can install VMware Tools yourself, and enable sound!

Credit Where It’s Due

I actually did very little experimentation/exploration this time. I did some cherry picking of steps from a number of places (most notably, the Insanely Mac forums). I give particular credit to Talyn’s post in that forum for giving me the clue to use the ISO image instead of the DMG, and for the Ensoniq audio driver link.

Part 1: Baking the Cake

Here We Go…

Before you begin making any modifications, please read through these instructions at least once, just to make all the steps are clear and that you haven’t missed anything.

Let’s get started:

First, get yourself the retail version of Mac OS X 10.6 (Snow Leopard). This will only work with the retail version of the operating system DMG. Use your favorite search site to find the DMG. Since you’ll need to use the ISO version for this tutorial, you might want to find that instead, allowing you to skip the next step.
Next, convert the DMG file into an ISO. I used dmg2iso to convert my retail DMG to ISO. If you plan to use a converter other than the one I’m recommending, beware of converters that create ISOs that are considerably smaller than the original DMG. They probably won’t work.
Download and extract its single file, “darwin.iso”. You’ll be using this in a couple of places, so remember where you saved it.
Grab, and extract its contents. This will create a folder called “vmware-darwin-200/” that contains all the archive’s files. This distribution will need to be installed into your VMware Workstation 7 directory. Although instructions for installing this are included with the archive, it simply takes a “setup.cmd install” from within the extracted folder to complete. However, before you actually perform the install, you need to copy the “darwin.iso” file you extracted from into the “vmware-darwin-200/” folder, replacing the file with the same name that is already there. Once the new “darwin.iso” is in place, you may proceed with the install.
In VMware Workstation 7, create a new virtual machine. You should use the same settings as those documented in Mac OS X 10.5.6 under VMware 6.5.2. The interface has changed a bit in VMware Workstation 7, so some screen shots will not be exact. However, it doesn’t have to be an exact match, since in this tutorial, instead of altering one or two lines of the resulting VMX file as we did in the Leopard tutorial, we’ll be replacing the contents of the entire file as well.
At this point, close Workstation 7. Locate the VMX file that was newly created for your VM; for example, if you named your VM “Mac OS X 10.6″, then the file you’ll want to locate is called “Mac OS X 10.6.vmx”. Open this file in your favorite text editor (not a word processor!), and replace the entire contents of the file with the following text:
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "7"
maxvcpus = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "1024"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Mac OS X 10.6.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "M:\SL.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.startConnected = "FALSE"
floppy0.fileName = ""
floppy0.autodetect = "TRUE"
ethernet0.present = "TRUE"
ethernet0.connectionType = "bridged"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
usb.present = "TRUE"
ehci.present = "TRUE"
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
roamingVM.exitBehavior = "go"
displayName = "Mac OS X 10.6"
guestOS = "darwin10-64"
nvram = "FreeBSD 64-bit.nvram"
virtualHW.productCompatibility = "hosted"
extendedConfigFile = "FreeBSD 64-bit.vmxf"
ethernet0.generatedAddress = "00:0c:29:bd:20:0f"
tools.syncTime = "FALSE"
uuid.location = "56 4d 88 b8 b2 24 d5 cc-10 76 a6 69 9f cb f9 46"
uuid.bios = "56 4d 7d f0 84 2d 67 43-25 a6 19 4f 14 bd 20 0f"
cleanShutdown = "FALSE"
replay.supported = "TRUE"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
vmci0.pciSlotNumber = "36"
vmotion.checkpointFBSize = "16777216"
ethernet0.generatedAddressOffset = "0" = "347938831"
tools.remindInstall = "FALSE"
ich7m.present = "TRUE"
keyboard.vusb.enable = "TRUE"
mouse.vusb.enable = "TRUE"
usb:0.present = "TRUE"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:0.deviceType = "mouse"
monitor.virtual_exec = "hardware"
monitor.virtual_mmu = "software"
ide1:0.startConnected = "TRUE"
disable_acceleration = "FALSE"
checkpoint.vmState = ""
ide1:0.autodetect = "TRUE"
vmi.present = "FALSE"
smc.present = "FALSE"

Alter the lines italicized above to match the name you gave to your VM. As you can see in this example, I used the name “Mac OS X 10.6″.

Restart Workstation 7, and select the VMX file you just modified. Mount your converted ISO file (the one you converted from the DMG) into the VM using “Use ISO image file” (you’ll see that it is currently pointing to something called “M:\SL.iso“). Note that this differs from the Leopard tutorial, where we used a logical drive where the iDeneb ISO had been mounted.
Check the settings of the VM, and adjust those things that you want. For example, increase or decrease the amount a RAM allocated, the processors accessed, etc. In most cases, you should leave the settings as they are.
Power on the VM. If everything went well, you should find yourself prompted to hit “F8″ to enter boot options. Do NOT enter the “Graphics Mode” trick suggested in the Leopard tutorial. Leave the VM to use the resolution it wants for now. The reason for this is that we will be installing the VMware tools into this VM, and setting a Graphics Mode explicitly (either from the boot prompt, or using the /Library/Preferences/SystemConfiguration/ modification) will hose your VM to the point of making it unusable once the VMware tools are activated. You can enter the “-v” flag it you like (I always do).
Once you reach the install screen, follow the same partitioning steps as found in the Leopard tutorial, with this exception: The “Master Boot Record” format must be “GUID Partition Table” for Snow Leopard to function.
Apply your partition formatting, and proceed with the installation.
Part 2: Adding the Icing

Now that you’ve gotten Snow Leopard installed (you do have it installed, right?), you’ll want to get some final touches applied. Leave the retail ISO mounted in the VM, and you should be able to reboot at will with no issues.

Here are a few final things to do:

Perform an Apple software update; e.g., my retail ISO installed 10.6, but there was an update to 10.6.2 available. Reboot after updates are applied.
Download and install the Ensoniq Audio Driver for Snow Leopard. This package will enable audio in the Snow Leopard VM (yay!).
Finally, install the VMware Tools distribution. Installing this will give you, among other things, the ability to change the VM’s screen resolution via the OS X System Preferences.
“Eject” the Mac OS X Install CD ROM from within Snow Leopard. This will disconnect the device from the operating system.
While the VM is running, right-click on the CD ROM widget at the bottom-right of the VMware window, opening its pop-up menu:

In the “Settings…” panel, mount the “darwin.iso” file (remember where you saved it?) in place of the retail ISO image you used to install Snow Leopard, and press “Ok”.
From the CD ROM pop-up menu once again, select the “Connect” option to connect the device back to the VM. This will mount the “darwin.iso” image into the running Snow Leopard VM:

Open the mounted image, and drag the “Install VWware Tools” package to your Snow Leopard desktop to make a copy of it:

Unmount the “darwin.iso” image within Snow Leopard, and reverse the process you performed to make it available. Re-select the retail ISO image, and re-connect it.
Install the VMware Tools package, and reboot your Snow Leopard VM.
Part 3: Having a Piece

I must say, compared to the hassle of getting Leopard running in VMware, this was streamlined and painless. The “Holy Grail” now appears to be comfortably situated in the cabinet, along side the other drinking glasses. Running OS X in a virtual machine is no longer a “new frontier.” Now, instead of focusing on the process, you are free to focus on using the product.

Have fun!
Reply With Quote
  (#2) Old
kayak kayak is offline
Junior Member
Posts: 1
Join Date: Jan 2010
Default 01-16-2010, 04:44 PM

Great rr409!!!!
I tried it and all works perfectly.
I introduced this two changes:

- I used VMware Player 3 instead of Workstation 7, is lighter and simplier and free!

- I didn't upgrade to 10.6.2

Now It's perfect, and seems more fast in emulation than XP host !

Only a question: where I can find more info about this procedure, and the steps?

Thanks a lot!
Reply With Quote
  (#3) Old
mech mech is offline
mech's Avatar
Posts: 84
Join Date: Feb 2009
Default 01-16-2010, 08:11 PM

Those are nice instructions! I figure I'll share my finds and how I recreated my osx 10.5.6 on vmware 7, vista. Sound works, smooth and fast most of the time with 2 cores and 2 GB of ram dedicated to it, screen adapts to window size; no drag and drop between VM and host though, but clipboard works.

Here are the sources I dug up:
Snow Leopard in VMware Windows 7 | Redmond Pie

Get sound to work: How to Install Snow Leopard [VMWare]
(there is a patcher to do this; comes from VMWare Fusion)

Most importantly, you need a CPU that supports VT: Snow Leopard in VMWARE Post Installation Fixes and Tweaks | Snow Leopard
(this has to be enabled in the BIOS)

The key here is to use the custom darwin.iso to start up the VM. From there, you can change the *.iso to either your 10.5 or 10.6 install *.iso (after creating one), and install a fresh instance of OSX in the VM. I have everything running in it smoothly, with occasional hangups, which are probably limited by the ram. Running this on a 64 bit platform with a ton of ram is advisable.

Instead of downloading a prebuilt image of a VM, which are usually slow, this method ensures that you have a clean install with whatever you put into the system without worrying that PCwiz is gonna hijack your VM.

SSD(refurb) 64GB

Black Mini 9 w/ 2 Apple logo stickers over the Dell logo, 64GB Dell SSD, bluetooth, webcam; OS X 10.5.8 w/ NetbookInstaller 0.8.3; no more Ubuntu
Reply With Quote

« Dell TV Tuner for Mini... will it work with os x? | Windows install method? »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Copyright © 2008-2016