mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5592
ssh should run on eth1 interface in ssvm/cpvm running in HyperV.
This commit is contained in:
parent
35d8b2f88d
commit
a63fd39cd8
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue