Help with Network Manager

I have Home Assistant Supervised. In order for it to be a supported install, I am required to run Network Manager. I have it installed and set up like here: Network Manager - Home Assistant

The one difference is that I have assigned a static IP address. So my /etc/network/interfaces file look like this:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface enp0s3 inet static
address 192.168.xxx.x
netmask 255.255.255.0
gateway 192.168.xxx.x
dns-nameservers xxx.xx.x.xx, xxx.xx.x.xx

The problem is every time I reboot the network manger is clearing the /etc/resolv.conf file and leaving it empty. Then if i try to execute a sudo apt-get update, it cannot find any of the locations.

Run sudo nmtui and use it to configure static IP, etc.

2 Likes

OK, do I then make the /etc/network/interfaces file like what was shown in the Network Manager link and make iface enp0s3 auto?

Just use nmtui (it configures NetworkManager) then reboot.

1 Like

Awesome, that worked perfectly. You da man!!!

One other quick question. Is there a link to a web page somewhere that tells me to do that? I was not familiar with that UI.

Glad to hear it.

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information refer to guideline 21 in the FAQ.

I found it by googling NetworkManager in order to fix a problem I recently experienced.

who can help me with the network-manager ishue
i have installed supvervised HOASS, it is running but i have network ishue
how to config it, thanks

ifconfig shows:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.128 netmask 255.255.255.0 broadcast 192.168.0.255

hassio: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.32.1 netmask 255.255.254.0 broadcast 172.30.33.255

docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255

Auswahl_033

$ systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; prese>
Active: active (running) since Thu 2025-01-09 16:06:36 UTC; 2min 28s ago
Docs: man:NetworkManager(8)
Main PID: 511 (NetworkManager)
Tasks: 3 (limit: 9481)
Memory: 12.9M
CPU: 269ms
CGroup: /system.slice/NetworkManager.service
└─511 /usr/sbin/NetworkManager --no-daemon

Warning: some journal files were not opened due to insufficient permissions.

~$ systemctl status apparmor
○ apparmor.service - Load AppArmor profiles
Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Thu 2025-01-09 16:47:46 UTC; 2min 38s ago
└─ ConditionSecurity=apparmor was not met
Docs: man:apparmor(7)
Home · Wiki · AppArmor / apparmor · GitLab