VBoxManage clonehd のエラー
VirtualBox*1の仮想ディスクイメージを複製しようとしたら、エラーが発生した。
% VBoxManage clonehd SRC.vdi DEST.vdi VirtualBox Command Line Management Interface Version 3.0.4 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. ERROR: Cannot register the hard disk '/some/path/SRC.vdi' with UUID {<UUID>} because a hard disk '/some/path/SRC.vdi' with UUID {<UUID>} already exists in the media registry ('/some/path/VirtualBox.xml') Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenHardDisk(Bstr(szFilenameAbs), AccessMode_ReadWrite, false, Bstr(""), false, Bstr(""), srcDisk.asOutParam())" at line 624 of file VBoxManageDisk.cpp
複製する元と先のファイル名を絶対パスにしたところ成功した。
% VBoxManage clonehd /full/path/SRC.vdi /full/path/DEST.vdi VirtualBox Command Line Management Interface Version 3.0.4 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Clone hard disk created in format 'VDI'. UUID: <UUID>