[Lxc-users] Automated Mount for every lxc container
Serge Hallyn
serge.hallyn at canonical.com
Wed May 2 20:44:47 UTC 2012
Quoting Sebastian Bachmann (me at free-minds.net):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2012-04-26 05:41, Serge Hallyn wrote:
> >> lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
> >> lxc.mount.entry = /shared shared none bind 0 0
>
> according to the debian manpage this will not work, and it does not
> work somehow:
> lxc.mount
> specify a file location in the fstab format, containing
> the mount informations. If the rootfs is an image file or a device
> block and the fstab is used to mount a point somewhere in this
> rootfs, the path of the rootfs mount point should be
> prefixed with the ${prefix}/lib/x86_64-linux-gnu/lxc default path or
> the value of lxc.rootfs.mount if specified.
>
> lxc.mount.entry
> specify a mount point corresponding to a line in the
> fstab format.
>
> the ubuntu man page says something different, there i dont need to
> prefix the path...
> Is it only working on ubuntu?
No, the code for that is upstream, i.e. mount_entry_on_relative_rootfs()
in src/lxc/conf.c. So long as the target doesn't start with '/', it's
assumed to be relative to / in the container. I can't imagine why it
wouldn't be working in debian.
-serge
More information about the lxc-users
mailing list