A VM disk image in Virtual Box (version 4.0.6) can be cloned using the command line “VBoxManage” tool with the “clonehd” command. Unfortunately, cloning a VM that already has a registered UUID in Virtual Box fails like that:
` #> ‘C:\Program Files\Oracle\VirtualBox\VBoxManage.exe’ clonehd .\MyVM.vdi .\NewVM.vdi
VBoxManage.exe: error: Cannot register the hard disk ‘C:\VMs\MyVM.vdi’ {601b44ed-a301-45a7-8b17-9b2185040a1e} because a hard disk ‘C:\VMs\MyVM1.vdi’ with UUID {601b44ed-a301-45a7-8b17-9b2185040a1e} already exists VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component VirtualBox, interface IVirtualBox, callee IUnknown Context: “OpenMedium(Bstr(pszFilenameOrUuid).