Mounting custom storage volume into VM: virtiofs error

Hi all,

I’ve been using a custom storage volume located on a zfs-backed storage pool as a shared mount on several containers for a while with no issues.

From the docs, it also appears that one should be able to share a custom storage volume with virtual machines. However, I’m getting an odd virtiofsd error when trying to do so.

Steps:

incus create images:debian/trixie debiantest --vm
incus storage volume attach nvme custom/vmvol debiantest /mnt/vmvol
incus start debiantest

This throws:

Error: Failed to start device "custom/vmvol": Failed to setup virtiofsd for device "custom/vmvol": open /var/lib/incus/devices/debiantest/virtio-fs.custom: no such file or directory
Try `incus info --show-log debiantest` for more info

Executing that last command yields:

Name: debiantest
Description:
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2025/05/03 15:58 PDT
Last Used: 2025/05/03 16:02 PDT
Error: open /var/log/incus/debiantest/qemu.log: no such file or directory

Both qemu and virtiofsd are installed. The host is running NixOS unstable and runs both containers and VMs fine.

Any ideas what might be going on here? Is mounting custom storage volumes into VMs (rather than containers) supported? Or do only path-based mounts work with VMs / virtiofs / 9p?

Thanks!