On Sun, Feb 23, 2014 at 10:34:49PM +0200, Kevin Wilson wrote: > Hello, > I am trying to install lxc-1.0 to /test/var/lib/lxc. > I want that the containers will be created under /test/var/lib/lxc > > So: > ./configure --with-config-path=/test/var/lib/lxc > make && make install > > and indeed > lxc-create -n mybusybox -t busybox > created it under > /test/var/lib/lxc/ > > However, lxc-ls does not show it (it shows the containers under /var/lib/lxc). > Is there some way with ./configure to set the path that lxc-ls will look > in so that it will be different than /var/lib/lxc?
So based on your previous post, I'm going to assume that this LXC was built with python3 and that you manually installed an older version of python3-lxc from a package to resolve the stacktrace. That latter action is very likely to be the problem there as that package you installed probably contains the hardcoded /var/lib/lxc path. Instead of installing this external package to workaround the stacktrace, you should instead either build without python (--disable-python) or properly set the python path so that it finds the module (PYTHONPATH=/test or something like that). I did a quick check and both the python and shell version of lxc-ls in 1.0 use lxc's global config to get the default container path. That global config will either return the value of lxc.lxcpath set in /etc/lxc/lxc.conf (or wherever the config files end up with your config) or will default to the value passed with --with-config-path. So your problem is likely some kind of conflict between two versions of LXC on your system or an invalid config file somewhere. > > regards, > Kevin > _______________________________________________ > lxc-users mailing list > [email protected] > http://lists.linuxcontainers.org/listinfo/lxc-users -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: Digital signature
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
