Hi!
When I I used
sudo lxd init
and put all the things as default I get
failed to mount /org/freedesktop/UDisks2/block_devices/loop0: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
Hi!
When I I used
sudo lxd init
and put all the things as default I get
failed to mount /org/freedesktop/UDisks2/block_devices/loop0: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
Would you like a YAML “lxd init” preseed to be printed? (yes/no) [default=no]: yes
config: {}
networks:
failed to mount /org/freedesktop/UDisks2/block_devices/loop0: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
When I print the preseed it looks like this.
As far as I know, In general it is recommended to run lxd init
as root.
When everything is setup, you can run lxc commands as a normal user (assuming that you added the user to the lxd group).
Hi!
I tried to run it with sudo and without. But both time same error.
My user also belongs to the lxd group.
So to clarify, you ran lxd init
as root?
The error:
failed to mount /org/freedesktop/UDisks2/block_devices/loop0: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
looks like a permission problem.
Could be related to both dbus and udisks.
Hi!
Thanks for giving tips on what more info I should give.
Linux archlinux 5.6.15-arch1-1 #1 SMP PREEMPT Wed, 27 May 2020 23:42:26 +0000 x86_64 GNU/Linux
SSD hard drive and using ext4
/etc/subuid and /etc/subgid contains
root:100000:65536
penguin:100000:65536
Also
/etc/lxc/default.conf
lxc.net.0.type = empty
lxc.idmap = u 0 100000 65536
lxc.idmap = g 0 100000 65536
Just found this:
https://wiki.archlinux.org/index.php/Udisks#Configuration
You might try the solutions stated there.
Also what does id username
tell?
uid=1000(penguin) gid=985(users) groups=985(users),998(wheel),973(docker),968(lxd),966(libvirt)
Thanks I’ll try to try soltuions from the link
Altho I solved this by disabling udiskie my lxd behaves very strangely. So I guess opening another thread is better.
Thanks for the help!