Multiple 9p shares

petric

Renowned Member
Oct 5, 2011
2
0
66
I intend to pass multiple directories from the Proxmox host to a VM using the 99p protocol.

so i added this line to the xxx.conf file:
Code:
args:  -virtfs local,id=fsdev0,path=/backup,security_model=passthrough,mount_tag=backup -virtfs local,id=fsdev1,path=/source1,security_model=passthrough,mount_tag=source1 -virtfs local,id=fsdev2,path=/source2,security_model=passthrough,mount_tag=source2

But in the VM it mounts only 'backup' and 'source2'. The kernel log displays:
Code:
[    3.592110] 9pnet_virtio: no channels available for device source1

Host is Proxmox 7.4-16
VM is Debian 12

Host has loaded the kernel modules 9p, 9pnet and 9pnet_virtio
VM has loaded the kernel modules 9p, 9pnet and 9pnet_virtio

fstab reads:
Code:
backup          /test/backup    9p       trans=virtio,rw,_netdev 0 0
source1         /test/source1   9p       trans=virtio,rw,_netdev 0 0
source2         /test/source2   9p       trans=virtio,rw,_netdev 0 0

Any hints ?
 
Update: if i use only 2 directories instead of 3 it works.

Is there a limitation ?
 
Update: if i use only 2 directories instead of 3 it works.

Is there a limitation ?
Hello,

I now have five 9p shares working without any problems under Proxmox 8.3.5.
Unfortunately, line breaks and multiple arguments like args0: args1: args2: don't work in VM.conf, which makes my argument very long and unfortunately difficult to read.
For one share, I use this argument:

Code:
args: -fsdev local,security_model=passthrough,id=fsdev0,multidevs=remap,path=/mnt/sdb -device virtio-9p-pci,fsdev=fsdev0,mount_tag=fsdev0_sdb

And in this way for multiple shares.

Code:
args: -fsdev local,security_model=passthrough,id=fsdev0,multidevs=remap,path=/mnt/sdb -device virtio-9p-pci,fsdev=fsdev0,mount_tag=fsdev0_sdb, -fsdev local,security_model=passthrough,id=fsdev1,multidevs=remap,path=/mnt/sdc -device virtio-9p-pci,fsdev=fsdev1,mount_tag=fsdev1_sdc, -fsdev local,security_model=passthrough,id=fsdev2,multidevs=remap,path=/mnt/sdd -device virtio-9p-pci,fsdev=fsdev2,mount_tag=fsdev2_sdd, ...

Here you will find it visually a little nicer than the output of phpSysinfo.

https://schabau.eu/phpsysinfo.html

Best regards,
Detlef Paschke
 
  • Like
Reactions: UdoB