Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does VMware have a tool for converting from Virtual Machines to Physical Disk Image (Reverse of Converter basically)?

Alternatively, is there a 3rd party tool that can do this from Vmware images?

share|improve this question

1 Answer 1

Convert vmdk to physical disk image (Ubuntu/Debian)

If you have access to a Debian/Ubuntu system, first use qemu-img as explained here to create a raw image:

$ qemu-img convert -O raw diskimage.vmdk diskimage.raw

Then dd the disk image onto a hard drive (replace /dev/sdb with your disk device`):

$ sudo dd if=diskimage.raw of=/dev/sdb

Or combined in a single step (replace /dev/sdb with your disk device`:

$ sudo qemu-img convert -O raw diskimage.vmdk /dev/sdb

Convert split disk to monolithic disk

If you have multiple vmdk files, combine them with command vmware-vdiskmanager (for more information on vmware-vdiskmanager see this VMware article or the Virtual Disk Manager User's Guide):

  • On OS X:

    $ /Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -r <filepath of original disk> -t 2 <filepath of new disk>
    
  • On Linux:

    $ /usr/bin/vmware-vdiskmanager -r <filepath of original disk> -t 2 <filepath of new disk>
    
  • On Windows:

    > "C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe" -r <filepath of original disk> -t 2 <filepath of new disk>
    

where:

-r <filepath of original disk> converts the specified virtual disk, creating a new virtual disk as a result. You must the name of the target virtual disk (<filepath of new disk>).

-t 2 creates a preallocated virtual disk contained in a single virtual disk file.

Other method (explained here) is to select Virtual Machine>Settings>Hard Disk, uncheck "Split into 2GB files" and press Apply.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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