" sudo lxd init" cant go throught. Having some authorization error

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:

  • config:
    ipv4.address: auto
    ipv6.address: auto
    description: “”
    name: lxdbr0
    type: “”
    storage_pools:
  • config:
    size: 100GB
    description: “”
    name: default
    driver: btrfs
    profiles:
  • config: {}
    description: “”
    devices:
    eth0:
    name: eth0
    network: lxdbr0
    type: nic
    root:
    path: /
    pool: default
    type: disk
    name: default
    cluster: null

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.

  1. So to clarify, you ran lxd init as root?

  2. 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.

  1. I think I can’t help you.
    But in preparation for others to help you:
    Post some more details:
  • What Operating System are you using?
  • What Kernel?
  • Display manager?
  • Harddrives and filesystems?
    etc.

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!