[Lxc-users] Ubuntu 12.04 linux-container package and init modifications

Serge Hallyn serge.hallyn at canonical.com
Wed Mar 7 03:45:48 UTC 2012


Quoting Fajar A. Nugraha (list at fajar.net):
> # cat /etc/init/lxc-lo.conf
> start on startup
> env container
> 
> pre-start script
>         if [ "x$container" != "xlxc" -a "x$container" != "xlibvirt" ];
> then
>                 stop;
>         fi
>         initctl start network-interface INTERFACE=lo
>         exit 0;
> end script
> 
> 
> So now the modifications (both from lxcguest and my local addition)
> are all new .conf files, which would be ignored if it's not started in
> lxc environment. Might try 12.04 container later.

If your guest is uptodate 12.04, you should have

/etc/init/network-interface-container.conf

from ifupdownpackage which emits that signal for you.  You shouldn't need
your own lxc-lo.conf any more.

-serge




More information about the lxc-users mailing list