Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NetworkManager ignore docker, virtualbox, and vmware adapters
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=interface-name:docker0;interface-name:vmnet1;interface-name:vmnet8;interface-name:vboxnet0
@szczad
Copy link

szczad commented Jan 25, 2018

@dragon788 Please see manpage for NetworkManager.conf, section "Device List Format"
It states clearly that:

   interface-name:IFNAME, interface-name:~IFNAME
      Case sensitive match of interface name of the device. Simple globbing is supported with * and ?. 
      Ranges and escaping is not supported.

  interface-name:=IFNAME
      Case sensitive match of interface name of the device. Globbing is disabled and IFNAME is taken literally.

@cuchac
Copy link

cuchac commented Jul 20, 2021

I used this line to ignore bridge interfaces as well and use wildcards:
unmanaged-devices=interface-name:docker*;interface-name:br-*;interface-name:vmnet*;interface-name:vboxnet*

@thinkawitch
Copy link

thinkawitch commented Aug 9, 2021

This tweak helped me with docker containers gets unavailable inside of vmware linux mint 20 (ubuntu 20.04) after pause/resume.
unmanaged-devices=interface-name:docker*;interface-name:veth*;interface-name:br-*;interface-name:vmnet*;interface-name:vboxnet*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment