If your vmdk image file is already connected to a guest VM.
- shutdown the VM
- remove the vmdk file from the guest VM (you can’t convert it while it is attached to a VM)
$ VBoxManage clonehd --format VDI myserver.vmdk \
/srv/d1/VirtualBox/HardDisks/myserver.vdi
That is all there is to it.
If you merely want to make a copy of a vdi disk image file, you can leave out the “–format VDI” option. The vdi disk image files contain a UUID. The clone process will make sure that the new output file has a different and unique UUID from the original. If you use “cp” to make a copy of the vdi image file, you will find that the output file is unusable because it contains the same UUID as the original file. A duplicate UUID is not acceptable to VirtualBox.
No comments:
Post a Comment