[Lxc-users] uptodate Ubuntu Lucid guests

Papp Tamás tompos at martos.bme.hu
Mon Sep 6 21:08:01 UTC 2010


Papp Tamás wrote, On 2010. 09. 05. 0:58:
> 2. Some days ago there was an update to the package udev. In the 
> postinst script there is section:
>
> create_devices()
> {
>    # in a vserver environment, mknod will fail; cf. LP: #144685
>    if grep -q ^VxID /proc/self/status; then
>    return
>    fi
>
> What is the right grep pattern so it matches for lxc? In other words, 
> how can I be sure, I'm in an lxc container?
>   

Does anybody have any idea about this? I just need something in the 
containaer which doesn't exist in a real machine.

> 3. In the last weeks there were some updates to ubuntu. Unfortunately I 
> didn't restarted my containers after the updates, so I've just realized 
> now, that the containers cannot boot properly.
> I just cannot figure out, why.
>
> I don't see, what the proper configuration should be, or what is 
> depending on what. There is a fully working unupdated configuration, an 
> updated, but not working at all, and an updated half-working 
> configurations (sshd is starting other services not).
> I made some comparisons but looks similar or even the same to me. Could 
> you give me some help on this, how could I debug it?
>   

I found the bad change. This is the fix (ifupdown package):

--- /etc/network/if-up.d/upstart.orig   2010-07-22 12:59:07.000000000 +0000
+++ /etc/network/if-up.d/upstart        2010-09-06 21:02:16.806712701 +0000
@@ -2,10 +2,6 @@

 set -e

-if [ "$IFACE" = lo ]; then
-       exit 0 # emission handled by /etc/init/network-interface.conf
-fi
-
 initctl emit -n net-device-up \
        "IFACE=$IFACE" \
        "LOGICAL=$LOGICAL" \



Thanks,

tamas




More information about the lxc-users mailing list