Lxd on core

I use lxd all the time on my classic Ubuntu 16.04 and 18.04 systems, but I’m having trouble running it on a pure core system. Is it supposed to work on core?

popey@localhost:~$ lxc list
Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied

I used to use it all the time for development, I haven’t in a while though.

Doesn’t work on my core system :(. @stgraber, should it?

@popey don’t you have to create and add yourself to the lxd group? Or do I remember wrong?

Sure, how does one do that on Ubuntu Core, where the file /etc/group is readonly?

Using extrausers. Conveniently, here’s a comment with the right steps, and further down, a comment about the lxd snap needing root unless that group exists.

https://github.com/lxc/lxd-pkg-ubuntu/issues/26#issuecomment-271631274