← Back to team overview

touch-packages team mailing list archive

[Bug 1485558] Re: NetworkManager breaks vboxnet* connections since 15.04, worked in 14.04 and 14.10

 

I tried this variant to tell NetworkManager to ignore the virtual
devices:

[keyfile]
unmanaged-devices=mac:xx:xx:xx:xx:xx:xx

(using the real MAC address of course)
It still does not change anything.

But I noticed this in the log, which happen whether or not the
unmanaged-devices option is set:

Aug 19 18:52:04 n55sf-l NetworkManager[6399]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet0): driver 'unknown' does not support carrier detection.
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet0): device is virtual, marking as unmanaged
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet0): new Ethernet device (driver: 'unknown' ifindex: 4)
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet0): exported as /org/freedesktop/NetworkManager/Devices/3
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet1): driver 'unknown' does not support carrier detection.
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet1): device is virtual, marking as unmanaged
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet1): new Ethernet device (driver: 'unknown' ifindex: 5)
Aug 19 18:52:04 n55sf-l NetworkManager[6399]: <info> (vboxnet1): exported as /org/freedesktop/NetworkManager/Devices/4

So, basically it seems that the devices is correctly seen as virtual and
unmanaged by Network-Manager but still it finally manages it.

More details obtained using command below confirm that NetworkManager
does DHCP on vboxnet0 which is definitely wrong.

grep -i network.*manag.*vbox /var/log/syslog -C 3

Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (wlan0): preparing device
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): driver 'unknown' does not support carrier detection.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): device is virtual, marking as unmanaged
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): new Ethernet device (driver: 'unknown' ifindex: 4)
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): exported as /org/freedesktop/NetworkManager/Devices/3
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet1): driver 'unknown' does not support carrier detection.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet1): device is virtual, marking as unmanaged
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet1): new Ethernet device (driver: 'unknown' ifindex: 5)
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet1): exported as /org/freedesktop/NetworkManager/Devices/4
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> urfkill disappeared from the bus
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> use BlueZ version 4
Aug 19 18:59:43 n55sf-l wpa_supplicant[893]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
--
Aug 19 18:59:43 n55sf-l wpa_supplicant[893]: wlan0: CTRL-EVENT-SCAN-STARTED
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> ModemManager available in the bus
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Auto-activating connection 'Auto SG IP auto'.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) starting connection 'Auto SG IP auto'
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): device state change: unmanaged -> disconnected (reason 'managed') [10 30 2]
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 1 of 5 (Device Prepare) scheduled...
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 1 of 5 (Device Prepare) started...
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> NetworkManager state is now CONNECTING
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 2 of 5 (Device Configure) scheduled...
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 1 of 5 (Device Prepare) complete.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 2 of 5 (Device Configure) starting...
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): device state change: prepare -> config (reason 'none') [40 50 0]
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 2 of 5 (Device Configure) successful.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 3 of 5 (IP Configure Start) scheduled.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 2 of 5 (Device Configure) complete.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 3 of 5 (IP Configure Start) started...
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): device state change: config -> ip-config (reason 'none') [50 70 0]
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> dhclient started with pid 8181
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> Activation (vboxnet0) Stage 3 of 5 (IP Configure Start) complete.
Aug 19 18:59:43 n55sf-l NetworkManager[8151]: <info> (vboxnet0): DHCPv4 state changed nbi -> preinit
Aug 19 18:59:44 n55sf-l dhclient: DHCPREQUEST of 192.168.56.102 on vboxnet0 to 255.255.255.255 port 67 (xid=0x4b3f5c05)
Aug 19 18:59:44 n55sf-l dhclient: DHCPACK of 192.168.56.102 from 192.168.56.100

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1485558

Title:
  NetworkManager breaks vboxnet* connections since 15.04, worked in
  14.04 and 14.10

Status in network-manager package in Ubuntu:
  New

Bug description:
  On an Asus laptop running a freshly installed Ubuntu 15.04 64-bit, nm-
  applet shows that NetworkManager wants to manage vboxnet0 and
  vboxnet1. These are created by virtualbox which runs some guest OS
  inside a VM. On previous Ubuntu releases, network-manager did not try
  to manage them and there was no problem.

  # Observed behavior

  * nm-applet shows spinning animation for a long time, while it is not relevant. Clicking on "disconnect" in the menu unconfigures the interface which breaks it.
  * after suspend-resume of the host, vboxnet* lose their correct configurations. vboxnet0 (a host-only interface where virtualbox runs a private dhcp server) gets a different IP address. Looks like https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1460750 but does not feel like a bug in virtualbox.

  # Expected behavior

  * Just like in 14.04 and 14.10, these interfaces are just ignored by
  network-manager and they just work.

  # Additional information

  * After reading http://superuser.com/questions/9720/disabling-
  networkmanager-for-a-specific-interface tried to add these lines to
  /etc/network/interfaces. Even after restarting network-manager, it has
  no effect.

  iface vboxnet0 inet manual
  iface vboxnet1 inet manual

  So, reverted the change.

  * Tried from https://blogs.gnome.org/dcbw/2015/02/16/networkmanager-
  for-administrators-part-1/ to add in /etc/NetworkManager/conf.d/ a
  file 50-virtualbox.conf containing the following lines. Even after
  restarting network-manager, it is ignored.

  [keyfile]
  unmanaged-devices=vboxnet0,vboxnet1

  * This is not eactly like https://www.virtualbox.org/ticket/13873, I'm not using Vagrant.
  * Booting to 14.04 or 14.10 (that have been kept intact on the same machine) things just work as expected.
  * /usr/share/doc/network-manager/NEWS.gz states that "'veth' interfaces are now unmanaged by default to cooperate better with external tools". Should vboxnet* be treated the same ?
  * This seems on the topic but unclear to me: https://bugzilla.gnome.org/show_bug.cgi?id=731014

  Thank you for your attention.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: network-manager 0.9.10.0-4ubuntu15.1
  ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2
  Uname: Linux 3.19.0-25-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.2
  Architecture: amd64
  Date: Mon Aug 17 13:13:04 2015
  IfupdownConfig:
   # interfaces(5) file used by ifup(8) and ifdown(8)
   auto lo
   iface lo inet loopback
  InstallationDate: Installed on 2015-08-15 (1 days ago)
  InstallationMedia: Xubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422.1)
  IpRoute:
   default via 192.168.47.1 dev wlan0  proto static  metric 1024 
   169.254.0.0/16 dev vboxnet0  scope link  metric 1000 
   192.168.47.0/24 dev wlan0  proto kernel  scope link  src 192.168.47.6 
   192.168.56.0/24 dev vboxnet0  proto kernel  scope link  src 192.168.56.102
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
   WimaxEnabled=true
  ProcEnviron:
   LANGUAGE=fr_FR
   TERM=xterm
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: network-manager
  UpgradeStatus: No upgrade log present (probably fresh install)
  nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1485558/+subscriptions


References