Device mount point

Renn

New Member
Dec 31, 2019
4
0
1
28
I was trying to run OpenMediaVault in a container. The installation was fine but got I a problem that it requires a /dev/sda or something to be able to work, and for containers such disks don't exist. I think device mount point could do it by mapping a whole disk into the container but found no where it can be achieved in Proxmox.

The only thing similar I found was https://askubuntu.com/questions/528...vice-file-dev-sdxy-available-in-lxc-container but the config /var/lib/lxc/***/config seems to be recreated every time the CT boots up, which makes it no longer viable. Does anyone know how I can do it in the "Proxmox way"? Thank you!
 
Hi,
for containers PVE uses the configuration files in /etc/pve/lxc/<CTID>.conf, see here. You should be able to directly add lxc.<OPTION> = <VALUE> configuration directly to the corresponding file.
 
@Fabian_E Hi Fabian, thank you for your reply. I am aware that configs are stored in that path and have searched for a while on the keyword/format of device mount points, but couldn't find any. Looks like everyone is using bind instead. That was the part disappointing .
 
hi,

I am aware that configs are stored in that path and have searched for a while on the keyword/format of device mount points, but couldn't find any.

do you mean something like lxc.cgroup.devices.allow = b 8:1 rwm? this is allowed in /etc/pve/lxc/CTID.conf files as well, like fabian said.
 

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!