[lxc-devel] "use defined rootfs mount point" regression?

Nathan Lynch ntl at pobox.com
Thu May 20 20:40:04 UTC 2010


Hi,

$ find /tmp/tmp.zNMDgzalhM -print
/tmp/tmp.zNMDgzalhM
/tmp/tmp.zNMDgzalhM/proc
/tmp/tmp.zNMDgzalhM/dev
/tmp/tmp.zNMDgzalhM/dev/shm
/tmp/tmp.zNMDgzalhM/bin
/tmp/tmp.zNMDgzalhM/bin/true
/tmp/tmp.zNMDgzalhM/lib64
/tmp/tmp.zNMDgzalhM/lib64/libutil.so.1
/tmp/tmp.zNMDgzalhM/lib64/ld-linux-x86-64.so.2
/tmp/tmp.zNMDgzalhM/lib64/ld-2.11.1.so
/tmp/tmp.zNMDgzalhM/lib64/libc-2.11.1.so
/tmp/tmp.zNMDgzalhM/lib64/libc.so.6
/tmp/tmp.zNMDgzalhM/lib64/libutil-2.11.1.so
/tmp/tmp.zNMDgzalhM/usr
/tmp/tmp.zNMDgzalhM/usr/libexec
/tmp/tmp.zNMDgzalhM/usr/libexec/lxc-init
/tmp/tmp.zNMDgzalhM/usr/lib64
/tmp/tmp.zNMDgzalhM/usr/lib64/liblxc.so.0.6.5
/tmp/tmp.zNMDgzalhM/usr/lib64/liblxc.so.0
/tmp/tmp.zNMDgzalhM/usr/lib64/liblxc.so

$ lxc-execute -n truetest-19794 -s lxc.rootfs=/tmp/tmp.zNMDgzalhM -- /bin/true

The above succeeds with lxc 0.6.5 as well as commit 23b7ea6 ("add
lxc.rootfs.mount config option").  With commit b178944 ("use defined
rootfs mount point"), the lxc-execute command fails with:

lxc-execute: No such file or directory - failed to access to '/usr/lib64/lxc', check it is present
lxc-execute: failed to set rootfs for 'truetest-19794'
lxc-execute: failed to setup the container

/usr/lib64/lxc does not exist on the host.  Is this the intended
behavior?






More information about the lxc-devel mailing list