Windows环境下在Oracle VM VirtualBox下克隆虚拟机镜像:
1.通过命令操作
VBoxManage.exe clonevdi F:\MysqLvm\MysqLedi.vdi F:\MysqLvm\MysqLwms.vdi
F:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonevdi F:\MysqLvm\MysqLedi.v di F:\MysqLvm\MysqLwms.vdi VBoxManage.exe: error: Failed to lock source media 'F:\MysqLvm\MysqLedi.vdi' VBoxManage.exe: error: Details: code VBox_E_INVALID_OBJECT_STATE (0x80bb0007),c omponent MediumWrap,interface IMedium,callee IUnknown VBoxManage.exe: error: Context: "CloneTo(pDstMedium,ComSafeArrayAsInParam(l_var iants),NULL,pProgress.asOutParam())" at line 950 of file VBoxManageDisk.cpp 上述报错是因为被克隆的虚拟机没有停止 停止虚拟机再次执行克隆命令 F:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonevdi F:\MysqLvm\MysqLedi.v di F:\MysqLvm\MysqLwms.vdi 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Clone medium created in format 'VDI'. UUID: 4b3399f7-9466-4d42-9314-2654db46c833 2.在VirtualBox新建虚拟机(导入克隆.vdi文件): “新建虚拟机”->“虚拟硬盘”->“使用已有的虚拟硬盘文件(U)”,选择:名称