virtiofs in NixOS
virtiofs in NixOS
The current way I have landed on to run my NixOS environments is using VM’s on a Proxmox host. One thing that I have not been happy about in this setup is all data is on virtual disks that need to be partitioned, but I recently discovered the Proxmox now supports virtiofs!
Proxmox Virtual Environment
So now I can create a ZFS dataset zfs create tank/mydataset
, add it as a Directory Mapping in the PVE Datacenter object pvesh create /cluster/mapping/dir --id mymapping --map node=node1,path=/tank/mydataset
and add it as a virtiofs device in the hardware of the VM qm set 100 -virtiofs0 dirid=mymapping
.
That’s it from PVE’s side.