I'm trying to mount a folder on the host to an LXC container.
The host has a folder /mnt/ssd/solr_data
created (this is currently on the root filesystem, but later I'll mount an SSD drive there, so I'm prepping for that).
I want that folder to mount as /data
in the container.
So in the containers fstab file I have the following:
/mnt/ssd/solr_data /var/lib/lxc/Solr4StandAlone/rootfs/data ext4 defaults,noatime 0 0
But that's a no-go, I get this error starting the container:
lxc-start: No such file or directory - failed to mount '/mnt/ssd/solr_data' on '/usr/lib/x86_64-linux-gnu/lxc//data'
lxc-start: failed to setup the mounts for 'Solr4StandAlone'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'Solr4StandAlone'