ZFS inside of virtual machine?

Are there any technical reasons why I shouldn't use ZFS file system inside a VM on a hypervisor on top of hardware RAID?

schema.png


If you’ll pass thru your whole HBA or raw disks you should have zero issues. If you’ll try to build zvol around virtual disks it’s not going to work reliably - ZFS just like ReFS etc relies on SCSI flush command to commit metadata updates and virtual disks can’t guarantee underlying software layers would tolerate flush pushed down the storage stack.


ZFS will work just fine in a virtualized environment. The only thing to note is that with a single disk pool, ZFS will not be able to automatically correct any error it found (ie: it will only detect errors without repairing them).