LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2019, 05:23 PM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
NetworkManager disabled but still takes over systemd-networkd


In ubuntu 18.04 network is managed by netplan.
By default rendered in netplan is systemd-networkd - and this is what I want to use.
However, somehow NetworkManager is always active(running) no matter how much I disable it in systemd.

Code:
ubuntu@ubuntu:~$ sudo systemctl status network-manager.service
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-05-20 08:04:53 UTC; 10min ago
     Docs: man:NetworkManager(8)
 Main PID: 1125 (NetworkManager)
    Tasks: 3 (limit: 1056)
   CGroup: /system.slice/NetworkManager.service
           └─1125 /usr/sbin/NetworkManager --no-daemon

May 20 08:05:54 ubuntu NetworkManager[1125]: <warn>  [1558339554.2635] device (wlan0): re-acquiring supplicant interface (#3).
May 20 08:05:54 ubuntu NetworkManager[1125]: <error> [1558339554.4126] sup-iface[0xaaab181c8d00,wlan0]: error adding interface: wpa_supplicant couldn't grab this interface.
May 20 08:05:54 ubuntu NetworkManager[1125]: <info>  [1558339554.4127] device (wlan0): supplicant interface state: starting -> down
May 20 08:06:04 ubuntu NetworkManager[1125]: <warn>  [1558339564.2690] device (wlan0): re-acquiring supplicant interface (#4).
May 20 08:06:04 ubuntu NetworkManager[1125]: <error> [1558339564.3897] sup-iface[0xaaab181c8db0,wlan0]: error adding interface: wpa_supplicant couldn't grab this interface.
May 20 08:06:04 ubuntu NetworkManager[1125]: <info>  [1558339564.3907] device (wlan0): supplicant interface state: starting -> down
May 20 08:06:14 ubuntu NetworkManager[1125]: <warn>  [1558339574.2691] device (wlan0): re-acquiring supplicant interface (#5).
May 20 08:06:14 ubuntu NetworkManager[1125]: <error> [1558339574.3852] sup-iface[0xaaab181c8db0,wlan0]: error adding interface: wpa_supplicant couldn't grab this interface.
May 20 08:06:14 ubuntu NetworkManager[1125]: <info>  [1558339574.3854] device (wlan0): supplicant interface state: starting -> down
May 20 08:06:14 ubuntu NetworkManager[1125]: <info>  [1558339574.3855] device (wlan0): supplicant interface keeps failing, giving up
How strange!
If I stop network-manager, then whole network stops to work and by executing netplan apply it comes back finally without network-manager.

Question:
How to efficiently disable network-manager and let systemd-networkd take over?
 
Old 05-20-2019, 09:32 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what did you do to stop and disable it?

I guess you only stopped it. Eg
Code:
sudo systemctl stop NetworkManager.service
Unless you actually disable it, it will start at next boot.
To disable it:
Code:
sudo systemctl disable NetworkManager.service
This is the standard way of stopping and disabling services in systemd.

Evo2.
 
Old 05-21-2019, 01:12 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Hi Evo2,
thank you for reply.
I thought it is clearly shown and described in my initial post that NetworkManager is stopped and disabled. However, for some reason, after each reboot it starts.
I paste here specific line from systemctl (that I have underlined in red in the previous post) showing the disabled state.


Code:
Loaded: loaded (/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
Just to make it crystal clear: yes, I have stopped and disabled NetworkManager. However, after reboot it starts automatically.


Could it be anything to do with this part: vendor preset: enabled ?
If so, how to change that part???

Last edited by czezz; 05-21-2019 at 01:18 AM.
 
Old 05-21-2019, 01:24 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

sorry missed that. I guess something other service is triggering it to start. Did you try looking at the full log to see it starting up after you stop it? Eg.

Code:
sudo journalctl -u NetworkManager
That may give you a clue as to what is going on.

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
systemd enforcing networkd & timesync by the minute husten Linux - Networking 0 09-17-2015 11:45 AM
LXer: How to switch from NetworkManager to systemd-networkd on Linux LXer Syndicated Linux News 0 09-01-2015 01:42 AM
LXer: How to switch from NetworkManager to systemd-networkd on Linux LXer Syndicated Linux News 0 08-31-2015 07:31 AM
LXer: Build a network router and firewall with Fedora 22 and systemd-networkd LXer Syndicated Linux News 0 08-25-2015 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration