LXD won't start due to mounting permission issue

$ sudo snap logs lxd
2026-06-27T20:02:40Z lxd.activate[1269575]: cannot perform operation: mount --make-slave /tmp/snap.rootfs_u4zWzC/etc/ld.so.cache: Permission denied
2026-06-27T20:02:40Z systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
2026-06-27T20:02:40Z systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
2026-06-27T20:02:40Z systemd[1]: Failed to start snap.lxd.activate.service - Service for snap application lxd.activate.
2026-06-27T20:02:43Z systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
2026-06-27T20:02:43Z lxd.activate[1269898]: cannot preserve mount namespace of process 1269882 as lxd.mnt: Permission denied
2026-06-27T20:02:43Z lxd.activate[1269882]: unexpected eof from helper process
2026-06-27T20:02:43Z systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
2026-06-27T20:02:43Z systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
2026-06-27T20:02:43Z systemd[1]: Failed to start snap.lxd.activate.service - Service for snap application lxd.activate.
$ snap info lxd | grep -ie "installed: " -e "tracking: "
tracking:     latest/stable
installed:          6.9-a34e1d7               (39858)  128MB -

$ snap --version
snap          2.75.2+ubuntu24.04
snapd         2.75.2+ubuntu24.04
series        16
ubuntu        24.04
kernel        6.17.0-35-generic
architecture  amd64

Dunno what else to tell

Edit: reverting to 6.8 fixed it

$ snap info lxd | grep -ie "installed: " -e "tracking: "
tracking:     latest/stable
installed:          6.8-5a1a287               (39313)  121MB -
$ sudo snap changes | tail -15

sudo systemctl stop snap.lxd.activate.service snap.lxd.daemon.service
sudo systemctl restart snapd
sleep 3
sudo systemctl start snap.lxd.activate.service
sudo systemctl status snap.lxd.activate.service --no-pager -l
sudo journalctl -u snap.lxd.activate.service -n 30 --no-pager
ID   Status  Spawn               Ready               Summary
641  Done    today at 21:44 UTC  today at 21:44 UTC  Running service command
642  Done    today at 21:46 UTC  today at 21:46 UTC  Running service command
643  Done    today at 21:47 UTC  today at 21:47 UTC  Running service command
644  Done    today at 21:49 UTC  today at 21:49 UTC  Revert "lxd" snap

○ snap.lxd.activate.service - Service for snap application lxd.activate
     Loaded: loaded (/etc/systemd/system/snap.lxd.activate.service; disabled; preset: enabled)
     Active: inactive (dead)

Jul 01 22:03:51 skarletsky systemd[1]: snap.lxd.activate.service: Consumed 1.061s CPU time.
Jul 01 22:08:02 skarletsky systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: => Starting LXD activation
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ==> Loading snap configuration
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ==> Setting LXD user socket ownership
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ==> Checking if LXD needs to be activated
Jul 01 22:08:02 skarletsky lxd.activate[1472726]: Error: Get "http://unix.socket/": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ====> Activation check failed, forcing activation
Jul 01 22:08:02 skarletsky systemd[1]: snap.lxd.activate.service: Deactivated successfully.
Jul 01 22:08:02 skarletsky systemd[1]: Finished snap.lxd.activate.service - Service for snap application lxd.activate.
Jun 27 20:02:40 skarletsky lxd.activate[1269575]: cannot perform operation: mount --make-slave /tmp/snap.rootfs_u4zWzC/etc/ld.so.cache: Permission denied
Jun 27 20:02:40 skarletsky systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Jun 27 20:02:40 skarletsky systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Jun 27 20:02:40 skarletsky systemd[1]: Failed to start snap.lxd.activate.service - Service for snap application lxd.activate.
Jun 27 20:02:43 skarletsky systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
Jun 27 20:02:43 skarletsky lxd.activate[1269898]: cannot preserve mount namespace of process 1269882 as lxd.mnt: Permission denied
Jun 27 20:02:43 skarletsky lxd.activate[1269882]: unexpected eof from helper process
Jun 27 20:02:43 skarletsky systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Jun 27 20:02:43 skarletsky systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Jun 27 20:02:43 skarletsky systemd[1]: Failed to start snap.lxd.activate.service - Service for snap application lxd.activate.
-- Boot 5bdb2170409343938cd4d04c79af2b16 --
Jul 01 22:03:50 skarletsky systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
Jul 01 22:03:50 skarletsky lxd.activate[1467378]: => Starting LXD activation
Jul 01 22:03:50 skarletsky lxd.activate[1467378]: ==> Loading snap configuration
Jul 01 22:03:50 skarletsky lxd.activate[1467378]: ==> Setting LXD socket ownership
Jul 01 22:03:50 skarletsky lxd.activate[1467378]: ==> Setting LXD user socket ownership
Jul 01 22:03:50 skarletsky lxd.activate[1467378]: ==> Checking if LXD needs to be activated
Jul 01 22:03:51 skarletsky lxd.activate[1467422]: Error: Get "http://unix.socket/": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused
Jul 01 22:03:51 skarletsky lxd.activate[1467378]: ====> Activation check failed, forcing activation
Jul 01 22:03:51 skarletsky systemd[1]: snap.lxd.activate.service: Deactivated successfully.
Jul 01 22:03:51 skarletsky systemd[1]: Finished snap.lxd.activate.service - Service for snap application lxd.activate.
Jul 01 22:03:51 skarletsky systemd[1]: snap.lxd.activate.service: Consumed 1.061s CPU time.
Jul 01 22:08:02 skarletsky systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: => Starting LXD activation
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ==> Loading snap configuration
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ==> Setting LXD user socket ownership
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ==> Checking if LXD needs to be activated
Jul 01 22:08:02 skarletsky lxd.activate[1472726]: Error: Get "http://unix.socket/": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory
Jul 01 22:08:02 skarletsky lxd.activate[1472685]: ====> Activation check failed, forcing activation
Jul 01 22:08:02 skarletsky systemd[1]: snap.lxd.activate.service: Deactivated successfully.
Jul 01 22:08:02 skarletsky systemd[1]: Finished snap.lxd.activate.service - Service for snap application lxd.activate.

$ sudo snap refresh lxd
2026-07-01T22:08:46Z INFO Waiting for "snap.lxd.daemon.service" to stop.
error: cannot perform the following tasks:
- Run configure hook of "lxd" snap if present (run hook "configure": cannot perform operation: mount --make-slave /tmp/snap.rootfs_UyAXFd/etc/ld.so.cache: Permission denied)

Edit 2: refreshing to 6.9, then doing this:

sudo systemctl stop snap.lxd.activate.service snap.lxd.daemon.service
sudo systemctl restart snapd
sleep 3
sudo systemctl start snap.lxd.activate.service

lets it start up for some reason

1 Like

Sorry to hear you are having trouble starting LXD @YamiYukiSenpai , but glad to hear restarting snapd fixed it.

May I ask what host OS version are you using?

Did you see any errors from apparmor perhaps?

sudo dmesg | grep -i apparmor

Not that I noticed

Jun 27 20:02:37 skarletsky systemd[1]: Stopped snap.lxd.daemon.service - Service for snap application lxd.daemon.
Jun 27 20:02:38 skarletsky systemd[1]: run-snapd-ns-lxd.mnt.mount: Deactivated successfully.
Jun 27 20:02:38 skarletsky snapd[1892]: services.go:1143: RemoveSnapServices - socket snap.lxd.daemon.unix.socket
Jun 27 20:02:38 skarletsky snapd[1892]: services.go:1167: RemoveSnapServices - disabling snap.lxd.daemon.service
Jun 27 20:02:38 skarletsky snapd[1892]: services.go:1143: RemoveSnapServices - socket snap.lxd.user-daemon.unix.socket
Jun 27 20:02:38 skarletsky snapd[1892]: services.go:1167: RemoveSnapServices - disabling snap.lxd.user-daemon.service
Jun 27 20:02:38 skarletsky snapd[1892]: services.go:1167: RemoveSnapServices - disabling snap.lxd.activate.service
Jun 27 20:02:38 skarletsky systemd[1]: Reloading requested from client PID 1269350 ('systemctl') (unit snapd.service)...
Jun 27 20:02:38 skarletsky systemd[1]: Reloading...
Jun 27 20:02:38 skarletsky systemd[1]: Reloading finished in 313 ms.
Jun 27 20:02:39 skarletsky snapd[1892]: backend.go:285: reloading profiles of snap-confine provided by the system snap
Jun 27 20:02:39 skarletsky systemd[1]: Reloading requested from client PID 1269442 ('systemctl') (unit snapd.service)...
Jun 27 20:02:39 skarletsky systemd[1]: Reloading...
Jun 27 20:02:39 skarletsky systemd[1]: Reloading finished in 316 ms.
Jun 27 20:02:40 skarletsky systemd[1]: Reloading requested from client PID 1269505 ('systemctl') (unit snapd.service)...
Jun 27 20:02:40 skarletsky systemd[1]: Reloading...
Jun 27 20:02:40 skarletsky systemd[1]: Reloading finished in 317 ms.
Jun 27 20:02:40 skarletsky systemd[1]: Listening on snap.lxd.daemon.unix.socket - Socket unix for snap application lxd.daemon.
Jun 27 20:02:40 skarletsky systemd[1]: Listening on snap.lxd.user-daemon.unix.socket - Socket unix for snap application lxd.user-daemon.
Jun 27 20:02:40 skarletsky systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
Jun 27 20:02:40 skarletsky lxd.activate[1269575]: cannot perform operation: mount --make-slave /tmp/snap.rootfs_u4zWzC/etc/ld.so.cache: Permission denied
Jun 27 20:02:40 skarletsky systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Jun 27 20:02:40 skarletsky systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Jun 27 20:02:40 skarletsky systemd[1]: Failed to start snap.lxd.activate.service - Service for snap application lxd.activate.
Jun 27 20:02:40 skarletsky systemd[1]: snap.lxd.user-daemon.unix.socket: Deactivated successfully.
Jun 27 20:02:40 skarletsky systemd[1]: Closed snap.lxd.user-daemon.unix.socket - Socket unix for snap application lxd.user-daemon.
Jun 27 20:02:40 skarletsky systemd[1]: snap.lxd.daemon.unix.socket: Deactivated successfully.
Jun 27 20:02:40 skarletsky systemd[1]: Closed snap.lxd.daemon.unix.socket - Socket unix for snap application lxd.daemon.
Jun 27 20:02:40 skarletsky systemd[1]: Reloading requested from client PID 1269603 ('systemctl') (unit snapd.service)...
Jun 27 20:02:40 skarletsky systemd[1]: Reloading...
Jun 27 20:02:41 skarletsky systemd[1]: Reloading finished in 324 ms.
Jun 27 20:02:41 skarletsky snapd[1892]: taskrunner.go:304: Change 633 task (Start snap "lxd" (39858) services) failed: systemctl command [start snap.lxd.activate.service] failed with exit status 1: stderr:
Jun 27 20:02:41 skarletsky snapd[1892]: Job for snap.lxd.activate.service failed because the control process exited with error code.
Jun 27 20:02:41 skarletsky snapd[1892]: See "systemctl status snap.lxd.activate.service" and "journalctl -xeu snap.lxd.activate.service" for details.
Jun 27 20:02:41 skarletsky snapd[1892]: services.go:1167: RemoveSnapServices - disabling snap.lxd.activate.service
Jun 27 20:02:41 skarletsky snapd[1892]: services.go:1143: RemoveSnapServices - socket snap.lxd.daemon.unix.socket
Jun 27 20:02:41 skarletsky snapd[1892]: services.go:1167: RemoveSnapServices - disabling snap.lxd.daemon.service
Jun 27 20:02:41 skarletsky snapd[1892]: services.go:1143: RemoveSnapServices - socket snap.lxd.user-daemon.unix.socket
Jun 27 20:02:41 skarletsky snapd[1892]: services.go:1167: RemoveSnapServices - disabling snap.lxd.user-daemon.service
Jun 27 20:02:41 skarletsky systemd[1]: Reloading requested from client PID 1269667 ('systemctl') (unit snapd.service)...
Jun 27 20:02:41 skarletsky systemd[1]: Reloading...
Jun 27 20:02:41 skarletsky systemd[1]: Reloading finished in 316 ms.
Jun 27 20:02:42 skarletsky snapd[1892]: backend.go:285: reloading profiles of snap-confine provided by the system snap
Jun 27 20:02:42 skarletsky kernel: kauditd_printk_skb: 120 callbacks suppressed
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.018:3413438): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/snapd/26865/usr/lib/snapd/snap-co>
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.040:3413439): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.lxd" pid=1269733 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.138:3413440): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.connect-plug-ovn-certificates" pid=1269740 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.143:3413441): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.connect-plug-ovn-chassis" pid=1269741 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.198:3413442): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.install" pid=1269747 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.213:3413443): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.connect-plug-ceph-conf" pid=1269739 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.217:3413444): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.disconnect-plug-ovn-chassis" pid=1269745 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.220:3413445): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.disconnect-plug-ceph-conf" pid=1269743 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.221:3413446): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.buginfo" pid=1269735 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky kernel: audit: type=1400 audit(1782590562.231:3413447): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.lxd.hook.disconnect-plug-qemu-external" pid=1269746 comm="apparmor_parser"
Jun 27 20:02:42 skarletsky systemd[1]: Reloading requested from client PID 1269753 ('systemctl') (unit snapd.service)...
Jun 27 20:02:42 skarletsky systemd[1]: Reloading...
Jun 27 20:02:42 skarletsky systemd[1]: Reloading finished in 321 ms.
Jun 27 20:02:43 skarletsky systemd[1]: Reloading requested from client PID 1269816 ('systemctl') (unit snapd.service)...
Jun 27 20:02:43 skarletsky systemd[1]: Reloading...
Jun 27 20:02:43 skarletsky systemd[1]: Reloading finished in 316 ms.
Jun 27 20:02:43 skarletsky systemd[1]: Listening on snap.lxd.daemon.unix.socket - Socket unix for snap application lxd.daemon.
Jun 27 20:02:43 skarletsky systemd[1]: Starting fwupd-refresh.service - Refresh fwupd metadata and update motd...
Jun 27 20:02:43 skarletsky systemd[1]: Listening on snap.lxd.user-daemon.unix.socket - Socket unix for snap application lxd.user-daemon.
Jun 27 20:02:43 skarletsky systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
Jun 27 20:02:43 skarletsky systemd[1]: fwupd-refresh.service: Deactivated successfully.
Jun 27 20:02:43 skarletsky systemd[1]: Finished fwupd-refresh.service - Refresh fwupd metadata and update motd.
Jun 27 20:02:43 skarletsky systemd[1]: tmp-snap.rootfs_P22xGL.mount: Deactivated successfully.
Jun 27 20:02:43 skarletsky lxd.activate[1269898]: cannot preserve mount namespace of process 1269882 as lxd.mnt: Permission denied
Jun 27 20:02:43 skarletsky lxd.activate[1269882]: unexpected eof from helper process
Jun 27 20:02:43 skarletsky systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Jun 27 20:02:43 skarletsky systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Jun 27 20:02:43 skarletsky systemd[1]: Failed to start snap.lxd.activate.service - Service for snap application lxd.activate.
Jun 27 20:02:43 skarletsky systemd[1]: snap.lxd.user-daemon.unix.socket: Deactivated successfully.
Jun 27 20:02:43 skarletsky systemd[1]: Closed snap.lxd.user-daemon.unix.socket - Socket unix for snap application lxd.user-daemon.
Jun 27 20:02:43 skarletsky systemd[1]: snap.lxd.daemon.unix.socket: Deactivated successfully.
Jun 27 20:02:43 skarletsky systemd[1]: Closed snap.lxd.daemon.unix.socket - Socket unix for snap application lxd.daemon.
Jun 27 20:02:43 skarletsky systemd[1]: Reloading requested from client PID 1269924 ('systemctl') (unit snapd.service)...
Jun 27 20:02:43 skarletsky systemd[1]: Reloading...
Jun 27 20:02:44 skarletsky systemd[1]: Reloading finished in 322 ms.
Jun 27 20:02:44 skarletsky snapd[1892]: taskrunner.go:304: Change 633 task (Stop snap "lxd" services) failed: systemctl command [start snap.lxd.activate.service] failed with exit status 1: stderr:
Jun 27 20:02:44 skarletsky snapd[1892]: Job for snap.lxd.activate.service failed because the control process exited with error code.
Jun 27 20:02:44 skarletsky snapd[1892]: See "systemctl status snap.lxd.activate.service" and "journalctl -xeu snap.lxd.activate.service" for details.
Jun 27 20:02:44 skarletsky systemd[1]: snap-lxd-39858.mount: Deactivated successfully.
Jun 27 20:02:44 skarletsky systemd[1]: Reloading requested from client PID 1269998 ('systemctl') (unit snapd.service)...
Jun 27 20:02:44 skarletsky systemd[1]: Reloading...
Jun 27 20:02:44 skarletsky systemd[1]: Reloading finished in 306 ms.
Jun 27 20:02:45 skarletsky snapd[1892]: autorefresh.go:1017: snap "lxd" auto-refresh to revision 39858 has failed, next auto-refresh attempt will be delayed by 8 hours
Jun 27 20:02:48 skarletsky kernel: kauditd_printk_skb: 111 callbacks suppressed
Jun 27 20:02:48 skarletsky kernel: audit: type=1400 audit(1782590568.792:3413559): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/26528/smaps_rollup" pid=26528 comm="admin" requested_mask="r

Ubuntu Server 24.04

I’m not sure if there’s correlation, but I can’t run nvtop right now, and its also related to mounting namespace.

Created a bug report for snapd, but not sure if its something else