[lxc-users] Hint for CentOS 7 guests in Debian stretch with KAISER/KPTI kernel

Christoph Lechleitner christoph.lechleitner at iteg.at
Fri Jan 19 23:36:12 UTC 2018


Am 12.01.18 um 13:58 schrieb Christoph Lechleitner:
> Am 11.01.18 um 22:51 schrieb Michael Johnson:
>> Hi Christoph,
>>
>> Does your solution endure a reboot of the host?
> 
> I'm not sure yet.
> 
> I will update our last 2 nodes tonight resp. tomorrow morning, I'll
> report back ;-)
> 
> Eventually a script that runs on system startup or LXC startup or
> container startup will have to be written or adapted.

Almost forgot about this, sorry.

On one of the 2 servers I upgraded from Debian Jessie (4.9 kernel from
backports, no KAISER patches) to Debian Stretch (4.9 kernel wich KAISER
patches) I extended /etc/fstab ...

  # cgroup for LXC
  cgroup /sys/fs/cgroup cgroup defaults 0 0
  # more cgroup stuff for centos guests
  systemd /sys/fs/cgroup/systemd cgroup
none,name=systemd,x-mount.mkdir=0555 0 0

... before the reboot, and after the reboot both mountpoints were mounted.

I'm not sure if I manually created /sys/fs/cgroup/systemd, but if I did
that was before the reboot, too.

Regards, Christoph


More information about the lxc-users mailing list