ovirt使用virt-v2v转换后导入虚拟机失败

发表于 2020-03-07  2.92k 次阅读


ovirt版本:4.3.5

在生产中使用kvm需要将虚拟机迁移至ovirt平台中使用virt-v2v转换到导出域中再在平台中导入导出域中的虚拟机,正常流程就是这样,但是最后一步报错。

查询日志发现有报DISKTYPE相关的错误,在官方搜索发现转换到导出域中虚拟机meta原文件参数值跟官方预设的不同(预设值为12才能导入)

修改后可正常导入

sed -i "/DISKTYPE/s/1/2/"  $(find ./ -name "*.meta")  
sed -i "/DISKTYPE/s/DATA/2/"  $(find ./ -name "*.meta")  
#需要在虚拟机所在目录(我这里是放进了导出域中)

报错信息:

/var/log/ovirt-engine/engine.log
019-08-15 03:54:06,940Z ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-3) [] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), VDSM ovirt-node1.reyzar.com command HSMGetAllTasksStatusesVDS failed: low level Image copy failed: (u"Destination volume d5c71d40-f78e-48d0-aa21-51b26b8d6a3d error: Invalid parameter: 'DiskType=1'",)
-- Message: 'VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = low level Image copy failed: (u"Destination volume d5c71d40-f78e-48d0-aa21-51b26b8d6a3d error: Invalid parameter: 'DiskType=1'",), code = 261',
-- Exception: 'VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = low level Image copy failed: (u"Destination volume d5c71d40-f78e-48d0-aa21-51b26b8d6a3d error: Invalid parameter: 'DiskType=1'",), code = 261'
2019-08-15 04:28:37,446Z ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-62) [] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), VDSM ovirt-node1.reyzar.com command HSMGetAllTasksStatusesVDS failed: low level Image copy failed: (u"Destination volume 5fbd7434-7fcb-4b3b-b2c6-fee973a96375 error: Invalid parameter: 'DiskType=1'",)
-- Message: 'VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = low level Image copy failed: (u"Destination volume 5fbd7434-7fcb-4b3b-b2c6-fee973a96375 error: Invalid parameter: 'DiskType=1'",), code = 261',
-- Exception: 'VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = low level Image copy failed: (u"Destination volume 5fbd7434-7fcb-4b3b-b2c6-fee973a96375 error: Invalid parameter: 'DiskType=1'",), code = 261'

官网给出的说明

本站文章基于国际协议BY-NA-SA 4.0协议共享;
如未特殊说明,本站文章皆为原创文章,请规范转载。

4

scanz个人博客