Skip to content

Commit 26fa623

Browse files
anshulgangwardevdeep
authored andcommitted
CLOUDSTACK-6663: Fixed Hyper-V agent fails to start on some setups. During startup agent tries
to get nic info of 0.0.0.0. To get it, it iterates through all nics and return the last NIC in the list if it doesn't match with any IP address. In case last NIC doesn't have unicastAddress, Hyper-V agent will fail to start. We don't need IP address during initialization. It get initialized with startupcommand later.
1 parent 3f947f6 commit 26fa623

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ public static void ConfigServerResource()
7272
// use of VisualStudio settings designer. The designer allows us to avoid
7373
// accessing config using their key strings.
7474
HypervResourceControllerConfig rsrcCnf = new HypervResourceControllerConfig();
75-
rsrcCnf.PrivateIpAddress = AgentSettings.Default.private_ip_address;
76-
rsrcCnf.GatewayIpAddress = AgentSettings.Default.gateway_ip_address;
7775
rsrcCnf.RootDeviceReservedSpaceBytes = AgentSettings.Default.RootDeviceReservedSpaceBytes;
7876
rsrcCnf.RootDeviceName = AgentSettings.Default.RootDeviceName;
7977
rsrcCnf.ParentPartitionMinMemoryMb = AgentSettings.Default.dom0MinMemory;

0 commit comments

Comments
 (0)