Skip to content

Commit 3d4d350

Browse files
author
Prasanna Santhanam
committed
simulator supports migration
Add simultor to the seemingly strict filter which should happen within the hypervisor resource and not the virtualmachine :/ Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent c78ed39 commit 3d4d350

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎server/src/com/cloud/vm/UserVmManagerImpl.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3838,7 +3838,8 @@ public VirtualMachine migrateVirtualMachine(Long vmId, Host destinationHost)
38383838
if (!vm.getHypervisorType().equals(HypervisorType.XenServer)
38393839
&& !vm.getHypervisorType().equals(HypervisorType.VMware)
38403840
&& !vm.getHypervisorType().equals(HypervisorType.KVM)
3841-
&& !vm.getHypervisorType().equals(HypervisorType.Ovm)) {
3841+
&& !vm.getHypervisorType().equals(HypervisorType.Ovm)
3842+
&& !vm.getHypervisorType().equals(HypervisorType.Simulator)) {
38423843
if (s_logger.isDebugEnabled()) {
38433844
s_logger.debug(vm
38443845
+ " is not XenServer/VMware/KVM/Ovm, cannot migrate this VM.");
@@ -4153,7 +4154,8 @@ public VirtualMachine migrateVirtualMachineWithVolume(Long vmId, Host destinatio
41534154
if (!vm.getHypervisorType().equals(HypervisorType.XenServer) &&
41544155
!vm.getHypervisorType().equals(HypervisorType.VMware) &&
41554156
!vm.getHypervisorType().equals(HypervisorType.KVM) &&
4156-
!vm.getHypervisorType().equals(HypervisorType.Ovm)) {
4157+
!vm.getHypervisorType().equals(HypervisorType.Ovm) &&
4158+
!vm.getHypervisorType().equals(HypervisorType.Simulator)) {
41574159
throw new InvalidParameterValueException("Unsupported hypervisor type for vm migration, we support" +
41584160
" XenServer/VMware/KVM only");
41594161
}

0 commit comments

Comments
 (0)