[lxc-users] LXC 1.0.0 - lxc-start: command get_cgroup failed to receive response

Phiho Hoang hohoangphi at gmail.com
Wed May 28 00:41:54 UTC 2014


Hi Serge,

(This is a resend with a zip attached to reduce the size of this posting)

> grab the debian/ tree from the lxc package

I got it here (thanks to Fajar):


http://archive.ubuntu.com/ubuntu/pool/main/l/lxc/lxc_1.0.3-0ubuntu3.debian.tar.gz

> and copy it under the git tree, then run debian/rules build
$ git clone https://github.com/lxc/lxc.git
$ cd lxc ; tar xvzf ../Downloads/lxc_1.0.3-0ubuntu3.debian.tar.gz
$ sudo apt-get install debhelper, dh-autoreconf
$ debian/rules build > build.log 2>&1
$ phiho at lxc103:~/lxc$ tail  build.log
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1

configure: exit 1
dh_auto_configure: ./configure --build=x86_64-linux-gnu --prefix=/usr
--includedir=${prefix}/include --mandir=${prefix}/share/man
--infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--libdir=${prefix}/lib/x86_64-linux-gnu
--libexecdir=${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode
--disable-dependency-tracking --libdir=${prefix}/lib/x86_64-linux-gnu
--libexecdir=${prefix}/lib/x86_64-linux-gnu
--with-rootfs-path=${prefix}/lib/x86_64-linux-gnu/lxc --enable-python
CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security CPPFLAGS=-D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security FFLAGS=-g -O2 -fstack-protector
--param=ssp-buffer-size=4 GCJFLAGS=-g -O2 -fstack-protector
--param=ssp-buffer-size=4 LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
--enable-doc --disable-rpath --enable-apparmor --enable-selinux
--disable-lua --enable-tests --enable-cgmanager --with-distro=ubuntu
returned exit code 1
make[1]: *** [override_dh_auto_configure] Error 255
make[1]: Leaving directory `/home/phiho/lxc'
make: *** [build] Error 2

Please find attached 'config.log' and 'build.log' in a zip
file 7PM-May27.zip


On Sun, May 25, 2014 at 8:13 PM, Phiho Hoang <hohoangphi at gmail.com> wrote:

> Dear List,
>
> I got this problem with lxc built from git source code, cloned May 25.
>
> A similar issue was closed on Mar-27:
>
> https://github.com/lxc/lxc/issues/189
>
> FWIW, lxc 1.0.3 installed with
>
> $ sudo apt-get install lxc
>
> does NOT have this problem
>
> Is this a known issue or it's just my environment?
>
> Please find appended below the console output.
>
> Best regards,
>
> PhiHo
>
> $ sudo lxc-create -t ubuntu -n p1
> ...
> ...
> Local time is now:      Sun May 25 16:28:34 EDT 2014.
> Universal Time is now:  Sun May 25 20:28:34 UTC 2014.
>
> ##
> # The default user is 'ubuntu' with password 'ubuntu'!
> # Use the 'sudo' command to run tasks as root in the container.
> ##
>
> $ sudo lxc-start -n p1 -d
> lxc-start: command get_cgroup failed to receive response
>
> $ sudo lxc-start --version
> 1.0.0
> phiho at lxc1:~$ dmesg | tail -30
> [128539.786407] type=1400 audit(1401041189.000:22): apparmor="STATUS"
> operation="profile_load" profile="unconfined"
> name="lxc-container-default-with-mounting" pid=20312 comm="apparmor_parser"
> [128539.786801] type=1400 audit(1401041189.000:23): apparmor="STATUS"
> operation="profile_load" profile="unconfined"
> name="lxc-container-default-with-nesting" pid=20312 comm="apparmor_parser"
> [128539.848905] type=1400 audit(1401041189.064:24): apparmor="STATUS"
> operation="profile_load" profile="unconfined" name="/usr/bin/lxc-start"
> pid=20320 comm="apparmor_parser"
> [128539.934321] ip_tables: (C) 2000-2006 Netfilter Core Team
> [128539.978087] Bridge firewalling registered
> [128540.052024] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
> [128540.180870] type=1400 audit(1401041189.396:25): apparmor="STATUS"
> operation="profile_replace" profile="unconfined" name="/usr/bin/lxc-start"
> pid=20410 comm="apparmor_parser"
> [128540.202420] type=1400 audit(1401041189.416:26): apparmor="STATUS"
> operation="profile_replace" profile="unconfined"
> name="lxc-container-default" pid=20415 comm="apparmor_parser"
> [128540.202436] type=1400 audit(1401041189.416:27): apparmor="STATUS"
> operation="profile_replace" profile="unconfined"
> name="lxc-container-default-with-mounting" pid=20415 comm="apparmor_parser"
> [128540.202446] type=1400 audit(1401041189.416:28): apparmor="STATUS"
> operation="profile_replace" profile="unconfined"
> name="lxc-container-default-with-nesting" pid=20415 comm="apparmor_parser"
> [128540.203069] type=1400 audit(1401041189.416:29): apparmor="STATUS"
> operation="profile_replace" profile="unconfined"
> name="lxc-container-default-with-mounting" pid=20415 comm="apparmor_parser"
> [128540.203080] type=1400 audit(1401041189.416:30): apparmor="STATUS"
> operation="profile_replace" profile="unconfined"
> name="lxc-container-default-with-nesting" pid=20415 comm="apparmor_parser"
> [136961.307423] init: upstart-udev-bridge main process (431) terminated
> with status 1
> [136961.307459] init: upstart-udev-bridge main process ended, respawning
> [136961.308404] init: upstart-file-bridge main process (529) terminated
> with status 1
> [136961.308436] init: upstart-file-bridge main process ended, respawning
> [136961.309353] init: upstart-socket-bridge main process (688) terminated
> with status 1
> [136961.309385] init: upstart-socket-bridge main process ended, respawning
> [136964.043663] init: upstart-udev-bridge main process (29937) terminated
> with status 1
> [136964.043686] init: upstart-udev-bridge main process ended, respawning
> [136964.044081] init: upstart-socket-bridge main process (29940)
> terminated with status 1
> [136964.044102] init: upstart-socket-bridge main process ended, respawning
> [136964.044455] init: upstart-file-bridge main process (29943) terminated
> with status 1
> [136964.044475] init: upstart-file-bridge main process ended, respawning
> [137048.345628] init: upstart-udev-bridge main process (30059) terminated
> with status 1
> [137048.345652] init: upstart-udev-bridge main process ended, respawning
> [137048.346254] init: upstart-file-bridge main process (30062) terminated
> with status 1
> [137048.346275] init: upstart-file-bridge main process ended, respawning
> [137048.346937] init: upstart-socket-bridge main process (30065)
> terminated with status 1
> [137048.346958] init: upstart-socket-bridge main process ended, respawning
> $
> $ sudo aa-status
> apparmor module is loaded.
> 8 profiles are loaded.
> 8 profiles are in enforce mode.
>    /sbin/dhclient
>    /usr/bin/lxc-start
>    /usr/lib/NetworkManager/nm-dhcp-client.action
>    /usr/lib/connman/scripts/dhclient-script
>    /usr/sbin/tcpdump
>    lxc-container-default
>    lxc-container-default-with-mounting
>    lxc-container-default-with-nesting
> 0 profiles are in complain mode.
> 1 processes have profiles defined.
> 1 processes are in enforce mode.
>    /sbin/dhclient (758)
> 0 processes are in complain mode.
> 0 processes are unconfined but have a profile defined.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140527/dfdbdb66/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7PM-May27.zip
Type: application/zip
Size: 12504 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140527/dfdbdb66/attachment-0001.zip>


More information about the lxc-users mailing list