The libguestfs-zfs does not add ZFS support at all

Bug #1722800 reported by Miha on 2017-10-11
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libguestfs (Ubuntu)
Undecided
Unassigned

Bug Description

Being on Ubuntu 16.04 I've first installed libguestfs-tool and then libguestfs-zfs. The latter is supposed to bring ZFS filesystem support,
but it doesn't. Here is how I've tested:

```
$ sudo guestfish -N fs:zfs:2GB
libguestfs: error: mkfs: zfs: /dev/sda1: mkfs: failed to execute mkfs.zfs: No such file or directory
guestfish: error creating prepared disk image 'fs:zfs:2GB' on 'test1.img': failed to create filesystem (zfs): mkfs: zfs: /dev/sda1: mkfs: failed to execute mkfs.zfs: No such file or directory
```

I don't think there is much I could do wrong in the process, I'm quite confident it's a bug in the libguestfs-zfs package. I kindly ask for a fix or patch.

PS: Here is the list of packages that I have installed:
```
$ apt list --installed | grep guestfs

libguestfs-dev/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs-gfs2/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs-hfsplus/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed,automatic]
libguestfs-perl/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed,automatic]
libguestfs-reiserfs/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed,automatic]
libguestfs-rescue/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs-rsync/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs-tools/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs-xfs/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs-zfs/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
libguestfs0/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
lua-guestfs/xenial,now 1:1.32.2-4ubuntu2 amd64 [installed]
```

Miha (miha-plesko) on 2017-10-11
description: updated
tags: added: xenial
Richard Jones (rjones-redhat) wrote :

This is (sort of) working as designed, but also an upstream bug. Libguestfs doesn't
have transparent ZFS support upstream, because AFAIK it's not possible to just mount
a ZFS filesystem on a mountpoint.

Upstream, ZFS support currently only applies to virt-rescue. ie. You can use ‘zfs’
commands in the virt-rescue environment, manually.

Richard Jones (rjones-redhat) wrote :

BTW since this is not an Ubuntu bug, but is going to require actual upstream work, it may be better to discuss on the upstream list (https://www.redhat.com/mailman/listinfo/libguestfs). If you wish you can post on the upstream list without needing to subscribe, although your first message will be delayed for a few hours in moderation.

Miha (miha-plesko) wrote :

Thanks Richard, I've sent an email to the mailing list as suggested. Fingers crossed that they'll support it :D

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libguestfs (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers