[lxc-users] Installing lxc 1.0 to a non default location

Tamas Papp tompos at martos.bme.hu
Sun Feb 23 20:55:08 UTC 2014


On 02/23/2014 09:34 PM, 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?

I cannot answer this, but you can always user lxcpath config option.

With default settings the config file path would be /etc/lxc/lxc.conf:

lxc.lxcpath=/test/var/lib/lxc


tamas


More information about the lxc-users mailing list