OS X Virtual Machines Two Methods

I recently had the need to test some ‘fixes’ for a co-workers iMac. Since I don’t like to make system changes on ‘live’ machines I went to my Virtual Machines (VM) and was able to easily test what I needed. I mentioned that to a colleague and they asked me to explain how I was able to create VMs of OS X.  So I thought I would put together some of my older tutorials I’ve created and update and add loads of information for those that want it.

I have three Virtual Machine solutions I use. One is based on the industry leader – VM Ware, another the open source (and much improving) Virtual box and finally Microsoft’s Virtual Server (now HyperVisor). I will not discuss Microsoft’s VM solution here because I have not used it to create OS X VMs.

There is lots of information on how do create an OS X VM on both of these VM platforms but I hope I can give some of you some direction. There are now some greatly improved and easier to use ‘boot loaders’ and patches (kexts) for getting OS X to run in a VM or as a Hackintosh as mentioned in some of my previous posts. For some information on that check out these sites.

Hackintosh.com

OSx86 Project

myHack

Chameleon OSx86

Here is my workhorse server System configuration and specs:
Windows 2003 Server SP2
QuadCore Intel Core 2 Quad Q6600
Abit IP35 Pro
8GB RAM
1.5TB SATA HDD (7200RPM)
GeForce 9600 GT (512 MB)
2 Realtek RTL8169/8110 Gigabit Ethernet NIC
Using VMwave Server Console:
Version 1.0.0 build 28343

First up the solution I have been using the longest – VM Ware. I have included as many screen captures where necessary to show some of the configuration changes I made. The VirtualBox solution is actually really easy now so I will explain that one last.

To get it up and running I followed the steps here:

I followed that fairly closely with some exceptions which are in the screen captures below and I will note later*. These guys are great and should be recognized.

Some other sites that were of great help:

http://wiki.osx86project.org/wiki/index.php/Main_Page

I run an older version of VMware Server and so did not use the freely available VMware Player or the new VMware Server version2.x. Since my version is older, I suspect the newer free version would have worked as well. [After writing this and doing a lot of reading on the new – version 2.x of VMware Server- I now don’t think I would recommend it. Stick with the new free VMplayer/workstation version or VMWare server 1.5x or lower.]

I may try the new VMWare server versions on my other server eventually.  But if it’s not broke don’t futz with it.

VMware products are available here:

http://www.vmware.com/

http://www.vmware.com/download/player/

I own Virtual CD v9, Alcohol 120, and a few other CD emulators but I am sure you can find free ones. Here are a few:

DAEMON Tools lite

MS Virtual CD

MagicDisc

I have a few copies of Mac OS’s around from 9 on up to 10.5 (Legal for my Mac’s – some alive and some put to rest), But I decided to try a version that had already been prepped/patched for running on x86 – it is named the “Mac OS X 10.4.8 [JaS AMD-Intel-SSE2-SSE3 with PPF1 & PPF2].iso distro”. I some others I’m going to try too – “Kalyway_10.5.2_DVD_Intel_Amd.iso” and “JaS.OSx86.10.5.4.Client.Server.Intel.SSE2.SSE3.iso”

If you want those you will have to ‘hunt’ for them (there is a torrent of information available to you hunters our there…). There are continuing updates to some of these builds to include the latest loaders built in.

Also did an ‘upgrade’ with a new Snow Leopard disk I have.

And just so you know;

“Even though Apple suggests Mac users without Leopard buy the $169 Mac box set to get Snow Leopard, anyone can purchase the $29 Snow Leopard disc and install Snow Leopard in its entirety without having already installed Leopard. This means the $29 Snow Leopard DVD isn’t an "upgrade" at all; it’s the full-on Mac OS X operating system for 30 bucks.”

I bought a few upgrade disks here, since I will be upgrading my physical a well as virtual/Hackintosh ones.

Below is a capture of my ‘vmx’ file with the changes I made:

clip_image002

OS X ON VM Ware: Follow these instructions in the link I posted above. Just take note where I changed some options.

Here are some captures of one of my OSX ‘Virtual Machines’ running on my pc.

clip_image002[4]

clip_image004

clip_image006

clip_image008

clip_image010

clip_image012

I have reduced the plethora of VMWare VMs I was running to two for now (OSX and an Ubuntu desktop/client).

But I did have a couple of Vista’s instances, an Ubuntu Desktop, an Ubuntu Server, 2 WinXP, and Windows Server 2008 with Exchange 2007 and SQL2005(time limited) all running and talking to each other!

I use some of my images of existing (real world/live business servers – PDC, Exchange, SQL and other application servers) virtualized to experiment with upgrade/optimization strategies.

I just convert my recent images – (Acronis and Ghost type)together and converted to Virtual Machines [http://www.vmware.com/products/converter/get.html]. Big time and space issue now.

OS X on Virtual Box

First you will need the newest Virtual Box application, get it here. You will also need a ‘patched’ ISO version of OS X Snow Leopard such as one of the latest as mentioned above. Or  The group Hazard has put out a good patched Snow Leopard installer that should do fine (just search for it on Google). Of course, if you feel bad about downloading the ISO of Snow Leopard, you could always go buy a copy to feel a bit better, karmically.

Install VirtualBox.

Then click on New at the top left. At the Create New Virtual Machine window, click Next.

clip_image001

At this window type OSX as the name and it will automatically change the system and version. The next window will let you choose your RAM amount:

clip_image001[4]

If you can spare it, crank it up as far as you can go, but 1024MB should be sufficient.

clip_image001[6]

This is where you’ll make your hard disk. 30GB should be enough so what it comes down to is dynamic or static. Dynamic will expand on use and Static will be a fixed 30GB no matter how much data is actually in it. Dynamic is better for not taking up your hard drive but static will give you better performance. I normally use dynamic. Click next unless you want to change it from dynamic or if you want to increase the disk size or file location.

clip_image001[8]

It will show a summary of your settings. Click Finish, then click Settings at the top.  Make sure you choose only one ‘core’ for processor too.

At this window click on System in the left pane and uncheck Enable EFI

image

image

Now click on the Storage button on the left. From there click on Empty under the OSX.vdi, then click the folder with the green arrow on the right (next to "CD/DVD Device").

clip_image001[12]

clip_image001[14]

At this window click the Add button at the top. Then find and add the OSX86 ISO (Hazard or other) you downloaded earlier. Then highlight it and click Select at the bottom.

image

image

Then click OK, and hit the Start button on the left side of the main VirtualBox window.

image

As it starts up, click inside the window and hit F8. Then at the boot: prompt type –v so you can see what exactly went wrong if something does go wrong. All the services will run and eventually you should come to the language screen. Choose your language then click next.

If you are unable to move your mouse around then hit Right-Ctrl + I.  To ‘free your mouse to move outside of the VM window hit the right ‘Alt’ key.

Click Continue and Agree. Next, start up Disk Utility by going to Utilities in the menu bar.

clip_image001[16]

At this screen highlight 20GB VBOX HARDDISK. Then click the Erase tab, name it what you want in the name box and click the Erase button on the bottom right of the window. It shouldn’t take long. Then click Disk Utility in your menu bar and quit it.

Now you’re back at the installer. Highlight the drive that is now showing up and click Continue.

clip_image001[18]

The next window is important!

Don’t click ANYTHING YET!

Click the Customize button on the bottom left. Expand the options (arrows) and check the necessary boxes for your processor.

AMD Users check:
Any Updates included at the top.
Drop down Kernels and choose Legacy kernel.
AMD option below System support.

Intel Users check:
Any Updates included at the top.
Drop down bootloaders and check the newest Chameleon.
Drop down Kernels and choose Legacy kernel.

Then click Done and hit the Install button. To speed up the process you can click Skip when the disc check pops up.

clip_image001[20]

As soon as it says "installation finished" and starts counting down to restart, press the right Ctrl key. Click on Devices at the top of the VirtualBox window, hit CD/DVD Devices and click Unmount CD/DVD Device.  Remember you will probably have  to hit the right ‘Alt’ key to ‘free’ your mouse! Do that before you get to the end of the install.

Then go to Machine > Reset and click Reset at the prompt. Next you’ll see the Chameleon loader , click inside the VM and hit and hit enter and then OS X will begin to boot.

clip_image001[22]

After it boots you will see the setup screens for OS X! You’re good to go.

On a side note if you use NAT for networking you can control your Virtual Machines from any computer on your network or even remotely using a multitude of remote access solutions.

9 Responses to “OS X Virtual Machines Two Methods”

  1. OS X Virtual Machines Two Methods…

    I found your entry interesting do I’ve added a Trackback to it on my weblog :)…

  2. I truly loved this brilliant article. Please continue this awesome work. Regards, Duyq.

  3. it was very interesting to read mikemartinezonline.com
    I want to quote your post in my blog. It can?
    And you et an account on Twitter?

  4. Hi, I do not usually publish feedback on blogs, as I prefer to learn only. But I discovered the article that you’ve written earlier has very insightful info, andvery informational.

  5. I just required to say that I discovered your site via Goolge and I am glad I did. Keep up the great work and I will ensure to bookmark you for when I have more free time away from the books. Thanks!

  6. incredibly good post, i will certainly be bookmarking your blog site

  7. Hi I attempted to sign up to your RSS and the link seems to be broken. How can i get around this?.

  8. […] and tricks mostly involving creating Virtual Machines of OS X. You can read some of those here, here, here or simply just search my […]

  9. Simply want to say your article is as astounding. The clarity to your post is just spectacular and i can assume you are a professional on this subject. Fine together with your permission allow me to grab your feed to stay up to date with drawing close post. Thanks one million and please keep up the gratifying work.

Leave a Reply

*