[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 17:17:53 UTC 2011
It's 0.7.3 on Gentoo ~amd64. I didn't upgrade to 0.7.4, yet..
________________________________
From: Daniel Lezcano <daniel.lezcano at free.fr>
To: panca sorin <psihozefir at yahoo.com>
Cc: lxc-users at lists.sourceforge.net
Sent: Wed, March 23, 2011 6:32:45 PM
Subject: Re: [Lxc-users] Bind mounts in container's fstab don't work if the
directory is on the same device as rootfs
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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110323/6b202eaa/attachment.html>
More information about the lxc-users
mailing list