← Back to team overview

kernel-packages team mailing list archive

[Bug 1413020] Re: [Hyper-V] IP injection adds the line “# The following stanza(s) added by hv_set_ifconfig” for every pass.

 

Mike Schroeder and I verified that the script attached by Andy in #2
fixes the problem.  Thanks Andy.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1413020

Title:
  [Hyper-V] IP injection adds  the line “# The following stanza(s) added
  by hv_set_ifconfig” for every pass.

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  This is new bug branched off Bug
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1360580

  The IP injection problem has been fixed, but a small problem remains:
   
  There is one small glitch in how hv_set_ifconfig runs, as after several runs it keeps adding the line “# The following stanza(s) added by hv_set_ifconfig” for every pass.

  This is the setip execution output:
  PS C:\Users\Administrator\Desktop> .\setip.ps1
  -------------------------------------------------------------------------
  SetGuestNetworkAdapterConfiguration
  -------------------------------------------------------------------------

  Msvm_GuestNetworkAdapterConfiguration before update .. please make
  sure that VM is running ...

  IPAddresses: : {10.100.20.108, fe80::215:5dff:fe01:6c76}
  ProtocolIFType: : 4098
  DHCPEnabled: : True
  InstanceID: : Microsoft:GuestNetwork\9ADF60A7-E268-4039-88B0-372D3F2703D1\1A2B0CAB-5074-4551-88A8-EE39EC094A26
  Subnets: : {255.255.255.0, /64}
  DNSServers: : {8.8.8.8}
  DefaultGateways: : {10.100.20.1}

  SetGuestNetworkAdapterConfiguration
  SetGuestNetworkAdapterConfiguration success.
  Msvm_GuestNetworkAdapterConfiguration After update .. please make sure VM is running ...
  IPAddresses: : {10.100.20.208, fe80::215:5dff:fe01:6c76}
  ProtocolIFType: : 4098
  DHCPEnabled: : False
  InstanceID: : Microsoft:GuestNetwork\9ADF60A7-E268-4039-88B0-372D3F2703D1\1A2B0CAB-5074-4551-88A8-EE39EC094A26
  Subnets: : {255.0.0.0, /64}
  DNSServers: : {8.8.8.8, 8.8.4.4}
  DefaultGateways: : {10.100.20.1}

  Sample interfaces file content after running the script 3 times:

  root@ubuntu1410:~# cat /etc/network/interfaces
  # This file describes the network interfaces available on your system
  # and how to activate them. For more information, see interfaces(5).

  # The loopback network interface
  auto lo
  iface lo inet loopback

  # The primary network interface
  # The following stanza(s) added by hv_set_ifconfig
  # The following stanza(s) added by hv_set_ifconfig
  # The following stanza(s) added by hv_set_ifconfig
  auto eth0
  iface eth0 inet static
          address 10.100.20.108
          gateway 10.100.20.1
          dns-nameservers 8.8.4.4

  #End of hv_set_ifconfig stanzas

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413020/+subscriptions


References