[Lxc-users] help with root mount parameters

Daniel Lezcano daniel.lezcano at free.fr
Wed May 26 09:39:37 UTC 2010


On 05/26/2010 11:07 AM, atp wrote:
> Thanks to both for the replies.
>
> This now makes sense. I've specified the rootfs.mount in the container
> config, and it gets past there and boots ok.
>
> Just in case anyone else cares, a very handy debug log can be had by
> using this command.
>
> lxc-start --logpriority=TRACE -o /tmp/trace.log --name my_container
>
> It was not clear from the man page that to get the higher levels of
> verbosity (DEBUG|TRACE) you need to specify an output file, rather
> than just stderr.
>    

Right.

I used to have this options:

lxc-start -l DEBUG -o $(tty) -s lxc.console=$(tty) -n <name>


> The autoconf maze has me befuddled as well. I tried briefly to see where
> VERSION and PACKAGE_VERSION were defined but to no avail.
>    

They should be defined in src/config.h (generated by autoconf).

> In answer to Daniels question;
>
> islab01 is an FC12 machine, running 2.6.34 (for the macvlan stuff)
>
> [root at islab01 lxc]# grep /usr/lib64/lxc *
> [root at islab01 lxc]# head config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by lxc configure 0.6.5, which was
> generated by GNU Autoconf 2.63.  Invocation command line was
>
>    $ ./configure
>
> ## --------- ##
> ## Platform. ##
> [root at islab01 lxc]# grep /usr/lib64/lxc *
> [root at islab01 lxc]# grep LXCROOTFS *
> config.log:LXCROOTFSMOUNT='/usr/local/lib/lxc'
> config.log:#define LXCROOTFSMOUNT "/usr/local/lib/lxc"
> config.status:S["LXCROOTFSMOUNT"]="/usr/local/lib/lxc"
> config.status:D["LXCROOTFSMOUNT"]=" \"/usr/local/lib/lxc\""
> configure:LXCROOTFSMOUNT
> configure:    EXP_VAR=LXCROOTFSMOUNT
> configure:    LXCROOTFSMOUNT="$full_var"
> configure:#define LXCROOTFSMOUNT "$LXCROOTFSMOUNT"
> configure.ac:AS_AC_EXPAND(LXCROOTFSMOUNT, "${with_rootfs_path}")
> configure.ac:AH_TEMPLATE([LXCROOTFSMOUNT], [lxc default rootfs mount
> point])
> configure.ac:AC_DEFINE_UNQUOTED(LXCROOTFSMOUNT, "$LXCROOTFSMOUNT")
> Makefile:LXCROOTFSMOUNT = /usr/local/lib/lxc
> Makefile.in:LXCROOTFSMOUNT = @LXCROOTFSMOUNT@
>
> [root at islab01 lxc]# ls -l /usr/local/lib/lxc /usr/lib64/lxc
> ls: cannot access /usr/local/lib/lxc: No such file or directory
> ls: cannot access /usr/lib64/lxc: No such file or directory
>
> from the trace.log
>        lxc-start 1274794074.668 WARN     lxc_conf - failed to mount
> '/dev/pts/2'->'./rootfs.test/dev/tty2'
>        lxc-start 1274794074.668 WARN     lxc_conf - failed to mount
> '/dev/pts/3'->'./rootfs.test/dev/tty3'
>        lxc-start 1274794074.668 WARN     lxc_conf - failed to mount
> '/dev/pts/4'->'./rootfs.test/dev/tty4'
>        lxc-start 1274794074.668 INFO     lxc_conf - 4 tty(s) has been
> setup
>        lxc-start 1274794074.668 ERROR    lxc_conf - No such file or
> directory - failed to access to '/usr/lib64/lxc', check it is present
>        lxc-start 1274794074.668 ERROR    lxc_conf - failed to set rootfs
> for 'test'
>        lxc-start 1274794074.668 ERROR    lxc_start - failed to setup the
> container
>
> So something is going awry, but I'm really puzzled as to how having read
> the setup_rootfs section. Its probably not worth chasing down at the
> moment.
>    

Can you check the LXCROOTFSMOUNT macro in src/config.h and src/config.h.in ?

Thanks
   -- Daniel




More information about the lxc-users mailing list