[lxc-users] Autostart LXC containers?

Michael H. Warfield mhw at WittsEnd.com
Wed Apr 30 19:18:23 UTC 2014

On Wed, 2014-04-30 at 14:46 -0400, CDR wrote:
> I know how to autostart a libvirt LXC container with the machine, but
> have not found how to do the same with pure LXC containers. I don't
> mean the hard way, writing a systmd service. I mean simpler way.
> Any idea?

What version of LXC are you running and on what platform.  The systemd
service should already be there and, as St├ęphane pointed out, all you
need to do is add "lxc.start.auto = 1" to the configuration file.  You
need to be running lxc 1.0.0 or better, though.  If you're on Fedora 20,
you'll need to update to rawhide or something newer like building from
the download tarballs, as Fedora 20 currently only has 0.9.0.

Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140430/4b893503/attachment.sig>

More information about the lxc-users mailing list