Monday, August 04, 2008
Virtualizing Mac OS X Leopard Client
VMWare Fusion 2.0 beta2 supports virtualizing Mac OS X Server as a guest OS. If you try to install a Leopard Client guest, you get an error
The guest operating system is not Mac OS X Server.However, if you create an ISO/CDR image from your Leopard install DVD, mount it then do
touch "/Volumes/Mac OS X Install DVD/System/Library/CoreServices/ServerVersion.plist"then unmount it, you can now use that image to install Leopard Client into VMWare with no complaints. After you install, reboot VMWare from the install DVD ISO again, run Terminal and
touch "/Volumes/Macintosh HD/System/Library/CoreServices/ServerVersion.plist"then reboot from the HD. This probably violates your license agreement so don't do it, I certainly wouldn't.
Update: You can automate the deletion and creation of the ServerVersion.plist file using a LaunchDaemon. Put the following xml in a new file /Library/LaunchDaemons/com.rectalogic.vmware.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.rectalogic.vmware</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>/bin/rm -f /System/Library/CoreServices/ServerVersion.plist; trap "/usr/bin/touch /System/Library/CoreServices/ServerVersion.plist; exit" SIGINT SIGTERM SIGHUP; sleep 999999 & wait $!</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Then run sudo launchctl load /Library/LaunchDaemons/com.rectalogic.vmware.plistNow when you login ServerVersion.plist will be deleted, when you shutdown it will be recreated ready for the next reboot.
Alternative approach: An alternative approach discussed in the comments is to hack VMWare to disable the check for server.
VMWare Fusion 3.0: Fusion 3.0 uses EFI instead of BIOS by default. After creating a new VM and before booting it from the install DVD/ISO, edit the *.vmx file and remove/comment out the firmware="efi" line. VMWare will then use the hacked boot image from darwin.iso.sudo bash cd "/Library/Application Support/VMware Fusion/isoimages" mkdir original mv darwin.iso tools-key.pub *.sig original perl -n -p -e 's/ServerVersion.plist/SystemVersion.plist/g' > darwin.iso openssl genrsa -out tools-priv.pem 2048 openssl rsa -in tools-priv.pem -pubout -out tools-key.pub openssl dgst -sha1 -sign tools-priv.pem > darwin.iso.sig for A in *.iso ; do openssl dgst -sha1 -sign tools-priv.pem < $A > $A.sig ; done exit
Sunday, August 03, 2008
Elevator Pitch
I was riding down to lunch in a relatively crowded elevator at work and two guys were in opposite corners carrying on a conversation about work over everyones heads. Then, this happened:
Guy #1:
You want go go out tomorrow night?Guy #2:
Sure, I told you I'm single again right?Guy #1, as if embarrassed by this personal detail in a public elevator:
Uhm, let's talk about this over lunch.and then Guy #1 continues:
By the way, I'm probably going to go for a 'rub and tug' after lunch, this Asian girl I go to is really into fiddling with my asshole.Absolutely beautiful.