[lxc-users] Setting up containers with multiple logical volumes

Serge Hallyn serge.hallyn at ubuntu.com
Tue Feb 18 05:24:07 UTC 2014


Quoting Joshua Schaeffer (jschaeffer0922 at gmail.com):
> Yes it failed to start:
> 
> 1. lxc-create -n testme1 -t debian
> 2. root at reaver:~# cat /var/lib/lxc/testme1/config | grep lxc.mount.entry
>     lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
>     lxc.mount.entry = sysfs sys sysfs defaults  0 0
>     lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap
> defaults,create=dir 0 0

Wait a sec.  I mistyped.  There's no fstype in there :)

That should be

    lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap ext4 defaults,create=dir 0 0

or whatever fstype it is in place of ext4.  Sorry.

> 3. root at reaver:~# lxc-start -n testme1 -l trace -o testme1.out
>     lxc-start: No such file or directory - failed to mount
> '/dev/vg_lxc1/lv_ldap_tmp1' on
> '/usr/lib/x86_64-linux-gnu/lxc/lv_ldap'
>     lxc-start: failed to setup the mount entries for 'testme1'
>     lxc-start: failed to setup the container
>     lxc-start: invalid sequence number 1. expected 2
>     lxc-start: failed to spawn 'testme1'


More information about the lxc-users mailing list