[Lxc-users] help with root mount parameters

atp Andrew.Phillips at lmax.com
Tue May 25 20:17:45 UTC 2010


Hi,

 I've synced to git head this afternoon, and firing up a container I now
get 

[root at islab01 lxc]# lxc-start -n test01.dev.tradefair/
lxc-start: No such file or directory - failed to access to
'/usr/lib64/lxc', check it is present
lxc-start: failed to set rootfs for 'test01.dev.tradefair/'
lxc-start: failed to setup the container

I've traced this to the patch
http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=blobdiff;f=src/lxc/conf.c;h=57b8c1a3ca2fb19c1fd19939c9559bf2bd802499;hp=55eb71599bfcf1f51033bf0d5fff19af04684748;hb=b1789442d69eb756355a53316c9dca4b74671883;hpb=23b7ea696bd3158ec7a0dd88cafa169e63fc8ad3
that adds support for rootfs.mount.

I don't have a lxc.rootfs.mount option in my config file,
so /usr/lib64/lxc seems to be the default (although confusingly
LXCROOTFSMOUNT is /usr/local/lib/lxc).  

	{ "lxc.rootfs.mount",         config_rootfs_mount         },
	{ "lxc.rootfs",               config_rootfs               },
	{ "lxc.pivotdir",             config_pivotdir             },

This now gives us several ways of specifying a root directory.

Can someone help me out and explain what the new option is for?

I suspect I actually want lxc.pivotdir, but most of the howtos on the
interweb seem to use lxc.rootfs, which is likely to break for 0.6.6

Thanks. 

Andy

Andrew Phillips
Head of Systems

www.lmax.com 

Office: +44 203 1922509
Mobile: +44 (0)7595 242 900

LMAX | Level 2, Yellow Building | 1 Nicholas Road | London | W11 4AN




The information in this e-mail and any attachment is confidential and is intended only for the named recipient(s). The e-mail may not be disclosed or used by any person other than the addressee, nor may it be copied in any way. If you are not a named recipient please notify the sender immediately and delete any copies of this message. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Any view or opinions presented are solely those of the author and do not necessarily represent those of the company.




More information about the lxc-users mailing list