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'
官网给出的说明

COMMENTS | NOTHING