6

I'm on Mac 10.6.6 using VM Ware Fusion 3.1.2. I created a Windows 7 image, but when I examine the files that make up the image, there are 21 "extent" files -- e.g. files with names like

Windows 7-s001.vmdk Windows 7-s002.vmdk Windows 7-s003.vmdk ...

Ultimately I want to convert this to something that an be used by VirtualBox, and so to do that, I need to get a single vmdk (-flat.vmdk) file. Does anyone know how to generate a single file given the multiple files I have now?

Thanks, - Dave

Dave
  • 8,667
  • 25
  • 72
  • 90

3 Answers3

11

Virtual Machine - Settings - Hard Disk -> Uncheck "Split into 2GB files" and press Apply :)

SPDenver
  • 442
  • 5
  • 9
7

For those who (like I did) may end up here looking for how to do this on ESXi (CLI): There is no vmware-vdiskmanager. Instead, use vmkfstools:

vmkfstools --clonevirtualdisk source.vmdk dest.vmdk
Jonathon Reinhart
  • 132,704
  • 33
  • 254
  • 328
6

I have also had success doing this using the command line. Kind of heavy lifting, though - one has to RTFM and Google search carefully to find the right incantations.

look in

/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager

see -r for the "convert" option

j0k
  • 22,600
  • 28
  • 79
  • 90
Martin Haeberli
  • 304
  • 4
  • 6
  • 2
    Yep. A similar thing can be done on Windows too (you can find the Disk Manager tool in `C:\Program Files\VMware\VMware Workstation`). More information about the available command line options can be found [here](http://www.vmware.com/support/ws45/doc/disks_vdiskmanager_run_ws.html). – XåpplI'-I0llwlg'I - Jan 20 '13 at 03:41
  • 1
    Full command: vmware-vdiskmanager.exe –r thefirstfile.vmdk –t 0 singlefile.vmdk You can find vmware-vdiskmanager in the folder mentioned above. Credit goes to http://www.mahmoudthoughts.com/2009/07/merge-2gb-vmdk-files-to-one-single-vmdk.html for the command. After you combine it, you'll need to point your VM at the new disk. – emragins Oct 13 '13 at 19:21