pct start 108 --debug
to get more log output.root@prmx:~# pct start 108 --debug
run_buffer: 571 Script exited with status 11
lxc_init: 845 Failed to run lxc.hook.pre-start for container "108"
__lxc_start: 2034 Failed to initialize container "108"
0 hostid 100000 range 65536
INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "108", config section "lxc"
DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 108 lxc pre-start produced output: org.freedesktop.DBus.Error.ServiceUnknown: The name uk.org.thekelleys.dnsmasq.Internal was not provided by any .service files
ERROR utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 11
ERROR start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for container "108"
ERROR start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "108"
INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "108", config section "lxc"
startup for container '108' failed
root@prmx:/etc/pve/sdn# cat subnets.cfg
subnet: Internal-192.168.201.0-24
vnet Internal
dhcp-range start-address=192.168.201.2,end-address=192.168.201.250
gateway 192.168.201.1
snat 1
root@prmx:/etc/pve/sdn# cat vnets.cfg
vnet: Internal
zone Internal
root@prmx:/etc/pve# ps guax | grep dnsmasq
dnsmasq 1508 0.0 0.0 14184 1948 ? S Feb24 0:00 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
root 692923 0.0 0.0 6332 1920 pts/0 S+ 10:16 0:00 grep dnsmasq
root@prmx:/etc/pve# systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-02-24 07:31:02 +08; 1 day 2h ago
Main PID: 1508 (dnsmasq)
Tasks: 1 (limit: 62455)
Memory: 1.6M
CPU: 46ms
CGroup: /system.slice/dnsmasq.service
└─1508 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=>
Feb 24 07:31:02 my1prmx systemd[1]: Starting dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server...
Feb 24 07:31:02 my1prmx dnsmasq[1508]: started, version 2.90 cachesize 150
Feb 24 07:31:02 my1prmx dnsmasq[1508]: DNS service limited to local subnets
Feb 24 07:31:02 my1prmx dnsmasq[1508]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth crypt>
Feb 24 07:31:02 my1prmx dnsmasq[1508]: reading /etc/resolv.conf
Feb 24 07:31:02 my1prmx dnsmasq[1508]: using nameserver 10.31.22.102#53
Feb 24 07:31:02 my1prmx dnsmasq[1508]: using nameserver 10.31.16.169#53
Feb 24 07:31:02 my1prmx dnsmasq[1508]: read /etc/hosts - 11 names
Feb 24 07:31:02 my1prmx systemd[1]: Started dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.
systemctl status dnsmasq@<zone>
This is the output. seems like its not running. Do I need to enable it?There should be another dnsmasq running for the zone defined in the SDN, status can be checked bysystemctl status dnsmasq@<zone>
In your case <zone> is most likely Internal.
root@my1prmx:~# systemctl status dnsmasq@internal
○ dnsmasq@internal.service - dnsmasq (internal) - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq@.service; disabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/dnsmasq@.service.d
└─00-dnsmasq-after-networking.conf
Active: inactive (dead)
systemctl --now disable dnsmasq
as it should not be running and restart the dnsmasq@Internal (on each node). Watch out for using capital I in the commands as your zone is Internal not internal.root@my1prmx:~# systemctl --now disable dnsmasq
Synchronizing state of dnsmasq.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable dnsmasq
root@my1prmx:~# systemctl disable dnsmasq
Synchronizing state of dnsmasq.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable dnsmasq
root@my1prmx:~# systemctl status dnsmasq
○ dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; preset: enabled)
Active: inactive (dead)
Feb 26 14:10:26 my1prmx dnsmasq[710356]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset aut>
Feb 26 14:10:26 my1prmx dnsmasq[710356]: reading /etc/resolv.conf
Feb 26 14:10:26 my1prmx dnsmasq[710356]: using nameserver 10.31.22.102#53
Feb 26 14:10:26 my1prmx dnsmasq[710356]: using nameserver 10.31.16.169#53
Feb 26 14:10:26 my1prmx dnsmasq[710356]: read /etc/hosts - 11 names
Feb 26 14:10:26 my1prmx systemd[1]: Started dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.
Feb 26 14:11:17 my1prmx systemd[1]: Stopping dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server...
Feb 26 14:11:17 my1prmx dnsmasq[710356]: exiting on receipt of SIGTERM
Feb 26 14:11:17 my1prmx systemd[1]: dnsmasq.service: Deactivated successfully.
Feb 26 14:11:17 my1prmx systemd[1]: Stopped dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.
root@my1prmx:~# systemctl status dnsmasq@Internal
× dnsmasq@Internal.service - dnsmasq (Internal) - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq@.service; enabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/dnsmasq@.service.d
└─00-dnsmasq-after-networking.conf
Active: failed (Result: exit-code) since Tue 2025-02-25 14:05:09 +08; 24h ago
CPU: 23ms
Feb 25 14:05:09 my1prmx systemd[1]: dnsmasq@Internal.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Feb 25 14:05:09 my1prmx systemd[1]: dnsmasq@Internal.service: Failed with result 'exit-code'.
Feb 25 14:05:09 my1prmx systemd[1]: Failed to start dnsmasq@Internal.service - dnsmasq (Internal) - A lightweight DHCP and caching DNS server.
Feb 25 14:05:53 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Feb 25 14:05:58 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Feb 26 11:07:26 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Feb 26 11:07:48 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Feb 26 11:10:40 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Feb 26 11:11:05 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Feb 26 11:11:16 my1prmx systemd[1]: dnsmasq@Internal.service: Unit cannot be reloaded because it is inactive.
Sorry, after I run it again and restart the dnsmasq@Internal now the service is running. I forgot to restart it just nowPlease disable the default dnsmasq service on the node (better on all nodes):systemctl --now disable dnsmasq
as it should not be running and restart the dnsmasq@Internal (on each node). Watch out for using capital I in the commands as your zone is Internal not internal.
We use essential cookies to make this site work, and optional cookies to enhance your experience.