[systemd-devel] machinectl and systemd-nspawn - Settting the CPUQuota from command line

2024-07-31 Thread Joel GUITTET
Hello, I used slice files in /etc/systemd/system/ to set some CPUQuota and MemoryMax options to some systemd-containers. Works fine. Is it possible to define these options from machinectl / systemd-nspawn command line directly without using the slice file ? As an alternative is it possible to s

[systemd-devel] machinectl poweroff: wait until shutdown is done

2024-08-05 Thread Joel GUITTET
Hello Is there a way when using "machinectl poweroff " to wait until the container is effectively totally stopped ? So that the following command after machinectl poweroff can be executed safely (in my case un-mounting the rootfs, cleaning iptables rules etc etc). Thanks Joel  

[systemd-devel] systemd-nspawn - invisble directories ?

2024-10-17 Thread Joel GUITTET
Hello community, I face a strange behavior of my containers running using systemd-nspawn : some directories initially in the volume are not visible inside the container. It seems this is always the qame "kind" of directories e.g. maybe they are reserved for specific use ? Example: root@target

[systemd-devel] systemd-nspawn and volatile option side effects

2024-11-14 Thread Joel GUITTET
Hi systemd, I'm working with machinectl to control containers, thus using the systemd service "/usr/lib/systemd/system/systemd-nspawn@.service". Currently my ExecStart option is the following: "ExecStart=systemd-nspawn --quiet --boot --network-bridge=br0 --read-only --volatile=yes --notify-read