[LXC] Slackware 14.1 rc1 - Upgraded host & container
I've recently converted from running KVM accelerated QEMU guests to LXC containers. I'm running a few containers on my servers and really like the speed and reduced resource usage.
I used the templates provided by ponce on his website http://slackware.ponce.cc/blog/?s=lxc&searchsubmit= to upgrade 1 host and 1 container from slackware64-current 14.1 beta to 14.1 rc1. After upgrading I've run into changes that have thrown me for a loop. Below is start up output from a non-upgraded container and the upgraded container using the command "screen -S my_name lxc-start -n container_name". Seems like there are changes I need to take into account but need some guidance. I suspect, at a minimum, there are changes to be made to the rootfs/config file and maybe even the container's fstab but I don't know enough about LXC yet to figure this out. slackware64-current / 14.1 beta - not upgraded yet Code:
INIT: version 2.88 booting Code:
INIT: version 2.88 booting |
the container creation template patches $ROOT/etc/rc.d/rc.S, $ROOT/etc/rc.d/rc.M and $ROOT/etc/rc.d/rc.6 to allow a clean boot inside of a container: what happened to you is that probably you have overwritten these patched versions when you upgraded your system (sysvinit-scripts has been updated too in the latest days).
if you have a container that still got the old versions of these files the faster solution is to simply overwrite the new ones of the upgraded container with the old taken from there. maybe I should write a notice about this for who, like you, is willing to use it with -current containers, thanks for the report :) officially the template supports 14.0 containers (because the minimal template could also change during -current development cycle) and I've not tested yet with 14.1 ones, but I'll do it soon. |
Quote:
I took a look through the /var/lib64/lxc/templates/lxc-slackware as saw the rc.d patches used during lxc-create. I learned a bit more about LXC which makes this a good day. Now I'm off to understand container memory restrictions. My initial searching tells me it's a cgroup kernel option which is not set in Slackware kernels: # CONFIG_MEMCG is not set. Setting those options is reported to add 15MB to the kernel size which is a lot for non-cgroup users. |
I'm not using any memory restrictions ATM (I have my containers on machines with 16/48Gb of RAM), so please report back ;)
|
All times are GMT -5. The time now is 04:17 PM. |