zfsutils-linux fails to install in lxc ubuntu 20.04 guest container

Bug #1982994 reported by Peter Goodall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

I wasn't allowed to enter 'zfsutils-linux' as the package name in this bug report because" '"zfsutils-linux" does not exist in Ubuntu. Please choose a different package. If you're unsure, please select "I don't know"'

yet here it is: https://packages.ubuntu.com/focal/amd64/zfsutils-linux

Here is the transcript of the failure:

sudo apt install zfsutils-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed
Suggested packages:
  nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
The following NEW packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,523 kB of archives.
After this operation, 5,407 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnvpair1linux amd64 0.8.3-1ubuntu12.14 [48.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libuutil1linux amd64 0.8.3-1ubuntu12.14 [41.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libzfs2linux amd64 0.8.3-1ubuntu12.14 [207 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libzpool2linux amd64 0.8.3-1ubuntu12.14 [812 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zfsutils-linux amd64 0.8.3-1ubuntu12.14 [355 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zfs-zed amd64 0.8.3-1ubuntu12.14 [59.7 kB]
Fetched 1,523 kB in 3s (490 kB/s)
Selecting previously unselected package libnvpair1linux.
(Reading database ... 40830 files and directories currently installed.)
Preparing to unpack .../0-libnvpair1linux_0.8.3-1ubuntu12.14_amd64.deb ...
Unpacking libnvpair1linux (0.8.3-1ubuntu12.14) ...
Selecting previously unselected package libuutil1linux.
Preparing to unpack .../1-libuutil1linux_0.8.3-1ubuntu12.14_amd64.deb ...
Unpacking libuutil1linux (0.8.3-1ubuntu12.14) ...
Selecting previously unselected package libzfs2linux.
Preparing to unpack .../2-libzfs2linux_0.8.3-1ubuntu12.14_amd64.deb ...
Unpacking libzfs2linux (0.8.3-1ubuntu12.14) ...
Selecting previously unselected package libzpool2linux.
Preparing to unpack .../3-libzpool2linux_0.8.3-1ubuntu12.14_amd64.deb ...
Unpacking libzpool2linux (0.8.3-1ubuntu12.14) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../4-zfsutils-linux_0.8.3-1ubuntu12.14_amd64.deb ...
Unpacking zfsutils-linux (0.8.3-1ubuntu12.14) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../5-zfs-zed_0.8.3-1ubuntu12.14_amd64.deb ...
Unpacking zfs-zed (0.8.3-1ubuntu12.14) ...
Setting up libuutil1linux (0.8.3-1ubuntu12.14) ...
Setting up libnvpair1linux (0.8.3-1ubuntu12.14) ...
Setting up libzfs2linux (0.8.3-1ubuntu12.14) ...
Setting up libzpool2linux (0.8.3-1ubuntu12.14) ...
Setting up zfsutils-linux (0.8.3-1ubuntu12.14) ...
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.15.0-41-generic
Created symlink /etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service → /lib/systemd/system/zfs-import-cache.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service → /lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-share.service → /lib/systemd/system/zfs-share.service.
Created symlink /etc/systemd/system/zfs-volumes.target.wants/zfs-volume-wait.service → /lib/systemd/system/zfs-volume-wait.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-volumes.target → /lib/systemd/system/zfs-volumes.target.
Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target → /lib/systemd/system/zfs.target.
zfs-import-scan.service is a disabled or a static unit, not starting it.
zfs-import-scan.service is a disabled or a static unit, not starting it.
Job for zfs-mount.service failed because the control process exited with error code.
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
     Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2022-07-28 13:26:08 AEST; 7ms ago
       Docs: man:zfs(8)
    Process: 1116 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
   Main PID: 1116 (code=exited, status=1/FAILURE)

Jul 28 13:26:08 zfs-replicate-t1 systemd[1]: Starting Mount ZFS filesystems...
Jul 28 13:26:08 zfs-replicate-t1 zfs[1116]: /dev/zfs and /proc/self/mounts are required.
Jul 28 13:26:08 zfs-replicate-t1 zfs[1116]: Try running 'udevadm trigger' and 'mount -t proc proc /proc' as root.
Jul 28 13:26:08 zfs-replicate-t1 systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 13:26:08 zfs-replicate-t1 systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
Jul 28 13:26:08 zfs-replicate-t1 systemd[1]: Failed to start Mount ZFS filesystems.
dpkg: error processing package zfsutils-linux (--configure):
 installed zfsutils-linux package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of zfs-zed:
 zfs-zed depends on zfsutils-linux (>= 0.8.3-1ubuntu12.14); however:
  Package zfsutils-linux is not configured yet.

dpkg: error processing package zfs-zed (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (245.4-4ubuntu3.17) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 zfsutils-linux
 zfs-zed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tags: bot-comment
Revision history for this message
Peter Goodall (pjgoodall) wrote :

Host system:

> lxc --version
5.4

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

Guest system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

Revision history for this message
Peter Goodall (pjgoodall) wrote :
Download full text (4.6 KiB)

With ubuntu 22.04 guest, the install completes configuration, I am not sure of its integrity though...

lxc exec $c1 -- su --login ubuntu
ubuntu@zfs-replicate-t1:~$ which zfs
ubuntu@zfs-replicate-t1:~$ sudo aptitude install zfsutils-linux
The following NEW packages will be installed:
  libnvpair3linux{a} libuutil3linux{a} libzfs4linux{a} libzpool5linux{a} zfs-zed{a} zfsutils-linux
0 packages upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,261 kB of archives. After unpacking 7,093 kB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnvpair3linux amd64 2.1.4-0ubuntu0.1 [54.4 kB]
Get: 2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libuutil3linux amd64 2.1.4-0ubuntu0.1 [48.0 kB]
Get: 3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libzfs4linux amd64 2.1.4-0ubuntu0.1 [232 kB]
Get: 4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libzpool5linux amd64 2.1.4-0ubuntu0.1 [1,359 kB]
Get: 5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 zfsutils-linux amd64 2.1.4-0ubuntu0.1 [501 kB]
Get: 6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 zfs-zed amd64 2.1.4-0ubuntu0.1 [66.6 kB]
Fetched 2,261 kB in 5s (416 kB/s)
Selecting previously unselected package libnvpair3linux.
(Reading database ... 43422 files and directories currently installed.)
Preparing to unpack .../0-libnvpair3linux_2.1.4-0ubuntu0.1_amd64.deb ...
Unpacking libnvpair3linux (2.1.4-0ubuntu0.1) ...
Selecting previously unselected package libuutil3linux.
Preparing to unpack .../1-libuutil3linux_2.1.4-0ubuntu0.1_amd64.deb ...
Unpacking libuutil3linux (2.1.4-0ubuntu0.1) ...
Selecting previously unselected package libzfs4linux.
Preparing to unpack .../2-libzfs4linux_2.1.4-0ubuntu0.1_amd64.deb ...
Unpacking libzfs4linux (2.1.4-0ubuntu0.1) ...
Selecting previously unselected package libzpool5linux.
Preparing to unpack .../3-libzpool5linux_2.1.4-0ubuntu0.1_amd64.deb ...
Unpacking libzpool5linux (2.1.4-0ubuntu0.1) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../4-zfsutils-linux_2.1.4-0ubuntu0.1_amd64.deb ...
Unpacking zfsutils-linux (2.1.4-0ubuntu0.1) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../5-zfs-zed_2.1.4-0ubuntu0.1_amd64.deb ...
Unpacking zfs-zed (2.1.4-0ubuntu0.1) ...
Setting up libnvpair3linux (2.1.4-0ubuntu0.1) ...
Setting up libuutil3linux (2.1.4-0ubuntu0.1) ...
Setting up libzfs4linux (2.1.4-0ubuntu0.1) ...
Setting up libzpool5linux (2.1.4-0ubuntu0.1) ...
Setting up zfsutils-linux (2.1.4-0ubuntu0.1) ...
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.15.0-41-generic
Created symlink /etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service → /lib/systemd/system/zfs-import-cache.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
C...

Read more...

Revision history for this message
Peter Goodall (pjgoodall) wrote :

This may be a container namespacing problem. I cant find any current reference to this problem using google. I'm just trying to doa zfs tutorial. am not sure if this is relevant:
https://github.com/lxc/lxd/issues/4184

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1982994/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Peter Goodall (pjgoodall) wrote : Re: [Bug 1982994] Re: zfsutils-linux fails to install in lxc ubuntu 20.04 guest container
Download full text (8.2 KiB)

Not-bot-comment
I could not report the actual package. Please get a human to read this.

On Thu, 28 Jul 2022 at 14:30, Ubuntu Foundations Team Bug Bot <
<email address hidden>> wrote:

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. It seems that your bug report is not filed about a
> specific source package though, rather it is just filed against Ubuntu
> in general. It is important that bug reports be filed about source
> packages so that people interested in the package can find the bugs
> about it. You can find some hints about determining what package your
> bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage.
> You might also ask for help in the #ubuntu-bugs irc channel on
> Libera.chat.
>
> To change the source package that this bug is filed about visit
> https://bugs.launchpad.net/ubuntu/+bug/1982994/+editstatus and add the
> package name in the text box next to the word Package.
>
> [This is an automated message. I apologize if it reached you
> inappropriately; please just reply to this message indicating so.]
>
> ** Tags added: bot-comment
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1982994
>
> Title:
> zfsutils-linux fails to install in lxc ubuntu 20.04 guest container
>
> Status in Ubuntu:
> New
>
> Bug description:
> I wasn't allowed to enter 'zfsutils-linux' as the package name in this
> bug report because" '"zfsutils-linux" does not exist in Ubuntu. Please
> choose a different package. If you're unsure, please select "I don't
> know"'
>
> yet here it is: https://packages.ubuntu.com/focal/amd64/zfsutils-linux
>
> Here is the transcript of the failure:
>
> sudo apt install zfsutils-linux
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following additional packages will be installed:
> libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed
> Suggested packages:
> nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
> The following NEW packages will be installed:
> libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed
> zfsutils-linux
> 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
> Need to get 1,523 kB of archives.
> After this operation, 5,407 kB of additional disk space will be used.
> Do you want to continue? [Y/n]
> Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
> libnvpair1linux amd64 0.8.3-1ubuntu12.14 [48.2 kB]
> Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
> libuutil1linux amd64 0.8.3-1ubuntu12.14 [41.6 kB]
> Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
> libzfs2linux amd64 0.8.3-1ubuntu12.14 [207 kB]
> Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
> libzpool2linux amd64 0.8.3-1ubuntu12.14 [812 kB]
> Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
> zfsutils-linux amd64 0.8.3-1ubuntu12.14 [355 kB]
> Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zfs-zed
> amd64 0.8.3-1ubuntu12.14 [59.7 kB]
> Fetched 1,523 kB i...

Read more...

affects: ubuntu → zfs-linux (Ubuntu)
Revision history for this message
Peter Goodall (pjgoodall) wrote (last edit ):

Apparently zfs will not run in an lxc/lxd container because of kernel restrictions. See solution in https://discuss.linuxcontainers.org/t/can-i-install-zfs-in-ubuntu-20-04-or-22-04-containers/14725/4

I suggest that the zfsutils / zfs-linux package should give an incompatibility warning when an installation is attempted within an lxc container.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.