[Lxc-users] Bind mounts in container's fstab don't work if the directory is on the same device as rootfs
Daniel Lezcano
daniel.lezcano at free.fr
Wed Mar 23 16:32:45 UTC 2011
On 03/23/2011 05:26 PM, panca sorin wrote:
> Hello LXC developers!
>
> As the subject says, I'm having some problems getting directories bind mounted
> inside containers. So, here's my container config:
> lxc.rootfs = /var/lib/lxc/zero
> lxc.mount.entry=/var/lib/lxc/zero_home /var/lib/lxc/zero/home none
> bind,ro,defaults 0 0 # added later hoping it'll work
> lxc.mount = /etc/lxc/zero.fstab
>
> and fstab:
> none /var/lib/lxc/zero/dev/pts devpts defaults 0 0
> none /var/lib/lxc/zero/proc proc defaults 0 0
> none /var/lib/lxc/zero/sys sysfs defaults 0 0
> none /var/lib/lxc/zero/dev/shm tmpfs defaults 0 0
> /var/lib/lxc/zero_home /var/lib/lxc/zero/home none bind,rw,defaults 0 0 # also
> tried read-only
>
> I have to mention /var/lib/lxc is a symlink. But this should not matter, right?
> What am I doing wrong?
>
What version are you using ?
More information about the lxc-users
mailing list