[Solved] Dynamic disk on ZFS pool

Znuf

Member
Mar 29, 2021
26
1
8
38
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!