[lxc-users] lxc profiles

Jäkel, Guido G.Jaekel at dnb.de
Fri Jan 24 08:00:58 UTC 2020


Dear Mike,

for LXD, I don't know. For LXC, to my knowledge only for that moment you named "launch", .i.e. while lxc-start is reading this files in the phase of preparing the container environment.

With other word: It's "save" to change configuration for an running container; it will be used at next start.

Therefore, for my environment I wrote a script to "reconfigure" some selected aspects for a running container like cgroups settings for memory and cpuset by reading the current config and adjust it (using lxc-cgroup)


I'm using a plain (NFS) directory tree for the rootfs. To prepare a new/updated one, it's even also save to rename this top directory (but not something inside) on the LXC host while the associated container is running because -- in a typical way for Unix -- this directory meta information is just used once to "open" a file handle and this handle is held until the container is shut down. With other words: You may first "clone" the rootfs to a new one, Then you may exchange the names of old and new and apply changes on the *unused* one - or in the other way round. Then just restart the container to use it (with the same name).


Greetings

Guido

-----Ursprüngliche Nachricht-----
Von: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] Im Auftrag von Mike Wright
Gesendet: Donnerstag, 23. Januar 2020 19:12
An: LXC users mailing-list <lxc-users at lists.linuxcontainers.org>
Betreff: [lxc-users] lxc profiles

Hi everybody,

I have a question about profiles.

Are they used only in the initial "lxc launch" or do they have a continuing role?

Thanks for any clarification.

Mike Wright
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list