The libguestfs-zfs does not add ZFS support at all
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libguestfs (Ubuntu) |
Confirmed
|
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-
libguestfs-
libguestfs-
libguestfs-
libguestfs-
libguestfs-
libguestfs-
libguestfs-
libguestfs-
libguestfs-
libguestfs0/
lua-guestfs/
```
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.