[Lxc-users] udev

Osvaldo Filho arquivostcf at gmail.com
Sat Jul 31 00:12:03 UTC 2010


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libwrap0 tcpd xkb-data console-terminus
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
 console-setup e2fsprogs hostname ifupdown initramfs-tools
initscripts kbd module-init-tools mountall netbase
 openssh-server plymouth procps udev upstart util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
 e2fsprogs util-linux (due to e2fsprogs) hostname upstart (due to hostname)
0 upgraded, 0 newly installed, 16 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 14.2MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]


2010/7/30 John Drescher <drescherjm at gmail.com>:
> On Fri, Jul 30, 2010 at 7:50 PM, Osvaldo Filho <arquivostcf at gmail.com> wrote:
>> Environment:
>> ===========
>>
>> Host:
>> Ubuntu 10.04 x64
>> Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
>> lxc 0.7.1-1
>>
>> root at srvltsp01:/home/lxc/lucid64# cat config.lucid-64
>> lxc.utsname = lucid64
>> lxc.tty = 4
>> lxc.network.type = veth
>> lxc.network.flags = up
>> lxc.network.link = br0
>> lxc.network.name = eth0
>> lxc.network.mtu = 1500
>> lxc.network.ipv4 = 192.168.10.0/24
>> lxc.rootfs = ./rootfs
>> lxc.cgroup.devices.deny = a
>> # /dev/null and zero
>> lxc.cgroup.devices.allow = c 1:3 rwm
>> lxc.cgroup.devices.allow = c 1:5 rwm
>> # consoles
>> lxc.cgroup.devices.allow = c 5:1 rwm
>> lxc.cgroup.devices.allow = c 5:0 rwm
>> lxc.cgroup.devices.allow = c 4:0 rwm
>> lxc.cgroup.devices.allow = c 4:1 rwm
>> # /dev/{,u}random
>> lxc.cgroup.devices.allow = c 1:9 rwm
>> lxc.cgroup.devices.allow = c 1:8 rwm
>> # /dev/pts/* - pts namespaces are "coming soon"
>> lxc.cgroup.devices.allow = c 136:* rwm
>> lxc.cgroup.devices.allow = c 5:2 rwm
>> # rtc
>> lxc.cgroup.devices.allow = c 254:0 rwm
>>
>> --------------------------------
>>
>> Guest:
>> Ubuntu 10.04 x64
>> Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
>>
>> # df:
>>
>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> /dev/sda3            134574116  19345080 108392980  16% /
>> varrun                 3056840        20   3056820   1% /var/run
>> varlock                3056840         0   3056840   0% /var/lock
>> none                   3056840         0   3056840   0% /dev/shm
>> none                   3056840         0   3056840   0% /lib/init/rw
>>
>> ===========
>>
>> When i do a system upgrade on container i have problems:
>>
>> --------------- Problems ------------------
>>
>> root at localhost:/# apt-get -f install
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>> 2 not fully installed or removed.
>> After this operation, 0B of additional disk space will be used.
>> Setting up udev (151-12) ...
>> mknod: `/lib/udev/devices/ppp': Operation not permitted
>> dpkg: error processing udev (--configure):
>>  subprocess installed post-installation script returned error exit status 1
>> dpkg: dependency problems prevent configuration of plymouth:
>>  plymouth depends on udev (>= 149-2); however:
>>  Package udev is not configured yet.
>> dpkg: error processing plymouth (--configure):
>>  dependency problems - leaving unconfigured
>> No apport report written because the error message indicates its a
>> followup error from a previous failure.
>> Errors were encountered while processing:
>>  udev
>>  plymouth
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>
> On gentoo, I completely remove udev from the guest and go with static
> /dev. Not sure how to do that on other systems.
>
> --
> John M. Drescher
>




More information about the lxc-users mailing list