The IP injection issue on 14.10 is resolved as tested successfully using the daily build from Sept 2nd.
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 ...
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
The IP injection issue on 14.10 is resolved as tested successfully using the daily build from Sept 2nd.
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: Administrator\ Desktop> .\setip.ps1 ------- ------- ------- ------- ------- ------- ------- ------- ------- --- AdapterConfigur ation ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
PS C:\Users\
-------
SetGuestNetwork
-------
Msvm_GuestNetwo rkAdapterConfig uration before update .. please make sure that VM is running ...
IPAddresses: : {10.100.20.108, fe80::215: 5dff:fe01: 6c76} GuestNetwork\ 9ADF60A7- E268-4039- 88B0-372D3F2703 D1\1A2B0CAB- 5074-4551- 88A8-EE39EC094A 26
ProtocolIFType: : 4098
DHCPEnabled: : True
InstanceID: : Microsoft:
Subnets: : {255.255.255.0, /64}
DNSServers: : {8.8.8.8}
DefaultGateways: : {10.100.20.1}
SetGuestNetwork AdapterConfigur ation AdapterConfigur ation success. rkAdapterConfig uration After update .. please make sure VM is running ... 5dff:fe01: 6c76} GuestNetwork\ 9ADF60A7- E268-4039- 88B0-372D3F2703 D1\1A2B0CAB- 5074-4551- 88A8-EE39EC094A 26
SetGuestNetwork
Msvm_GuestNetwo
IPAddresses: : {10.100.20.208, fe80::215:
ProtocolIFType: : 4098
DHCPEnabled: : False
InstanceID: : Microsoft:
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
dns-nameserver s 8.8.4.4
# 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
#End of hv_set_ifconfig stanzas