[Lxc-users] LXC, Python 2.6, and Multiprocessing.synchronize

Robert Pendell shinji at elite-systems.org
Mon Sep 26 20:24:13 UTC 2011


I've been trying to setup an environment to build Chromium OS using a Ubuntu
10.04 guest.  The goals are to setup an isolated setup that can still gather
the full resources the machine can provide.  The host is Ubuntu 11.04.
Anyways whenever I try to build the chroot environment that is used by
Chromium OS python halts with a function not implemented error.  Is this a
limitation of lxc, a bug, or something I'm doing wrong?

Thanks for any information you can provide.

uname -a
Linux shinji-linux 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux

lxc guest fstab
proc            /var/lib/lxc/lucid/rootfs/proc          proc
nodev,noexec,nosuid     0 0
sysfs           /var/lib/lxc/lucid/rootfs/sys           sysfs
defaults        0 0
none            /var/lib/lxc/lucid/rootfs/var/run       tmpfs
defaults        0 0
none            /var/lib/lxc/lucid/rootfs/dev/shm       tmpfs
defaults        0 0

lxc guest config
lxc.arch=x86_64
lxc.utsname = lucid

lxc.network.type=veth
lxc.network.flags=up
lxc.network.link=virbr0

lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /var/lib/lxc/lucid/rootfs
lxc.mount  = /var/lib/lxc/lucid/fstab

lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
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
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 254:0 rwm

lxc.cap.drop = sys_time

python crash
Traceback (most recent call last):
  File "/home/shinji/trunk/chromite/bin/parallel_emerge", line 116, in
<module>
    KILLED = multiprocessing.Event()
  File "/usr/lib64/python2.6/multiprocessing/__init__.py", line 206, in
Event
    return Event()
  File "/usr/lib64/python2.6/multiprocessing/synchronize.py", line 268, in
__init__
    self._cond = Condition(Lock())
  File "/usr/lib64/python2.6/multiprocessing/synchronize.py", line 117, in
__init__
    SemLock.__init__(self, SEMAPHORE, 1, 1)
  File "/usr/lib64/python2.6/multiprocessing/synchronize.py", line 49, in
__init__
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented

Robert Pendell
shinji at elite-systems.org
CAcert Assurer
"A perfect world is one of chaos."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110926/0d8d8912/attachment.html>


More information about the lxc-users mailing list