Monday, April 26, 2010

Virtualizing Leopard (In Progress)

Here are the steps I used from DVD to virtualized Mac OS X Leopard:

Convert DVD to Sparse Image [1]:
  • Insert the OS X Leopard DVD (not the bundled OS install; needs to be retail install disk)
  • Open Disk Utility
  • Create "New Image"
    • Name can be anything
    • It's easiest to save on your desktop
    • Size: 8.0GB (Dual Layer)
    • Encryption: None
    • Format: Spare Disk Image
  • Click the image you just created and then click the "restore" tab for that.
  • Drag the "Mac OSX Install DVD" image into the source and then drag the image you just created into the destination field.*
  • Click Restore
  • Go grab a soda . . . Take a Nap . . .
* I didn't do this. Rather, at a Terminal prompt, I ran `mount` to see what disk the install DVD was at and used that as the source. For my setup, that was /dev/disk2s3.

Convert Sparse Image to ISO:
  • Eject the sparse image
  • From Terminal:
  • hdiutil makehybrid -o ~/Desktop/leopard.iso -iso -joliet ~/Desktop/leopard.sparseimage
    Reading Driver Descriptor Map (DDM : 0)…
    Reading Apple (Apple_partition_map : 1)…
    Reading Macintosh (Apple_Driver43 : 2)…
    Reading Macintosh (Apple_Driver43_CD : 3)…
    Reading  (Apple_Free : 4)…
    Reading Macintosh (Apple_Driver_ATAPI : 5)…
    Reading Macintosh (Apple_Driver_ATAPI : 6)…
    Reading  (Apple_Free : 7)…
    Reading Patch Partition (Apple_Patches : 8)…
    Reading disk image (Apple_HFS : 9)…
    ...............................................................................
    Elapsed Time:  9m 45.349s
    Speed: 13.9Mbytes/sec
    Savings: 0.0%
    created: /Users/Web/Desktop/leopard.iso.cdr
    
    
Change the Darwin support utils ISO to use Leopard client semantics versus server semantics [2]:
  • From Terminal:
    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
    

Start VMWare Fusion and create a new VM:
  • Applications -> VMWare Fusion
  • From Menu, File -> New
    • Click "Continue without disc"
    • Select "Use operating system installation disc image file:" and choose the ~/Desktop/leopard.iso file
    • Click Continue
    • For "Operating System", select "Apple Mac OS X"
    • For "Version", select "Mac OS X Server 10.5"
    • Click Continue
    • Click Finish and save


[1] http://notepad.bobkmertz.com/2007/10/making-back-up-copy-of-osx-leopard.html
[2] http://www.macgeekblog.com/blog/archive/2008/09/03/hack-vmware-fusion-2-virtualize-tigerleopard.html

0 comments:

Blog Archive