drop DesignatedAllocateHostMsg.setImage
@@ -505,7 +505,9 @@ public class VmInstanceBase extends AbstractVmInstance {
amsg.setServiceId(bus.makeLocalServiceId(HostAllocatorConstant.SERVICE_ID));
amsg.setAllocatorStrategy(self.getAllocatorStrategy());
amsg.setVmOperation(VmOperation.Start.toString());
+ if (self.getImageUuid() != null) {
amsg.setImage(ImageInventory.valueOf(dbf.findByUuid(self.getImageUuid(), ImageVO.class)));
+ }
amsg.setL3NetworkUuids(CollectionUtils.transformToList(self.getVmNics(), new Function<String, VmNicVO>() {
@Override
public String call(VmNicVO arg) {
@@ -1283,7 +1285,7 @@ public class VmInstanceBase extends AbstractVmInstance {
amsg.setCpuCapacity(self.getCpuNum());
amsg.setMemoryCapacity(self.getMemorySize());
amsg.getAvoidHostUuids().add(self.getHostUuid());
- amsg.setImage(ImageInventory.valueOf(dbf.findByUuid(self.getImageUuid(), ImageVO.class)));
+// amsg.setImage(ImageInventory.valueOf(dbf.findByUuid(self.getImageUuid(), ImageVO.class)));
if (msg instanceof GetVmMigrationTargetHostMsg) {
GetVmMigrationTargetHostMsg gmsg = (GetVmMigrationTargetHostMsg) msg;
if (gmsg.getAvoidHostUuids() != null) {
