[SOLVED] Share directory in Proxmox with VM(s)

Bugbear

Member
Dec 29, 2020
37
6
13
Hi there,

I would like to create a directory on my proxmox host e.g. `/share/somedata` and share it with, thus mount it on one or even multiple VMs.
Do you have some ideas how I can realize something like this? :)
 
You need to setup a SMB or NFS server. So you can either install a SMB/NFS server directly on your host (PVE is just a fancy Debian, so you can install/setup everything you could do with a Debian) or you could create a NAS VM/LXC.
 
Thanks a lot Dunuin!
Is there eventually also an option for directly sharing directory-storage on the Proxmox host with the VM through some Proxmox option directly, without any NFS or SMB server?
 
Last edited:
You always need to use some kind of network protocol to do that (if its 9p, SMB, NFS or SPICE). Directly sharing a local folder (like bind-mounts) only works with LXCs because they share the kernel and hardware with the host.