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

Fajar A. Nugraha list at fajar.net
Tue Mar 6 21:46:24 UTC 2012


Forwarding to the list, plus some comments.

On Wed, Mar 7, 2012 at 3:17 AM, thaddeus at thogan.com <thaddeus at thogan.com> wrote:

>> Do you mean you'll be using 10.04 or 12.04 inside the container?

> I am testing 12.04 guests on a 12.04 host. Thankfully with the help of a
> very complete chef installation, it won't take long to rebuild all of the
> guests instead of trying to migrate them.
>
> The issue I ran into with the linux-container package was that
> networking.conf would not emit static-network-up, and also udev was still
> loading. The package corrected the behavior of umountroot running on
> shutdown, but an apt-get upgrade caused that script to be re-added to the
> shutdown sequence.
>
> My modifications included:
>
> /etc/init/networking.conf: change to just setup the gateway and emit
> static-network-up

You could add /etc/init/networking.override, so further changes to
networking.conf will not affect you.

> /etc/init.d/umountroot: remove body of do_stop()

Not sure about this one.

> /etc/init/udev*.conf: comment out start on lines

You mean disable udev? udev.override with a single line "manual"
should do the trick.

>
> With this done, everything seems to be working, and apt-get upgrade dosen't
> break any of the changes.

Can you share your changes?

I'm creating LXC recipes on http://wiki.1tux.org/wiki/Lxc/Installation
, so far only Centos5 container is almost complete. I'll use what
you've done so far for
http://wiki.1tux.org/wiki/Lxc/Installation/Guest/Ubuntu

Thanks.

Fajar




More information about the lxc-users mailing list