Page 1 of 1

Changing the location of VMDK files?

Posted: 8. Oct 2011, 20:55
by wb666greene
I've a mish-mash of small VMs created going back to 1.5, they all seem to work fine in 4.1.4, my question is can I move the VDMK and associated files to match the "new" default locations and simplify my directory tree?

I tried just moving the VDMK file to where I wanted it, figuring I could detach and then reattach in its new location, but this complained about duplicated UUIDs and wouldn't work.

Re: Changing the location of VMDK files?

Posted: 8. Oct 2011, 23:28
by Sasquatch
You have to move the file after you unregistered the VDI from the Media Manager. Another option, which is a little daunting, is to move the file and modify the corresponding XML files that hold the file location. If you have snapshots, you shouldn't touch the VDI. You have to flatten the whole tree, removing all the snapshots by discarding them or merging the data into it's parent if you really want to move it. If you don't want to break the tree, don't move the VDI.