[Lxc-users] Bind mounts in container's fstab don't work if the directory is on the same device as rootfs

panca sorin psihozefir at yahoo.com
Wed Mar 23 16:26:01 UTC 2011


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?

Sorin.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110323/77554416/attachment.html>


More information about the lxc-users mailing list