It seems that the "lxc-dnsmasq.slice" is in faulty state:
-------------
root@c3v:~# systemctl status lxc-dnsmasq.slice
● lxc-dnsmasq.slice
Loaded: loaded
Active: active since Tue 2020-04-21 09:47:43 EDT; 4min 20s ago
Tasks: 0
CGroup: /lxc.slice/lxc-dnsmasq.slice
Apr 21 09:52:01 c3v lxc-system-manage[22528]: Removing LXC IPtables rules.
Apr 21 09:52:01 c3v lxc-system-manage[22528]: LXC IPtables rules removed.
Apr 21 09:52:03 c3v lxc-system-manage[22595]: Creating LXC IPtables rules.
Apr 21 09:52:03 c3v lxc-system-manage[22595]: LXC IPtables rules created.
Apr 21 09:52:03 c3v lxc-system-manage[22620]: Starting LXC dnsmasq.
Apr 21 09:52:03 c3v lxc-system-manage[22620]: dnsmasq: failed to create listening socket for 10.0.3.1: Address already in use
Apr 21 09:52:03 c3v dnsmasq[22624]: failed to create listening socket for 10.0.3.1: Address already in use
Apr 21 09:52:03 c3v dnsmasq[22624]: FAILED to start up
-----------------------
I have killed the processes as shown below and then restarted the service. And now it works fine.
Hi,
It seems that the "lxc-dnsmasq.slice" is in faulty state: lxc-dnsmasq. slice
-------------
root@c3v:~# systemctl status lxc-dnsmasq.slice
● lxc-dnsmasq.slice
Loaded: loaded
Active: active since Tue 2020-04-21 09:47:43 EDT; 4min 20s ago
Tasks: 0
CGroup: /lxc.slice/
Apr 21 09:52:01 c3v lxc-system- manage[ 22528]: Removing LXC IPtables rules. manage[ 22528]: LXC IPtables rules removed. manage[ 22595]: Creating LXC IPtables rules. manage[ 22595]: LXC IPtables rules created. manage[ 22620]: Starting LXC dnsmasq. manage[ 22620]: dnsmasq: failed to create listening socket for 10.0.3.1: Address already in use ------- ------- --
Apr 21 09:52:01 c3v lxc-system-
Apr 21 09:52:03 c3v lxc-system-
Apr 21 09:52:03 c3v lxc-system-
Apr 21 09:52:03 c3v lxc-system-
Apr 21 09:52:03 c3v lxc-system-
Apr 21 09:52:03 c3v dnsmasq[22624]: failed to create listening socket for 10.0.3.1: Address already in use
Apr 21 09:52:03 c3v dnsmasq[22624]: FAILED to start up
-------
I have killed the processes as shown below and then restarted the service. And now it works fine.
------------- manage[ 22631]: LXC IPtables rules removed. lxc-dnsmasq. slice
└─lxc- dnsmasq. service
└ ─24212 dnsmasq --user=lxc-dnsmasq --pid-file= /run/lxc/ dnsmasq. pid --conf-file= --listen- address= 10.0.3. 1 --dhcp- range=10. 0.3.2,10. 0.3.253 --dhcp- option= 6,10.0. 3.1 --dhcp-
Apr 21 09:52:03 c3v lxc-system-
root@c3v:~# netstat -alpn | grep 10.0.3.1
tcp 0 0 10.0.3.1:53 0.0.0.0:* LISTEN 5547/named
udp 0 0 10.0.3.1:53 0.0.0.0:* 5547/named
root@c3v:~# kill -9 5547
root@c3v:~# systemctl restart lxc-dnsmasq.slice
root@c3v:~# systemctl status lxc-dnsmasq.slice
● lxc-dnsmasq.slice
Loaded: loaded
Active: active since Tue 2020-04-21 09:52:36 EDT; 5s ago
Tasks: 1
CGroup: /lxc.slice/
Apr 21 09:52:36 c3v lxc-system- manage[ 24197]: LXC IPtables rules created. manage[ 24208]: Starting LXC dnsmasq. dhcp[24212] : DHCP, IP range 10.0.3.2 -- 10.0.3.253, lease time 1h manage[ 24208]: dnsmasq started. ------- ------- ------- ------- -
Apr 21 09:52:36 c3v lxc-system-
Apr 21 09:52:36 c3v dnsmasq[24212]: started, version 2.79 cachesize 150
Apr 21 09:52:36 c3v dnsmasq[24212]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Apr 21 09:52:36 c3v dnsmasq-
Apr 21 09:52:36 c3v lxc-system-
-------