Public bug reported: How to replicate:
1. Install libvirt, libvirt-daemon-driver-storage-zfs and virt-manager 2. Create a zfs pool # zpool create -oashift=12 zfs /dev/sdb # zfs set compression=lz4 zfs # zfs create zfs/images # virsh pool-define-as --name zfs --source-name zfs/images --type zfs 3. Create a volume in that pool root@beaver:~# virsh vol-create-as --pool zfs --name vol1 --capacity 1G Vol vol1 created root@beaver:~# virsh vol-list --pool zfs Name Path ------------------------------------------------------------------------------ vol1 /dev/zvol/zfs/images/vol1 4. Start virt-manager (even as a non-root user) 5. Immediately re-list the volumes from virsh: root@beaver:~# virsh vol-list --pool zfs Name Path ------------------------------------------------------------------------------ root@beaver:~# All zfs volumes have been forgotten!! Fortunately they still exist in zfs: root@beaver:~# zfs list NAME USED AVAIL REFER MOUNTPOINT zfs 1.03G 8.59G 96K /zfs zfs/images 1.03G 8.59G 96K /zfs/images zfs/images/vol1 1.03G 9.63G 56K - I think virt-manager is supposed to play nicely with zfs: * You can create a zfs pool successfully in the GUI * You can click to create a zfs volume. It actually creates the underlying zvol (as shown by "zfs list") * But every time you do any action in virt-manager, even just clicking the Refresh button on the list of volumes, all volumes disappear from libvirt. root@beaver:~# virsh vol-list --pool zfs Name Path ------------------------------------------------------------------------------ vol1 /dev/zvol/zfs/images/vol1 root@beaver:~# <<< click the Refresh button >>> root@beaver:~# virsh vol-list --pool zfs Name Path ------------------------------------------------------------------------------ root@beaver:~# ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: virt-manager 1:1.5.1-0ubuntu1 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 Uname: Linux 4.15.0-20-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 Date: Mon Apr 30 10:24:19 2018 PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: virt-manager UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: virt-manager (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic uec-images -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1767997 Title: virt-manager destroys all volumes in libvirt zfs pool To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/1767997/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs