adding kernel module to container

mcdull

Active Member
Aug 23, 2020
65
2
28
47
I need to run a script that require the kernel module inside the container. I follow another thread to run the following in the host.
pct set 204 --mp0 /lib/modules/$(uname -r),mp=/lib/modules/$(uname -r),ro=1

But after running the 204 container no longer boot.

/var/log/message shows:-

EXT4-fs (dm-18): mounted filesystem with ordered data mode. Opts: (null)
where dm-18 is the new mp0 for the 204 container.

Is it the proper way to include the kernel module inside the container?

If it is a fs issue,how to solve it? I try force run fsck my touching a file in root but I do not see the fsck running after reboot.

Thanks.
 
hi,

you don't need to include anything in the container. containers use the host kernel. having the module loaded on the host kernel should be enough.