Share storage between VM and lxc

0morph

New Member
Aug 14, 2023
1
0
1
Hi, I have some file systems that I want to share between a VM (Linux) and several lxc instances. I don't like to use samba or NFS for that, so I used 9p for the VM and bind mounts for the containers. Apart from some kernel issues, the setup works pretty well from the VM. However, I think I screwed up the 9p setup because although I can mount the share from lxc, I can't access the files because all the files belong to root with permissions drwx------. Of course, backup also doesn't work. Am I right that this is caused by the 9p mapped mode which I used because it was recommended everywhere? If yes, then creating a new volume and mounting it in passthrough mode would fix the issues, right? Of course I still need to keep the UIDs in sync between the different entities which have access to the share.
 

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!