lxd icon indicating copy to clipboard operation
lxd copied to clipboard

doc: non-privileged `lxd init` fails

Open rkratky opened this issue 4 months ago • 1 comments

The doc suggests non-privileged lxd init as a possibility, but it fails because of AppArmor:

$ lxd init
Error: Failed to connect to local LXD: Get "http://unix.socket/1.0": 
       dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied

AppArmor error:

audit: type=1400 audit(1754650901.221:2207): apparmor="DENIED" operation="open" 
       class="file" profile="snap.lxd.lxc" name="/etc/init.d/" pid=1492278 comm="bash"
       requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Document: howto/initialize.md

rkratky avatar Aug 08 '25 12:08 rkratky

Please could you expand the info on your setup ?

tomponline avatar Nov 21 '25 14:11 tomponline