The documentation is a little brief on “path on the host” disk types. I’ve been exploring virtiofs for my Linux virtual machines with limited success this last week.
incus config device add <instance_name> <device_name> disk pool=<pool_name> source=<volume_name> [path=<path_in_instance>]
When I attempt to mount <volume_name> in my virtiofs enabled guest, I get this error message that the tag isn’t found:
mount -t virtiofs test /mnt/disk
58.808901] virtio-fs: tag ‹test> not found mount: /mnt/disk: wrong fs type, bad option, bad super block on test, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
I see virtiofsd in the process list of the host, so I’m at a loss as to what could be going wrong here from a user perspective.
Haven’t gone spelunking in the code yet but any advice appreciated. Thank you!
Ah, makes perfect sense. Thank you Stéphane, you’re always so quick to respond and helpful!
Follow up question: I haven’t yet used an operating system with agent support (I’m using OpenWrt and flatcar/coreOS currently) –– does the agent also take care of ireg on the host and does incus offer dax support to the guest? Maybe I should just rely on these helpful incus abstractions and focus on getting the agent running properly under my pet distros…
I did some research on that stuff now. dax hasn’t been merged into QEMU, so it’s not something that can be used. There’s similarly no versiontable mention within the current QEMU codebase which makes me think that ireg has similarly not made it upstream yet.
On the cache front, we’re actually going to be switching to cache=never as the default of cache=auto actually causes issues with systems accessing a very large number of files. cache=always has some reports of potential data loss/corruption happening, so I don’t think it’s something we’d feel very confident in offering at this point.
The next daily build of the Zabbly packages will have cache=never passed to the daemon.
If that clears our other tests, I’ll push it to the Zabbly stable packages.
For users of other packages, you could ask your distro maintainer to cherry-pick the change or wait until Incus 0.7.