[lxc-devel] suggestion for an autostart flag

Harald Dunkel harri at afaics.de
Wed May 29 16:31:32 UTC 2013


Hi folks,

AFAICS I have to list all containers to be started at boot
time in /etc/lxc/auto using symlinks pointing to the
config files. Problem: /etc is a local file system.

For a HA solution you usually have some kind of "network"
device/filesystem providing the resources to manage, e.g.
a DRBD or iSCSI partition holding a set of LXC config files
and rootfs directories. In case of a hardware failure you
change the run level on a hot standby host, some init script
mounts the LXC partition, and LXC's init script is supposed
to start the containers for this run level. Unfortunately
the symlinks in /etc/lxc/auto have been lost together with
the old host. Hopefully you see the problem.

Instead of symlinks in /etc/lxc/auto I would suggest to set
the config files to executable as an autostart flag. Thats
very easy to set, test and clear, _and_ it is part of the
filesystem providing the LXC config file.


Just a suggestion, of course.

Regards
Harri






More information about the lxc-devel mailing list