hoping for some assistance to get this sorted. Having set lxc.lxcpath = /srv/lxc (or any other path for the matter) in /etc/lxc.conf the creation of a container is always throwing this error
lxc-create: lxccontainer.c: do_create_container_dir: 979 No such file or directory - failed to create container path
Of course the path is existent and mounted and accessible, like said it does it for any path. Running lxc-config lxc.lxcpath is printing correctly /srv/lxc
I perhaps did, but I am not sure in retrospective.
It got a bit frustrating that the Debian-Stretch repo is a bit slow with (some) package updates, not only LXC (2.0.7), and thus decided to move onto an Ubuntu-Bionic server, preferring not having to compile each and every package on my own just to keep up with upstream releases.
@stgraber now on Linux server 4.15.0-22-generic #24-Ubuntu SMP x86_64 with LXC 3.0 and the problem still persists, except the error is less verbose, just plain
Error creating container
and that with each lxc.lxcpath = /srv/lxc and lxc.lxcpath = /srv/lxc/.
Having removed that line and using -P /srv/lxc at the cli is creating the container at the specified path however.
I beg your pardon, that been a clerical error in the original post. lxc.conf is actually and indeed placed in /etc/lxc. True from my original post is the output of lxc-config lxc.lxcpath reading
I have not tried yet rebooting the hosting server and see whether this might also have an impact to autostart the containers upon boot of the hosting server, though logically it is likely