I want the qcow2 images in qemu-kvm in desktop virtual manager to be in a ZFS pool. Currently they are in some directory in /var/etc/libvirt/images. This is in ext4 and will be formatted when I reinstall the operating system. I want the OS to be disposable.
What I did was to create a dataset, then create a volume in virtual manager and select the dataset mountpoint as the directory. It’s one directory for all VMs, so if I need to roll back I have to roll back all of them. This is okay.
Am I doing it correctly?
I noticed virtualization software automatically creates various separate datasets for VMs .