CLOUDSTACK-5592

ssh should run on eth1 interface in ssvm/cpvm running in HyperV.
This commit is contained in:
Rajesh Battala 2013-12-22 17:00:48 +05:30
parent 35d8b2f88d
commit a63fd39cd8
2 changed files with 10 additions and 0 deletions

View File

@ -1444,6 +1444,11 @@ VirtualMachineGuru, SystemVmLoadScanHandler<Long>, ResourceStateAdapter {
controlNic = managementNic;
}
// verify ssh access on management nic for system vm running on HyperV
if(profile.getHypervisorType() == HypervisorType.Hyperv) {
controlNic = managementNic;
}
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
cmds.addCommand("checkSsh", check);

View File

@ -1140,6 +1140,11 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements Secondar
controlNic = managementNic;
}
// verify ssh access on management nic for system vm running on HyperV
if(profile.getHypervisorType() == HypervisorType.Hyperv) {
controlNic = managementNic;
}
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
cmds.addCommand("checkSsh", check);