Convert a Physical Mac Volume to Boot a VMWare Fusion VM

Booting a VMWare Fusion virtual machine from an external hard disk isn’t directly supported. Rather, you must bit copy the disk onto a local filesystem and create a virtual machine that uses that instead. There isn’t a GUI tool on the Mac that does this so some people don’t think this is possible. However, with several command-line tools it is very do-able. Here’s how I took a Windows install off of an old laptop drive (the laptop had broken and wouldn’t turn on) and onto a VMWare virtual machine.

I plugged the drive into my Mac using a multi-purpose “laptop drive to USB” contraption I had lying around. You can use disk enclosures or actually install the disk in your computer – whatever is easiest.

I needed to find out what device in /dev references the drive I just plugged in. As it happens, when you plug in a USB disk, the proper devices get automatically created so all I had to do was reverse list the devices in /dev to find out that /dev/disk5 was the answer for me:

ls -lrt /dev

but you might run “/Applications/Utilities/Disk Manager” to find out as well.

The next step is to look at the partition table on the drive using vmware-rawdiskCreator (a command-line application in /Library/Application Support/VMWare Fusion) and find out what partition number vmware-rawdiskCreator in it’s view of the world. In my case, there was only one.

/Library/Application Support/VMware Fusion/vmware-rawdiskCreator print /dev/disk5

Nr Start Size Type Id Sytem
— ———- ———- —- — ————————
1 63 117194112 BIOS 7 HPFS/NTFS

There is only one partition on this disk not too surprisingly numbered “1”.

Then we use vmware-rawdiskCreator to create a “link” (just two text files) to the partitions you want converted. Here, I’m creating a set of files starting with “laptop-drive-link” that point to /dev/disk5, partition 1 and emulating an “ide” device.

/Library/Application Support/VMware Fusion/vmware-rawdiskCreator create /dev/disk5 1 laptop-drive-link ide

or for the full drive

/Library/Application Support/VMware Fusion/vmware-rawdiskCreator create /dev/disk5 fullDevice laptop-drive-link ide

Then we actually do the bit copy: (run the command sans options to see how to use it)

/Library/Application Support/VMware Fusion/vmware-vdiskmanager -r laptop-drive-link.vmdk -t 0 laptop-drive.vmdk

And lastly, create a new virtual machine in Fusion and use the new .vmdk file the above command created as the “existing virtual disk” for your new machine. Takes some space, but easy to do.

That should do it!

Note : This works with DMG’s of systems. Later versions of VMware tools are located in /Applications/VMware\ Fusion.app/Contents/Library