NetworkManager breaks vboxnet* connections since 15.04, worked in 14.04 and 14.10, nm-applet fills with irrelevant entries.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Confirmed
|
High
|
Unassigned |
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:/
# 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://
iface vboxnet0 inet manual
iface vboxnet1 inet manual
So, reverted the change.
* Tried from https:/
[keyfile]
unmanaged-
* This is not eactly like https:/
* Booting to 14.04 or 14.10 (that have been kept intact on the same machine) things just work as expected.
* /usr/share/
* This seems on the topic but unclear to me: https:/
Thank you for your attention.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: network-manager 0.9.10.
ProcVersionSign
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.
[main]
NetworkingEnab
WirelessEnable
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'.
Changed in network-manager (Ubuntu): | |
importance: | Undecided → High |
I tried this variant to tell NetworkManager to ignore the virtual devices:
[keyfile] devices= mac:xx: xx:xx:xx: xx:xx
unmanaged-
(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 6399]: <info> (vboxnet0): driver 'unknown' does not support carrier detection. 6399]: <info> (vboxnet0): device is virtual, marking as unmanaged 6399]: <info> (vboxnet0): new Ethernet device (driver: 'unknown' ifindex: 4) 6399]: <info> (vboxnet0): exported as /org/freedeskto p/NetworkManage r/Devices/ 3 6399]: nm_device_ get_device_ type: assertion 'NM_IS_DEVICE (self)' failed 6399]: <info> (vboxnet1): driver 'unknown' does not support carrier detection. 6399]: <info> (vboxnet1): device is virtual, marking as unmanaged 6399]: <info> (vboxnet1): new Ethernet device (driver: 'unknown' ifindex: 5) 6399]: <info> (vboxnet1): exported as /org/freedeskto p/NetworkManage r/Devices/ 4
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
Aug 19 18:52:04 n55sf-l NetworkManager[
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] 8151]: <info> (wlan0): preparing device 8151]: nm_device_ get_device_ type: assertion 'NM_IS_DEVICE (self)' failed 8151]: <info> (vboxnet0): driver 'unknown' does not support carrier detection. 8151]: <info> (vboxnet0): device is virtual, marking as unmanaged 8151]: <info> (vboxnet0): new Ethernet device (driver: 'unknown' ifindex: 4) 8151]: <info> (vboxnet0): exported as /org/freedeskto p/NetworkManage r/Devices/ 3 8151]: nm_device_ get_device_ type: assertion 'NM_IS_DEVICE (self)' failed 8151]: <info> (vboxnet1): driver 'unknown' does not support carrier detection. 8151]: <info> (vboxnet1): device is virtual, marking as unmanaged 8151]: <info> (vboxnet1): new Ethernet device (driver: 'unknown' ifindex: 5) 8151]: <info> (vboxnet1): exported as /org/freedeskto p/NetworkManage r/Devices/ 4 8151]: <info> urfkill disappeared from the bus
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:59:43 n55sf-l NetworkManager[
Aug 19 18:5...