How can I convert a DMG into a VMDK file? I had a laptop hard drive which i turned into a DMG. I want to make a VM that uses that drive. How can I turn this DMG into a working VMDK or boot from this DMG for the VM?

  • @DKNUCKLES I tried that and I'm getting vmware-rawdiskCreator command not found. Is that something I have to install separately? – hanleyhansen Sep 11 '12 at 19:04
  • Are you executing the command from within the correct directory? You'll need to execute it where the binary is stored - /Applications/VMware\ Fusion.app/Contents/Library/vmware-rawdiskCreator – DKNUCKLES Sep 11 '12 at 19:11

Have a look at this post on puredarwin.org

|improve this answer|||||
  • Was able to do it on Linux thanks to this link! Thanks! – hanleyhansen Sep 11 '12 at 19:20
  • 1
    Please include the content of the tip in the post next time. The URL is not offline, and the information lost. – Epskampie Oct 16 '17 at 14:44
  • 2
    Link is broken. – Jason R. Coombs Oct 29 '17 at 23:57

You can do it on Mac OS as also!

The good start point is this guide. It gave me the idea about how to do this. Here are the steps to make .vmdk image from .dmg.

  1. Double click your hdd.dmg to mount it.
  2. Open Disk Utility and select your hdd volume in the left side. Then press Unmount button. The volume will become semi transparent.
  3. Now press the Info button then find disk identifier in a new window. It should be like disk1.
  4. Open Terminal window. Execute cd /Applications/VMware\ Fusion.app/Contents/Library/
  5. Run ./vmware-rawdiskCreator print /dev/disk1. To make sure that it's your source .dmg and it is readable.
  6. Then make a linked vmdk via ./vmware-rawdiskCreator create /dev/disk1 fullDevice /Users/yourname/Desktop/hdd-link lsilogic It will do not a real vmdk but one linked with your dmg data.
  7. Run following command to make resizable hdd.vmdk with the copy of dmg data. ./vmware-vdiskmanager -r /Users/yourname/Desktop/hdd-link.vmdk -t 0 /Users/yourname/Desktop/hdd.vmdk
  8. After the process successfully completes you can eject your hdd.dmg and add the result hdd.vmdk to your virtual machine.

You can resize the result vmdk from within your VMWare Fusion app.

|improve this answer|||||

On (ubuntu) linux:

First convert to .img:

dmg2img YOURFILE.dmg

Then convert to .vmdk:

qemu-img convert -O vmdk YOURFILE.iso YOURFILE.vmdk

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.