The longest holiday in the past week made me really bored, so I decided to try a little bit of new. Build a iPhone development machine and try some iOS programming, should be fun.
After some research on internet, I found out that although installing MAC OSX on my Laptop (ThinkPad T61) was possible, it would be difficult to enable all hardware due to lack of driver. Having found that, I did still give that a try and failed after 3 attempts, soI decided to give up and choose a proven workable path: installing it on a vmware virtual machine image.
Here are the required packages you need to download before heading off:
- Darwin.iso – you need this file to be the bootable image and load your OSX installation ISO below; this file is also required to boot up your virtual machine once it’s installed and ready to use. So keep it in the same directory of your VM HD images.
- OSX Snow Leopard Disk image: this is the OSX installation disk image.
you can download this file from VeryCD: http://www.verycd.com/topics/2765539/
- VMware drivers for OSX: there are 3 of them
The Darwin.iso and VMWare drivers can be downloaded here:
http://cid-738185eeb137555c.office.live.com/browse.aspx/OSX-Vmware?permissionsChanged=1&1
Step 1: Convert the OSX Snow Leopard Disk Image to ISO image
The downloaded image will be in .dmg format which couldn’t be attached to a vmware machine directly, so you need to use UltraISO to convert to a ISO image, you can download UltraISO here:http://www.ezbsystems.com/ultraiso/
Step 2: Create the VM
Open VMWare Workstation and choose “Create New Virtual Machine” in the welcome screen and choose “Custom (Advanced)” mode in the 1st of screen of the wizard:

In 2nd screen, choose “Workstation 6.5-7.x” as the Hardware compatibility level

In “Guest Operation System Installation” screen, choose the darwin.iso as the installer disk image; DO NOT choose the ISO you converted from the Leopard dmg file, this file will be used later.

In “Select a Guest Operation System” screen, choose “Other” and “FreeBSD”; there will be no Mac OSX option, we need a little trick to get this in there.

Give your machine a name,

Give your virtual machine 1 processors and on 1 core, 1024MB (1G) of RAM


In the “Network Type” screen, you should choose bridged networking if you are connecting to a LAN environment, if your host machine is using dial up to access internet, you should use NAT.

Keep default settings to other screen and choose to create a new virtual hard drive, make it at least 40 G. And place the virtual hard drive in the same folder with your darwin.iso and your virtual machine configuration file.

Once the machine is created, use notepad to open the .vmx file.

Edit the line for “guestOS” make it to be “darwin10” which is MAC OSX.
guestOS = "darwin10"
Once this is done, restart VmWare Workstation and and open the VM setting dialogue, you will see “Mac OS X Server 10.6” showing in the version drop down.

Step 3: Installation of Mac OS X
Now, start up the virtual machine you just created, pressing F8 during the start up and the machine will show you the options to load your OSX installation ISO.

Click the little disk icon on the bottom right of the window and replace the darwin.iso with the Leopard installation ISO.


When you hit “Ok” in above screen and back to the vm, press “c” to allow the disk to load.
The virtual machine should load the OSX installation program and the 1st thing you need to do is to use “Utility-> Disk Utility” to creat a new partition for Mac OS.

Once this is done, the rest are pretty straight forward, just follow the instruction and you will be fine. The whole installation will take around 30 mins to finish.

Step 4 : Switch your bootable device to darwin.iso
Once the installation is done you should attach the darwin.iso back to the vm in order to boot up the machine because the HD won’t be able to boot on vmware directly.

Step 5: install VMWare drivers and Addon
Open Safari and open http://cid-738185eeb137555c.office.live.com/browse.aspx/OSX-Vmware?permissionsChanged=1&1
Download VMDRIVERS.zip file, and install the following two files
- vmsvga2.pkg – Video driver
- EnsoniqAudioPCI 2.mpkg – Sound driver

The installation requires you to reboot, then you will be able to switch resolution and using sound.
Step 6: Install XCode
XCode and iOS SDK can be downloaded from http://developer.apple.com, the download require you to register and you will need to update your OSX system before able to install them.
This download, update and installation will need another 1-2 hours to finish depending on your network condition. Finally, you can run Xcode and say “Hello World” to your free iPhone 4.
Enjoy

End and Beginning of a new journey
http://developer.apple.com provides very comprehensive materials for you to learn Object C and iOS programming, and you can use iTune U to download the iPhone Development course from Stanford university which is a very good resource to get started.
Note: VmWare does have a known issue that if you leave your OSX VM unattended for a while, it will lose focus and becomes unresponsive, just be careful of this, save your work asap.