1574732629 M * Bertl_oO off to bed now .. have a good one everyone! 1574732630 N * Bertl_oO Bertl_zZ 1574760080 N * Bertl_zZ Bertl 1574760084 M * Bertl morning folks! 1574760250 M * gnarface morning Bertl! 1574760399 M * Hurga morning Bertl 1574760458 M * Hurga Does someopne happen to have a hint for me how to make cgroups work in a vserver guest? so far I managed to avoid having to deal with them... 1574761141 M * Guy- Hurga: I suppose you'd have to give the guest capabilities, and share (part of the) cgroup mount point with it 1574761172 M * Guy- I'd try with just giving it the mount first, and then look into which capability might be required if necessary 1574761749 M * Hurga I was looking into capabilities already... SECURE_MOUNT probably. But i don't really know what I'm doing 1574762079 M * Guy- I don't think it's SECURE_MOUNT 1574762085 M * Guy- you don't want to mount anything inside the guest 1574762097 M * Guy- I mean, not with the guest performing the mount operation 1574762124 M * Guy- you mount the cgroup stuff on the host and share it with the guest by bind mounting it (or parts of it) into the guest's mount namespace using the guest's fstab 1574762147 M * Hurga fstab I tried, didn't work. 1574762230 M * Hurga And I guess the guest needs to mount stuff... the error I'm trying to address is the follwing: 1574762232 M * Hurga root@beowulf:/# /lib/elogind/elogind 1574762232 M * Hurga Failed to mount cgroup at /sys/fs/cgroup/elogind: Operation not permitted 1574762294 M * Bertl and what is at /sys/fs/cgroup ? 1574762378 M * Guy- Hurga: you should make sure /sys/fs/cgroup inside the guest has (part of) the host cgroup hierarchy mounted under it 1574762581 M * Hurga Bertl: I have /sys/fs/cgroup monted via fstab. Now I have /sys/fs/cgroup/elogind and /sys/fs/cgroup/unified 1574762590 M * Hurga Guy-: mount --bind ? 1574762635 M * Bertl you want to use hierarchical cgroups and only provide the subtree for your guest to the guest 1574762665 M * Guy- Hurga: something like "/path/to/cgroup-mount-on-host/vserver/guestname /sys/fs/cgroup none bind 0 0" in the guest fstab 1574762734 M * Guy- also probably touch /etc/vservers/.defaults/cgroup/per-ss on the host, write /sys/fs/cgroup into /etc/vservers/.defaults/cgroup/mnt, and write vserver/ into /etc/vservers/.defaults/cgroup/base 1574762744 M * Guy- then reboot the host to make sure every mountpoint is where it should be 1574762793 M * Hurga ook... without even having understood cgroups, this is too complex for me i guess. 1574762901 M * Guy- Hurga: fwiw, it works pretty much out of the box with lxc, if that's an option for you 1574762913 M * Guy- but with the above approach it should work just as well with vserver 1574762960 M * Hurga Been using linux-vserver for about 20 years now (time goes by...) and I have 10+ guests so migration would be a hassle 1574763044 M * Hurga I mean, I appreciate your effort, and I'm willing to learn, but I'd prefer some page I can read and bang my head against for a while, I guess 1574763117 M * Bertl http://linux-vserver.org/util-vserver:Cgroups 1574763131 M * Bertl feel free to extend :) 1574763201 M * Guy- or, rather, essentially rewrite it from scratch... :/ 1574763222 M * Bertl yeah, probably by now :) 1574763223 M * Guy- that page is old and some of the advice seems plain wrong 1574763250 M * Guy- Hurga: I think you should disregard that page and find some generic introduction to cgroups instead :) 1574763279 M * Guy- once you understand what they're for and how they work you'll be better able to make them work with vserver 1574763306 M * Guy- but the .defaults thing I mentioned is important; the great flower page has some info on what it does 1574763346 M * Guy- especially per-ss is important; almost everything that uses cgroups will assume you have the per-subsystem cgroups mounted separately, not in the unified fashion util-vserver defaults to 1574763437 M * Hurga ok, thanks. I hope you don't mind me coming back later and asking some more stupid questions :) 1574763461 M * Guy- go ahead :) 1574763527 M * Guy- Hurga: also see https://github.com/linux-vserver/util-vserver/issues/32 -- relevant util-vserver bug, with patch 1574771657 J * hijacker ~nikolay@149.235.255.3 1574772503 Q * Aiken Remote host closed the connection 1574773011 Q * guerby Remote host closed the connection 1574773127 J * guerby ~guerby@ip165.tetaneutral.net 1574777727 Q * transacid Remote host closed the connection 1574779350 J * transacid ~transacid@transacid.de 1574785184 Q * transacid Remote host closed the connection 1574785205 J * transacid ~transacid@transacid.de 1574785778 Q * transacid Remote host closed the connection 1574786100 J * transacid ~transacid@transacid.de 1574786906 M * Bertl off for now ... bbl 1574786907 N * Bertl Bertl_oO 1574787576 Q * hijacker 1574797151 J * Aiken ~Aiken@b951.h.jbmb.net 1574807337 J * fstd ~fstd@xdsl-78-35-78-199.nc.de 1574807804 Q * fstd_ Ping timeout: 480 seconds 1574809000 Q * Ghislain 1574810243 Q * Aiken Remote host closed the connection 1574810469 J * Aiken ~Aiken@b951.h.jbmb.net 1574811753 M * Bertl_oO off to bed now ... have a good one everyone! 1574811758 N * Bertl_oO Bertl_zZ