VirtIOFS - Tag not found error?

Davidoff

Well-Known Member
Nov 19, 2017
69
2
48
Some background info:

Host: Proxmox 8.4.1
Relevant Host Filesystems (2): Mergerfs 2.40.2 consolidating plain old ext4 disks; ZFS mirror with two disks
Guest: Debian 12 (bookworm)

All I'm trying to do is to share two existing directories on the Proxmox host with a Debian guest VM on the host. I followed the instructions in the help file (/pve-docs/chapter-qm.html#qm_virtiofs) as well as a tutorial (https://forum.proxmox.com/threads/p...er-for-linux-and-or-windows-guest-vms.167435/) but run into problems when attempting to mount in the guest VM.

Initially, I tried doing everything in the GUI. First, I went into Datacenter/Directory Mappings and created two mappings. Both directories are existing directories and I received no errors when creating them. Second, I clicked on the relevant guest VM, selected Hardware, selected Add, then selected Virtiofs. I selected one of the two available Directory IDs and left everything else as is, then clicked OK. However, at this stage, I noticed that the entries added for Virtiofs in the GUI were orange, which presumably indicates a problem of some sort.

Anyway, I tried forging on, entered into the console for the guest VM, created directors to serve as mountpoints and tried mounting, resulting in this error:

Code:
root@debian:~# mount -t virtiofs vdata /vdata
[ 1324.648540] virtio-fs: tag <vdata> not found
mount: /vdata: wrong fs type, bad option, bad superblock on vdata, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

dmesg indicates
Code:
virtio-fs: tag <vdata> not found

I figured I might get more insight if I tried using the command line to setup on the host. 110 is the ID for the Debian guest, but all seems fine

Code:
root@proxmox:/vdata# qm set 110 -virtiofs0 vdata
update VM 110: -virtiofs0 vdata

I've gone through the help file steps a couple of times but appear to be following the instructions exactly. Same with the tutorial. But still keep getting this error.

I'm at a loss as to how to resolve or further diagnose. Any suggestions would be most appreciated.
 
Hello,
However, at this stage, I noticed that the entries added for Virtiofs in the GUI were orange, which presumably indicates a problem of some sort.
This means that the configuration has not yet been applied. Virtiofs is not hot-pluggable.
It also requires a virtiofsd daemon running in the background (apt install virtiofsd).

You just need to turn the VM off and on again.
 
  • Like
Reactions: Davidoff
Hello,

This means that the configuration has not yet been applied. Virtiofs is not hot-pluggable.
It also requires a virtiofsd daemon running in the background (apt install virtiofsd).

You just need to turn the VM off and on again.
Thank you so much Markus. I did try that to no avail. But what ended up working was a reboot of the Proxmox server. Not sure why but I suspect maybe I was running an older kernel as I hadn't rebooted the thing in a long time.