LXC directories mis-set

Bug #1026545 reported by Robbie Simpson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Expired
Undecided
Unassigned

Bug Description

(Running on a fresh Raspbian image, and then downloading the lxc package via apt-get)

When attempting to run any of the LXC commands, e.g.

sudo /usr/bin/lxc-execute -n foo -f /usr/share/doc/lxc/examples/lxc-empty-netns.conf /bin/bash

LXC tries to locate lxc-init in /usr/lib/arm-linux/gnueabihf , when it is actually installed in /usr/lib/arm-linux/gnueabihf/lxc. We were able to fix this problem by creating a hardlink between the two directories.

Revision history for this message
peter green (plugwash) wrote :

When I try the command you mention I get

root@raspberrypi:/home/pi# sudo /usr/bin/lxc-execute -n foo -f /usr/share/doc/lxc/examples/lxc-empty-netns.conf /bin/bash
lxc-execute: No cgroup mounted on the system
lxc-execute: failed to spawn 'foo'
root@raspberrypi:/home/pi#

No mntion of lxc-init in that output.

Are you still having problems with lxc on an up to date raspbian system? if so have you tried doing the same tests on a debian wheezy system?

Changed in raspbian:
status: New → Incomplete
Revision history for this message
Diederik (didi-debian) wrote :

I tried to reproduce this issue on both a wheezy (Pi 1B) and a jessie (Pi 2B) system ... and failed.

diederik@rasppi-1b:~$ sudo /usr/bin/lxc-execute -n foo -f /usr/share/doc/lxc/examples/lxc-empty-netns.conf /bin/bash
lxc-execute: No cgroup mounted on the system
lxc-execute: failed to spawn 'foo'

So the same error as plugwash on wheezy.

diederik@rasppi-2b:~$ sudo /usr/bin/lxc-execute -n foo -f /usr/share/doc/lxc/examples/lxc-empty-netns.conf /bin/bash
lxc-execute: failed to open log file "/var/lib/lxc/foo/foo.log" : No such file or directory
root@omega:/home/diederik# exit
exit
diederik@rasppi-2b:~$ sudo /usr/bin/lxc-execute -n foo -f /usr/share/doc/lxc/examples/lxc-empty-netns.conf /bin/bash
root@omega:/home/diederik#

Apart from an error on first run, it works on jessie

What's the current status on this issue?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Raspbian because there has been no activity for 60 days.]

Changed in raspbian:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.