Shared --HOST Storage--- for Proxmox containers

jheinrichs79

New Member
Nov 4, 2023
1
0
1
I have included some screenshots with my disks.

Could someone point me in the right direction? I have just started my ProxMox journey and Want 2 or 3 ProxMox Containers to use the host's internal storage on a separate drive. The 8TB drive will not have any VMs or Containers on it.

I want the containers to have access to the data that is on the 8TB drive and that location needs to be accessible from multiple containers at the same time. I want multiple containers to have access to the /dev/sda1 EXT4 partition. They also need full permissions (Full Read/write/Modify etc).

Ideally, on the SDA1 partition, I would create a media folder. It is that folder that most (if not all) containers should be able to use. Each user that accesses the folder will be part of the "media" group on their local VM.

I assume I will need to use the Mount command a bare min in each container. In research, it seems that PROXMOX does things differently than just LXC containers. ie (you should use the "PROXMOX" way instead of the "LXC" way).
 

Attachments

  • disks.png
    disks.png
    20.9 KB · Views: 5
Last edited:
Hey, there is an option to mount directories into a container, on your proxmox host run this for all containers that need access:
Code:
pct set <container id> -mp0 /host/directory,mp=/container/directory
The bigger problem is to allow all containers to read and write, especially with varying users inside the container. For that I would recommend giving the wiki a look [0]

[0] https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
 

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!