[Hyper-V] IP injection does not occur on Ubuntu 14.10

Bug #1360580 reported by Chris Valean
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Andy Whitcroft
Utopic
Fix Released
Medium
Andy Whitcroft

Bug Description

System details:
Linux ubuntu 3.16.0-9-generic #14-Ubuntu SMP Fri Aug 15 15:03:57 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu Server 14.10 Daily build from 19th Aug (first build picked up for testing)
Ubuntu 3.16.0-9.14-generic 3.16.1

IP injection is not working in 14.10 and no changes have been made on the LIS side. There are also no logged error messages to identify the issue. IP injection has been fixed and was working in previous releases.

Repro steps:
1) Create an Ubuntu 14.10 VM in a HA cluster Hyper-V environment.

2) Attach a synthetic NIC and set it with DHCP mode. Other test was done with a statically assigned IP.

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
auto eth0
        iface eth0 inet dhcp

3) Enable Replication.

4) Set Failover IP settings like for eg:
Set-VMNetworkAdapterFailoverConfiguration -ComputerName $computerName -VMName $vmname -IPv4Address 192.168.100.10 -IPv4SubnetMask 255.255.0.0 -IPv4PreferredDNSServer 192.168.100.101 -IPv4DefaultGateway 192.168.100.1

5) Simulating the IP injection shows the following behavior:
a. /etc/network/interfaces remains unchanged.
b. no messages/errors are recorded in dmesg.

The testing script used shows that the IP remains the same:

IPAddresses: : {192.168.100.107, 2001:4898:e0:f35b:215:5dff:fe3b:7210, fe80::215:5dff:fe3b:7210}
ProtocolIFType: : 4098
DHCPEnabled: : True
InstanceID: : Microsoft:GuestNetwork\6EBA4425-BB01-4BDE-A1FC-403389B9B6DC\0CBB124B-3102-4473-A3BD-8FF02B5879F2
Subnets: : {255.255.254.0, /64, /64}
DNSServers: : {8.8.4.4, OTHER DNS}
DefaultGateways: : {192.168.100.1, fe80::c262:6bff:feb0:9ddf, fe80::c262:6bff:feb1:6217}

SetGuestNetworkAdapterConfiguration
Msvm_GuestNetworkAdapterConfiguration After update .. please make sure VM is running ...
IPAddresses: : {192.168.100.107, 2001:4898:e0:f35b:215:5dff:fe3b:7210, fe80::215:5dff:fe3b:7210}
ProtocolIFType: : 4098
DHCPEnabled: : True
InstanceID: : Microsoft:GuestNetwork\6EBA4425-BB01-4BDE-A1FC-403389B9B6DC\0CBB124B-3102-4473-A3BD-8FF02B5879F2
Subnets: : {255.255.254.0, /64, /64}
DNSServers: : {same as above}
DefaultGateways: : {192.168.100.1, fe80::c262:6bff:feb0:9ddf, fe80::c262:6bff:feb1:6217}
---
ApportVersion: 2.14.6-0ubuntu1
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 14.10
HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
InstallationDate: Installed on 2014-08-19 (3 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Alpha amd64 (20140819)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.

 virbr0 no wireless extensions.
Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize libusb: -99
MachineType: Microsoft Corporation Virtual Machine
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 hyperv_fb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.16.0-9-generic root=/dev/mapper/hostname--vg-root ro crashkernel=128M@64M
ProcVersionSignature: Ubuntu 3.16.0-9.14-generic 3.16.1
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.16.0-9-generic N/A
 linux-backports-modules-3.16.0-9-generic N/A
 linux-firmware 1.132
RfKill:

Tags: utopic
Uname: Linux 3.16.0-9-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 05/23/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 090006
dmi.board.name: Virtual Machine
dmi.board.vendor: Microsoft Corporation
dmi.board.version: 7.0
dmi.chassis.asset.tag: 1037-8395-2404-3263-1476-7555-72
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.version: 7.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
dmi.product.name: Virtual Machine
dmi.product.version: 7.0
dmi.sys.vendor: Microsoft Corporation

Chris Valean (chvale)
description: updated
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1360580

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Chris Valean (chvale) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected utopic
description: updated
Revision history for this message
Chris Valean (chvale) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : BootDmesg.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : Lspci.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : ProcModules.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : UdevDb.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : UdevLog.txt

apport information

Revision history for this message
Chris Valean (chvale) wrote : WifiSyslog.txt

apport information

Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Utopic):
assignee: nobody → Andy Whitcroft (apw)
status: Incomplete → In Progress
Changed in linux (Ubuntu Utopic):
importance: Undecided → Medium
Revision history for this message
Abhishek Gupta (abgupta) wrote :

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 ...

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

Revision history for this message
Kylie Liang (kyliel) wrote :

Could you please verify this bug and confirm it is fixed with latest Ubuntu build? Thanks.

Revision history for this message
Mark W Wenning (mwenning) wrote :

 IP Injecting testing was successful using the released Ubuntu 14.10 x64 .iso.
The remaining issue is the stanza issue pointed out in Abhishek’s response #13. I will open a new bug to deal with this.

Changed in linux (Ubuntu):
status: In Progress → Fix Released
Changed in linux (Ubuntu Utopic):
status: In Progress → Fix Released
Revision history for this message
Mark W Wenning (mwenning) wrote :

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413020 has been opened to deal with the "stanza" problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.