[Solved] Dynamic disk on ZFS pool

Znuf

Member
Mar 29, 2021
26
1
23
39
Hi everyone,

first, all my wishes for 2022 :D!

I have a problem with the creation of VM. When I want to create a VM, I can't change the disk format, it's grayed on raw disk image.

I'm on zfs pool.

If you have any clue.

Thanks
 
This is because VM disks are not stored as files on ZFS, but a new dataset of the type volume is created for it. It provides a block device directly which can be passed to the VM.

You can see them with zfs list and will see that there is no mountpoint defined, they will not show up in the file system. But they are exposed as /dev/zdX devices with convenience symlinks under /dev/zvol/<pool>/... to identify which dataset is which /dev/zdX device.
 
What do you mean with a "dynamic" disk? If you mean thin provisioning, then you can enable that on the storage layer (Datacenter -> Storage -> <your ZFS storage>)

It will be honored when a new disk image is created and will just omit the reservation for that dataset.