使用VBoxManage克隆vbox的硬盘文件

使用virtualbox的vboxmanage的克隆硬盘功能,可以将一个使用vbox产生的硬盘,完全克隆一份,但是克隆的时候要注意,硬盘文件的路径一定要用全路径,不然会报错

VBoxManage clonehd /media/hdisk1/winxp/winxp.vdi /media/hdisk1/winxp/winxp1.vdi

不使用绝对路径的报错信息:
=======================================================================
[alex@localhost /media/hdisk1/winxp]$ VBoxManage clonehd winxp.vdi winxp1.vdi 
Oracle VM VirtualBox Command Line Management Interface Version 3.2.4
(C) 2005-2010 Oracle Corporation
All rights reserved.
ERROR: Cannot register the hard disk ‘/media/hdisk1/winxp/winxp.vdi’ with UUID {ced1c72d-fea0-4314-b483-72e563f8dd44} because a hard disk ‘/media/hdisk1/winxp/winxp.vdi’ with UUID {ced1c72d-fea0-4314-b483-72e563f8dd44} already exists in the media registry (‘/home/alex/.VirtualBox/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 630 of file VBoxManageDisk.cpp
Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s