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

Daniel Lezcano daniel.lezcano at free.fr
Fri May 21 07:56:32 UTC 2010


On 05/20/2010 10:40 PM, Nathan Lynch wrote:
> 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?
>    

Yes, you have to create it. I expect the distro maintainers to update 
their package %post_install section to create the directory.

Here is the thread about this change:

http://sourceforge.net/mailarchive/forum.php?thread_name=4BEC269A.1030207%40free.fr&forum_name=lxc-users

Thanks
   -- Daniel





More information about the lxc-devel mailing list