Skip to content

Virtiofs role#

Setup the virtiofs daemon and directory mappings.

This is normally used on hosts.

Virtiofs enables QEMU VMs directly access folders on the host system in an efficient manner. It is supported by Proxmox since 8.4

In proxmox it means we can use ZFS datasets directly in the VM instead of only ZFS volumes (which are opaque).

Defaults#

---
# directory mappings
virtiofs__dir_mappings: []
# a list of dict with proxmox_resource_mapping args, but type (which is always 'dir')
# - id: "my-dir-id"
#   map:
#      - node: node1
#        path: /path/to/folder1
#      - node: node2
#        path: /path/to/folder2
#   description: "my dir description"
#   state: present
# ]