Skip to content

Instantly share code, notes, and snippets.

@filviu
Created March 31, 2023 05:31
Show Gist options
  • Save filviu/5ba69474cfbd31c7d20d339bf3a983a9 to your computer and use it in GitHub Desktop.
Save filviu/5ba69474cfbd31c7d20d339bf3a983a9 to your computer and use it in GitHub Desktop.
Multiple 9p folder mounts with proxmox
In `/etc/pve/qemu-server/NNN.conf`
```
args: -fsdev local,security_model=passthrough,id=fsdev0,path=/some/path/folder1 -device virtio-9p-pci,id=fs0,fsdev=fsdev0,addr=0x4,mount_tag=9p_folder1 -fsdev local,security_model=passthrough,id=fsdev1,path=/some/path/folder2 -device virtio-9p-pci,id=fs1,fsdev=fsdev1,addr=0x1a,mount_tag=folder2
```
Then inside the VM inside `/etc/fstab`
```
folder1 /mnt/folder1 9p trans=virtio,rw,_netdev,nobootwait 0 0
folder2 /mnt/folder2 9p trans=virtio,rw,_netdev,nobootwait 0 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment