Package: lxc
Version: 1.0.0-8
Severity: normal

Dear Maintainer,

   * What led up to the situation?
I created a container with lxc-create and added "lxc.start.auto =1" to its
configuration.


   * What exactly did you do (or not do) that was effective (or
     ineffective)?
$ sudo systemctl start lxc
did fail.

   * What was the outcome of this action?
$ journalctl -xn
-- Logs begin at Wed 2014-04-23 17:31:18 UTC, end at Wed 2014-04-23 20:56:15
UTC. --
Apr 23 20:56:07 myhostname systemd[1]: lxc.service: cgroup is empty
Apr 23 20:56:07 myhostname systemd[1]: Job lxc.service/start finished,
result=failed
Apr 23 20:56:07 myhostname systemd[1]: Failed to start LXC Container
Initialization and Autoboot Code
Apr 23 20:56:07 myhostname systemd[1]: Closed jobs progress timerfd.
Apr 23 20:56:07 myhostname systemd[1]: Got D-Bus request:
org.freedesktop.DBus.Local.Disconnected() o
Apr 23 20:56:07 myhostname systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Agent.Released() o
Apr 23 20:56:07 myhostname systemd[1]: Got D-Bus request:
org.freedesktop.DBus.Local.Disconnected() o
Apr 23 20:56:07 myhostname sudo[19966]: pam_unix(sudo:session): session closed
for user root

$ sudo lxc-ls --running --active
did not show my container, but
$ sudo lxc-ls --stopped
did.

  * What outcome did you expect instead?
I do except "sudo systemctl start lxc" to start the autostart containers and
"sudo systemctl stop lxc" to stop these again.


I fixed the problem for me via editing /lib/systemd/system/lxc.service.

< ExecStartPre=/usr/libexec/lxc/lxc-devsetup
< ExecStart=/usr/libexec/lxc/lxc-startup start
< ExecStop=/usr/libexec/lxc/lxc-startup stop
---
> ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-devsetup
> ExecStart=/usr/bin/lxc-autostart
> ExecStop=/usr/bin/lxc-autostart --shutdown


cheers,
lim



-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages lxc depends on:
ii  libapparmor1       2.8.0-5+b1
ii  libc6              2.18-4
ii  libcap2            1:2.22-1.2
ii  libseccomp2        2.1.1-1
ii  libselinux1        2.2.2-1
ii  multiarch-support  2.18-4

Versions of packages lxc recommends:
ii  lua5.2   5.2.3-1
ii  python3  3.3.4-1
ii  rsync    3.1.0-3

Versions of packages lxc suggests:
pn  lxc-stuff  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to