[SOLVED] Installing kernelcare in container issue with insmod

robm

Member
Jan 9, 2020
19
1
8
51
Using centOS 7 LXC as "unprivileged containers" and trying to install kernelcare for rebootless kernel updates, and running into this error:
Code:
insmod: ERROR: could not insert module /var/cache/kcare/modules/none-abcd/kcare.ko: Operation not permitted
Unable to load kmod (/var/cache/kcare/modules/none-abcd/kcare.ko 1)

Is there a way to use kernelcare in an LXC centOS 7 container with proxmox?
 
Hi,

What do you try to achieve?
LXC uses the Host kernel.
It would be fatal if an unprivileged container could replace the host kernel.
Also, a privileged Container should not be capable to do this.
 
I thought with LXC, since we can install any OS, that we have to manage each LXC's kernel with updates, etc... We are trying to apply kernelcare to each LXC so we do not have to reboot the container each time a new kernel is released for the OS of the container.

For example, if the container is a centOS 7 one, can we install kernelcare to manage the container's kernel? Or do we have to restart the container each time a new centOS 7 kernel is released?
 
the kernel inside the container is completely irrelevant. the host kernel is used regardless of whichever kernel you may have installed in the container (technically you don't even need to install a kernel on the container).
 
Ah ok, thanks for the explanation. We'll put kernelcare on the host, and we should be good then. :)
 
glad it's all clear!

you can mark the thread as [SOLVED] so others can know what to expect
 

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!