Mounting offline VM on host with zfs storage?

Hello, I got stuck on probably simple issue: How to mount disk of an offline VM represented by image in zfs/INCUS/virtual-machines/ubuntu-vm.block filesystem? Normally I would use for example qemu-nbd, but how to access this zfs filesystem with this tool?

1 Like

zfs set volmode=full zfs/INCUS/virtual-machines/ubuntu-vm.block should cause entries to show up in /dev/zvol which you can then mount.

2 Likes
zfs set volmode=full zfs/INCUS/virtual-machines/ubuntu-vm.block
mount /dev/zvol/zfs/INCUS/virtual-machines/ubuntu-vm.block-part2 /mnt

fantastic, thank you, @stgraber