Dec 20, '10 07:30:00AM • Contributed by: Sven G
I did all this on a new mid-2010 Mac mini Server (with an external MacBook Air SuperDrive), with OS X Server 10.6.5 (re)installed on the upper drive (*disk1*) and OS X client 10.6.5 (and Fusion, many other apps, etc.) installed on the lower drive (*disk0*): i.e., with the computer used mainly as a client desktop rather than a server; so, virtualizing the server OS might be the most convenient solution, while - if desired - also being able to natively boot into the server (at least as an experiment).
So, you want to virtualize a whole hard drive (HD) with OS X Server installed? Or, more simply, if you want to install OS X Server onto an 'ordinary,' file-based Fusion virtual machine (VM), but only have a machine-specific install DVD (which will refuse to install if used to boot the VM), here is what I did.
Part 1: If you want to virtualize a whole disk:
- Create a new Mac OS X Server (10.6 and 64-bit, in this case) VM and customize its settings (I named it 'Mac OS X Server' and created it in /Users/Shared/Virtual Machines.localized).
- Delete the virtual file-based 40 GB SCSI .vmdk which was automatically created during the VM setup (from within the VM settings; I also reverted it to a non-split disk before).
- Exit Fusion.
- Enter the Terminal, and execute this command (but YMMV with the physical disk number and the VM path):
/Library/Application Support/VMware Fusion/vmware-rawdiskCreator create /dev/disk1 fullDevice /Users/Shared/Virtual Machines.localized/Mac OS X Server.vmwarevm/Mac OS X Server lsilogic
- Open the VM's .vmx configuration file in a text editor (TextEdit or similar), add these lines and save (see also the previous thread):
- Run the Mac OS X Server VM (the first time, you will have to authenticate - which is optional subsequently - and there will be a message saying that a raw SCSI disk might be slow with dual booting, etc., or something like that): and voilą - it should work as if it were a 'real' Boot Camp partition VM.)
suspend.disabled = "TRUE" scsi0:0.deviceType = "rawDisk"
P.S.: I had to choose SCSI (as it also were in the originally created file-based VM), because IDE didn't work: it gave a bus error when trying to create the 'Boot Camp-like' .vmdk with the fullDevice parameter; maybe because the internal Mac mini Server HDs are SATA, or because it is Mac OS X, or even because the OS is on a GPT-formatted HD?
Part 2: If you want to install OS X Server in a Fusion VM with a machine-specific DVD:
Create the VM as usual, customize it and exit Fusion; then, mount the VM in the Finder with VMDKMounter (located in the /Library/Application Support/VMware Fusion folder), and instead of booting the VM from the DVD open
/Volumes/Mac OS X Server Install Disc/System/Installation/Packages/OSInstall.mpkg
open /Volumes/Mac OS X Server Install Disc/System/Installation/Packages/OSInstall.mpkg
As you now install from your original machine (but to another HD), it will work (and if you want to change the default 40 GB virtual HD size, which might be a little small, you can reformat the mounted virtual hard drive with Disk Utility before installing OS X Server onto it).
Certainly, it's easier to manage file-based VMs, so for now I went back to using the upper drive in the Mac mini Server as a dedicated VM storage HD, and thus installed OS X Server in an 'ordinary' VM.
[crarko adds: I haven't tested this one.]
