Mimic VirtualBox Shared Folders feature?

CGC

New Member
May 25, 2023
19
3
3
I'm a longtime Virtual Box user and I'm just starting to work with my first instance of Proxmox. Virtual Box has a feature called Shared Folders that lets a VM read a host file system. As an example:

I have /largedrive/stuff on my desktop, I share that folder with a virtual machine, and tell the VM to mount it at /stuff.

The use case is that I have hundreds of gigabytes of carefully curated material and I need to permit multiple VMs to have access to various portions to do analytical stuff with the content. The VMs get read only access, updates are handled only by the host. The goal is avoiding a situation where I have two dozen VMs that are each a quarter terabyte of disk space, when the analytical results are just tens of megabytes.

if it makes a difference, the content to be shared is a ZFS data set.

I have been poking at the web interface, Googling, and bugging ChatGPT. I haven't found anything even vaguely like what I describe. Am really hoping the answer here is not something involving NFS.
 
I cant see what is wrong with NFS, but if you insist not to NFS then https://forum.proxmox.com/threads/proxmox-storage-host-to-vm-folder-passthrough-with-9p.122125/


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
OK, this is completely baffling.

Adding plan 9 stuff to initrd no problem.

Seems like some packages are being retired re: plan 9, but 9base and 9mount still exist. This makes /usr/lib/plan9/bin

There is nothing in Debian mkfs to format a volume as 9p. There isn't anything in this new folder that does formatting. Asking ChatGPT produces some nonsense about using the mk command to format, but that seems to be a plan 9 specific version of make?

I am not going to be doing a fresh install of a VM using 9p, I have some data I want to make available to multiple VMs. How do I get the storage formatted?
 
9p is not a filesystem, its a protocol.
Google is a perfectly good search engine still "wiki 9p debian" : https://wiki.qemu.org/Documentation/9psetup

The disk you present has to be mounted on the hypervisor, and that implies having a filesystem - anything will do (ext, zfs, xfs, etc).


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!