Can’t mount storage to LXC Container

yyyy

Member
Nov 28, 2023
66
2
8
Hello

Trying to get ceph storage in an LXC container (not vm), the node already has ceph cluster setup with 3 monitors and 8 osds, on the container it keeps showing error "FATAL: Module rbd not found in directory /lib/modules/6.5.11-4-pve" when trying to load the rbd kernel module sudo modprobe rbd and therefore cannot mount ceph storage, it was working fine on a vm with ubuntu server 22.04 and was able to mount the rbd in the VM but in a CT with ubuntu server 22.04 image it shows this error.modinfo: ERROR: Module alias rbd not found.

I have also tried to create a mount point in the "Resources" tab of the CT for the ceph pool but it shows:


Parameter verification failed. (400)

mp0: unable to hotplug mp0: failed to move 'mp0' into container hierarchy: Permission denied
 
Hello

Trying to get ceph storage in an LXC container (not vm), the node already has ceph cluster setup with 3 monitors and 8 osds, on the container it keeps showing error "FATAL: Module rbd not found in directory /lib/modules/6.5.11-4-pve" when trying to load the rbd kernel module sudo modprobe rbd and therefore cannot mount ceph storage, it was working fine on a vm with ubuntu server 22.04 and was able to mount the rbd in the VM but in a CT with ubuntu server 22.04 image it shows this error.modinfo: ERROR: Module alias rbd not found.

I have also tried to create a mount point in the "Resources" tab of the CT for the ceph pool but it shows:


Parameter verification failed. (400)

mp0: unable to hotplug mp0: failed to move 'mp0' into container hierarchy: Permission denied
I a having the same problem. Have you found any solutions? This is proxmos 8.1.3.
 
you cannot load kernel modules inside a container, you can mount it on the host and do a bindmount into the container
 
Update: Problem solved. This is my first proxmox zfs config and by mistake I was selecting the zfs pool instead of the mountpoint (the Directory).
After fixing, I also changed these flags in the /etc/pve/storage.cfg file so that if I make that mistake it does not use my root vol, like it was doing. I added the last two lines to the mountpoint. Thanks for the tip to Dylan Banque in youtube "ZFS Setup 101".

dir: zfspool_mp
path /mnt/zfspool
content rootdir,vztmpl,snippets,images,backup,iso
prune-backups keep-all=1
shared 0
is_mountpoint 1
mkdir 0
 
Hi,
today I get the same warning (PVE 8.1.4), when I wanted to add another drive (mount point) to a LXC container:
Code:
Parameter verification failed. (400)
mp1: unable to hotplug mp0: failed to move 'mp1' into container hierarchy: Permission denied

My mistake was simply not shutting down the container.
After shutting down it worked as expected, without the "Permission denied"

regards,
m.
 
Last edited:

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!