我已经从 VMWare 导出了我的 VM,并尝试将其导入 XenServer (xcp-ng 7.6) XenConvert 2.1.1,但总是出现此错误:
Friday, May 24, 2019 11:15:04
XenConvert 2.1.1.2199 Copyright (c) 2001-2009 Citrix Systems, Inc.
Microsoft Windows 7 (Suite=0x00000100) SP 1
Processor Architecture: x64
Number of processors: 4
OVF to XenServer started at Friday, May 24, 2019 11:15:05
Validating OVF Package...
FWD: Warning:2019.5.24.11.15.5,181: Version not set, applying 1.0.0
FWD: Warning:2019.5.24.11.15.6,69: Validate VHS, Unknown hardware type: vmx-08 failing validation.
FWD: Error:2019.5.24.11.15.6,88: OVF Failed Validation, OVERRIDE return success
OVF Package is valid.
Source is C:\Users\RED\Documents\Virtual Machines\owncloudVMware-disk1.vmdk.
Destination is C:\Users\RED\Documents\Virtual Machines.
VMDK to VHD started at Friday, May 24, 2019 11:15:06
Converting VMDK to VHD...
Dismounting VHD...
Failed to find device for VHD with Id 6221 because of system error: Element not found. (0x00000490)
Failed to get the system directory.
Windows directory is WINDOWS
Scanning for BOOT volume...
*** Warning! ***
Failed to find the Windows Boot Volume.
VHD C:\Users\RED\Documents\Virtual Machines\owncloudVMware-disk1.vhd was not configured for XenServer.
VM may not boot in XenServer.
Dismounting VHD...
VMDK to VHD stopped at Friday, May 24, 2019 11:34:45
Importing OVF Package...
FWD: Debug:2019.5.24.11.34.47,859: OVF.FindSystemIds completed, 1 found
FWD: Debug:2019.5.24.11.34.48,647: OVF.FindRasdByType completed, 1 found
FWD: Debug:2019.5.24.11.34.48,669: OVF.FindRasdByType completed, 1 found
FWD: Debug:2019.5.24.11.34.49,51: Import.Process: DefineSystem completed (bitnami-owncloud-10.1.1-2-r50-linux-debian-9-x86_64)
FWD: Debug:2019.5.24.11.34.49,376: Import.SetIfDeviceIsBootable: Using HostResource to find Disk
FWD: Warning:2019.5.24.11.34.49,388: Import.FindRasdleName: VHD file exists, replacing VMDK with VHD: owncloudVMware-disk1.vhd
FWD: Debug:2019.5.24.11.34.50,337: Found file owncloudVMware-disk1.vhd using VhdStream
FWD: Debug:2019.5.24.11.34.50,531: Import.UploadRawVDI Enter
FWD: Debug:2019.5.24.11.34.50,541: Import.UpdoadRadVDI SRUUID: 173cb437-4e01-4017-0ab4-4be4b9c8ecc2
FWD: Debug:2019.5.24.11.34.50,549: Import.UpdoadRadVDI Label: bitnami-owncloud-10.1.1-2-r50-linux-debian-9-x86_64
FWD: Debug:2019.5.24.11.34.50,560: Import.UpdoadRadVDI Capacity: 16000221184
FWD: Debug:2019.5.24.11.34.51,334: Import.UploadRawVDI::VDI Created
FWD: Debug:2019.5.24.11.34.51,430: Connect To: 160.226.184.91:80
FWD: Debug:2019.5.24.11.34.51,532: Request: PUT /import_raw_vdi?session_id=OpaqueRef:7227acf1-5a4f-48ef-9823-a3981632eec7&task_id=OpaqueRef:ef3459fe-551e-42c6-bed6-24470e11b6e0&vdi=OpaqueRef:f92c43f1-fa25-4b7b-9717-03f7a41f665a http:/1.0
FWD: Debug:2019.5.24.11.34.51,654: ERROR Returned: 400
FWD: Debug:2019.5.24.11.34.51,669: DoHTTP FAILED
FWD: Debug:2019.5.24.11.34.51,679: Import.UploadRawVDI::http.put complete
FWD: Debug:2019.5.24.11.34.56,687: Import.UploadRawVDI Leave
FWD: Debug:2019.5.24.11.34.56,706: OVF.Import.ImportFile leave
FWD: Debug:2019.5.24.11.34.56,717: Import.AddResourceSettingData, recevied autoevent, continuing
FWD: Debug:2019.5.24.11.34.56,717: Import.ImportFileProc (worker thread) completed
FWD: Debug:2019.5.24.11.34.56,725: Import.AddResourceSettingData VDI= OpaqueRef:f92c43f1-fa25-4b7b-9717-03f7a41f665a
FWD: Debug:2019.5.24.11.34.56,741: Import.VerifyUserDevice, checking device: 99
FWD: Debug:2019.5.24.11.34.56,843: Import.VerifyUserDevice, device: 99 will be used.
FWD: Debug:2019.5.24.11.34.56,848: Import.VerifyUserDevice, checking device: 99
FWD: Debug:2019.5.24.11.34.56,943: Import.VerifyUserDevice, device: 99 will be used.
FWD: Error:2019.5.24.11.34.57,39: VBD Create failed: VDI_READONLY
VDI_READONLY
Failed to import the OVF Package.
OVF to XenServer stopped at Friday, May 24, 2019 11:34:57
答案1
请注意,要执行此类操作,您的 XenServer 应配置默认存储库 (SR)。您可以使用氙气命令。
如果您的默认存储已满,则可能会遇到另一个类似的问题,在这种情况下您需要更改它。
如果该部分没有问题并且导入仍然有效,请执行以下操作:
删除现有的传输虚拟机模板
打开 Master 的命令行控制台
CD 到位置 /opt/xensource/packages/files/transfer-vm
使用 xe vm-import filename=transfer-vm.xva 导入传输虚拟机
启动 OVF 文件的导入