Zfs vms in dataset

redmop

Well-Known Member
Feb 24, 2015
121
2
58
Is there a way to set up the zfs plugin to store vms under a dataset instead of the root of the pool? This would make scripting snapshots and send/recv much easier.

I other words, instead of
Rpool/vm-100-disk-1
Have
Rpool/pve/images/100/disk-1
Or even
Rpool/pve/images/vm-100-disk-1
 
Oh nice! It would be great if the "add storage" UI would let you pick an existing data set rather than only offering the top level pools to choose from.
 
The next improvement would be to have each VM make its own (sub) data set to hold the disks, like how the directory based storage makes a subdirectory per VM. This would allow for some useful ZFS management.