-----BEGIN PGP SIGNED MESSAGE-----
Post by Fajar A. Nugraha
On Wed, Mar 7, 2012 at 10:45 AM, Serge Hallyn
Post by Serge Hallyn
# 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
If your guest is uptodate 12.04, you should have
from ifupdownpackage which emits that signal for you. You
shouldn't need your own lxc-lo.conf any more.
What is Canonical's plan for older guests? Will
network-interface-container.conf be backported to lxc-guest, or
will manual configuration still necessary?
Starting in 12.04 we did the necessary changes to upstart, udev,
mountall, ifupdown, ... to be container aware. For older releases our
template still installs lxcguest that does a similar job though a bit
more hackish :)
As Serge said, if anything doesn't start for you with a clean 12.04
container running on 12.04, it's a bug and we want to fix it.
My goal for 12.04 was to make a perfectly clean and standard Ubuntu
system work in a container without any change whatsoever and I think
If you're writing custom upstart jobs or other scripts, you may be
interested by the new events and tools we introduced on all Ubuntu
- The upstart "container" event giving you CONTAINER=technology
- The upstart "not-container" event
- /bin/running-in-container that will exit 0 in a container and exit
1 otherwise, even it exits 0 it'll also print the technology.
Though we only really support lxc and lxc-libvirt, the rest is best
effort and we expect people to give us patches or access to a machine.
start on container CONTAINER=lxc
I hope this helped explain what we're doing in 12.04.
I'm planning on a generic "what's new in LXC for 12.04" blog post in
the next few days, once we've turned apparmor back on and have
somewhat secure containers again (hopefully later today).
Again, please try an up to date Ubuntu 12.04 system and report any bug
that you see, we're trying to closely look at LXC bugs and fix them as
soon as possible.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
Virtualization& Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
Lxc-users mailing list
Lxc-users at lists.sourceforge.net
debootstrap myself. Now everything works as expected when I start the