This topic has been covered publicly already. Nonetheless for completeness of one my previous posts, I want to provide you with this step by step manual to a virtualized Lion.
Open your Mac App Store. Search for the keyword
Lion and choose install to download the latest build.
After a few minutes
Lion is installed as an application and waiting to get run. Go to Applications and right-click on Install Mac OS X Lion. From the drop-down menu select Show Package Contents.
Then navigate to Contents > Shared Support > InstallESD.dmg
Copy the InstallESD.dmg file to /Downloads. Once done, open a Terminal session and type in
hdiutil convert -format UDTO -o /Users/yourname/Downloads/osx108dev.iso /Users/yourname/Downloads/InstallESD.dmg
After conversion is done you need to change the iso.cdr file into an iso file. Simply use the
mv command to do this as shown in the picture.
Open your vSphere client and add a new virtual machine with a custom configuration.
Use Virtual Machine Hardware 8.
Select Other > Mac OS X 10.7 (64-bit)
Keep the defaults for the disk provisioning, but make sure that you check the tick-box for Thin Provision
. Follow the online instructions and accept the defaults.
Check the tick box Edit the virtual machine settings before completion.
Browse to your disk image Lion.iso and set the device status to Connect at power on.
Finish the creation of the virtual machine and start it.
After some minutes you are presented with the language screen of Lion. Select the appropriate language and proceed.
Select the Disk Utility first before continuing the installation process.
Select the empty disk drive VMware Virtual Disk and erase it with the format Mac OS Extended (Journaled).
Quit the Disk Utility and proceed with the installation process.
Choose to Reinstall Mac OS X. This will install Lion.
After a half an hour you should have a running copy of Lion on VMware vSphere 5. Enjoy!