Skip to content

Commit a63fd39

Browse files
CLOUDSTACK-5592
ssh should run on eth1 interface in ssvm/cpvm running in HyperV.
1 parent 35d8b2f commit a63fd39

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,11 @@ public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile prof
14441444
controlNic = managementNic;
14451445
}
14461446

1447+
// verify ssh access on management nic for system vm running on HyperV
1448+
if(profile.getHypervisorType() == HypervisorType.Hyperv) {
1449+
controlNic = managementNic;
1450+
}
1451+
14471452
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
14481453
cmds.addCommand("checkSsh", check);
14491454

‎server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,11 @@ public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile prof
11401140
controlNic = managementNic;
11411141
}
11421142

1143+
// verify ssh access on management nic for system vm running on HyperV
1144+
if(profile.getHypervisorType() == HypervisorType.Hyperv) {
1145+
controlNic = managementNic;
1146+
}
1147+
11431148
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
11441149
cmds.addCommand("checkSsh", check);
11451150

0 commit comments

Comments
 (0)