So this particular “not an error” error is coming from dqlite and has been reported to the dqlite team via @colemiller to investigate.
We’ve not seen this one in our own testing, so seems to be related to support for direct I/O on the hosts root filesystem.
What filesystem are you using for your host?
So far we’ve only seen reports of it occurring on btrfs on the bionic 4.15 kernel. But now we know its affecting bionic hwe 5.4 too.
Ah great good to hear. Keep in mind that channel is frozen so doesn’t get updates. I would recommend looking into switching to a newer Ubuntu version asap.
We are going to work with dqlite team to try and figure out what’s going on here though.
Ah great good to hear. Keep in mind that channel is frozen so doesn’t get updates. I would recommend looking into switching to a newer Ubuntu version asap.
I’ll upgrade to 20.04 LTE as soon as possible. Thanks again
Hopefully LXD fails to start with the same error message, but there should be a lot of lines with LIBDQLITE around it now in the journalctl log – sharing that log should give me more context for what’s going on. Thanks!
# upgrade everything and cleanup before dealing with 3rd party content
sudo apt upgrade --yes
sudo apt autoremove --yes
# add 3rd party PPA for zfstools
sudo add-apt-repository ppa:jonathonf/zfs && \
sudo apt update && \
sudo apt upgrade --yes
# you may get the following message in apt's output:
# the following packages have been kept back:
# zfs-initramfs zfs-zed zfsutils-linux
# if that is the case explicitly update zfsutils-linux by running:
sudo apt install zfs-initramfs zfs-zed zfsutils-linux
Everything build but I got this when starting my vm
So I tried to update-initramfs without any success.
I will start again.
I have the same project with Ubuntu 20.04 and 22.04
@yguerin I’ve never tried with a non-Ubuntu provided ZFS kernel module but the import error you get make it sound as if the pool was created with a newer ZFS version than the one you try to import with.
If you were to use the Ubuntu provided ZFS kernel module, you could get a newer one by using the HWE kernel for 22.04 for example.
$ 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
my system is a fresh installed ubuntu 24.04 desktop
$ snap version
snap 2.62+24.04build1
snapd 2.62+24.04build1
series 16
ubuntu 24.04
kernel 6.8.0-31-generic
$ sudo lxd init
[sudo] password for me:
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]:
Name of the storage backend to use (btrfs, ceph, dir, lvm, powerflex, zfs) [default=zfs]: dir
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: none
Would you like the LXD server to be available over the network? (yes/no) [default=no]: yes
Address to bind LXD to (not including port) [default=all]:
Port to bind LXD to [default=8443]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]: no
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:
But i got new error when run lxc launch ubuntu:22.04
Fixed after plus sudo, it works well.
Sorry i am new to lxd, here is the question, do i need to plus sudo to all lxc command?