Package: lxc
Version: 0.6.5-1
Severity: minor

Hello,

this is a list of pitfalls and observations when I started using lxc:

* The manpage for lxc-create refers to templates as "lxc-debian,
  lxc-busybox". The actual usage is without the lxc- prefix e.g. 
  "-t busybox". Please clarify in the manpage.

* A container created using "-t busybox" will fail to start if the
  busybox package is installed instead of busybox-static.  I'd suggest
  to check whether the busybox binary is actually the statically
  linked one, and check for presence before that:

 $rootfs/dev/shm"

+    [ -x /bin/busybox ] || return 1
+    ldd /bin/busybox | grep -q 'not a dynamic executable' || return 1

     mkdir -p $tree || return 1

* The lxc-debian script is not in the search path and thus not usable
  as in "lxc-create -t debian".  Unless you have good reason for that
  this should be changed. 

* lxc-debian again: In the "remove pointless services in a container"
  list, module-init-tools is surely another init script that does not
  make sense in a container.

* The documentation uses the IPv4 address/network 1.2.3.5/24 as
  example.  That is a public IP and actually routed.  To avoid harm,
  please change to addresses reserved for documentation, e.g.
  192.0.2.0/24 (RFC 5737).


On a side node, lxc support is broken from 2.6.32.3 up to and
including 2.6.32.9. If you learn about error messages like in

# lxc-start -n busybox /bin/busybox ash
+ lxc-start: failed to clone(0x6c020000): No space left on device
+ lxc-start: No space left on device - failed to fork into a new namespace

This is fixed in upstream commit
933b0618d8b2a59c7a0742e43836544e02f1e9bd and hopefully in 2.6.32.10,
too.

    Christoph

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.9 (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lxc depends on:
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries

Versions of packages lxc recommends:
pn  libcap2-bin                   <none>     (no description available)

lxc suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to