diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java index b913a224d9af..2d8ad141cbe7 100644 --- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java +++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java @@ -4029,7 +4029,8 @@ private Answer migrateVolume(MigrateVolumeCommand cmd) { Integer sourceHardwareVersion = HypervisorHostHelper.getHostHardwareVersion(hyperHost); Integer destinationHardwareVersion = HypervisorHostHelper.getHostHardwareVersion(dsHost); if (sourceHardwareVersion != null && destinationHardwareVersion != null && !sourceHardwareVersion.equals(destinationHardwareVersion)) { - hardwareVersion = String.valueOf(Math.min(sourceHardwareVersion, destinationHardwareVersion)); + hardwareVersion = VirtualMachineMO.getVmxFormattedVirtualHardwareVersion( + Math.min(sourceHardwareVersion, destinationHardwareVersion)); } } s_logger.info("Create worker VM " + vmName);