lxc-execute without config does not seem to work in precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Precise |
Fix Released
|
High
|
Unassigned |
Bug Description
=======
SRU Justification:
Impact: application containers cannot be used without rootfs
Stable fix: will be same as development fix
Development fix: don't try to pin rootfs is rootfs is null, and don't try
to mount /proc if rootfs is null.
Test case:
cat > lxc.conf << EOF
lxc.aa_profile = unconfined
EOF
lxc-execute -n test -f lxc.conf /bin/bash
Regression potential: In normal containers, rootfs is not null, so these paths
should not be affected
=======
per http://
a minimal trival lxc should be doable as
lxc-execute -n test /bin/bash
but on my precise laptop this results in:
sudo lxc-execute -n test /bin/bash
lxc-execute: Invalid argument - failed to get real path for '(null)'
lxc-execute: failed to pin the container's rootfs
lxc-execute: failed to spawn 'test'
lxc-execute: No such file or directory - failed to remove cgroup '/sys/fs/
Changed in lxc (Ubuntu): | |
importance: | Low → High |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
status: | Confirmed → In Progress |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Thanks for reporting this bug.
The output (in particular '(null)' looks strange.
Is lxc installed in the container? In particular, does it have /usr/lib/ lxc/lxc- init and all its dependencies installed?
Can you give the contents of debug.out after running:
lxc-execute -l DEBUG -o debug.out -n test /bin/bash