全部博文(1015)
分类: LINUX
2013-01-04 13:06:31
1. 对现有vdi 进行镜像克隆 --新版本4.2.6需要在路径上-加上“ ”
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonevdi “d:\VBOX\Debian.vdi” “d:\VBOX\Debian2.vdi”
Oracle VM VirtualBox Command Line Management Interface Version 3.2.4
(C) 2005-2010 Oracle Corporation
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 4e61da65-31e3-45a0-a0c3-af6b9b1b131a
2. 如果通过文件系统方式复制,在vbox中加载则会报uuid重复错误,无法使用
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonehd d:\VBOX\Debian.vdi.backup d:\VBOX\Debian2.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 'd:\VBOX\Debian.vdi.backup' with UUID {48e91f21-2806-44e7-a69b-914cbb7182e4} because a hard disk 'D:\VBOX\Debian.vdi' with UUID {48e91f21-2806-44e7-a69b-914cbb7182e4} already exists in the media registry ('C:\Documents and Settings\admin/.VirtualBox\VirtualBox.xml')
Details: code E_INVALIDARG (0x80070057), component VirtualBox, interface IVirtualBox, callee IUnknown
Context: "OpenHardDisk(src, AccessMode_ReadWrite, false, Bstr(""), false, Bstr(""), srcDisk.asOutParam())" at line 633 of file VBoxManageDisk.cpp
此时可以重新设定复制镜像的uuid
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands setvdiuuid d:\VBOX\Debian3.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.4
(C) 2005-2010 Oracle Corporation
All rights reserved.
UUID changed to: c966a5e1-a728-4211-ada1-c9243e0c645e