Quoting Papp Tamas (tom...@martos.bme.hu):
> On 2011-07-18 15:14, Serge E. Hallyn wrote:
> > It should be possible, but you have to set it up in advance.  You can
> > create a /lxcshare directory on the host, make sure it is slave
> > (mount --make-rslave /lxcshare) and bind-mount that into the container
> > at startup.  Then mounting a directory into /lxcshare should expose it
> > to the container.
> >
> 
> helo!
> 
> Thank you for you answer, Serge:)
> 
> I'm not sure I correctly unserstand this part of manual, but I'm sure, 
> this is not exactly I want.
> I wanted (and also want to do it in the future) to mount a directory as 
> 'adhoc', without restarting the container.

I don't think that's possible.  But note that the setup I'm proposing
only needs to be done once at container creation, and could be supported
in templates.

Once set up, usage would be:

host admin:

mkdir /lxcshare/cdrom
mount /dev/cdrom /lxcshare/cdrom

container admin:
mount --move /lxcshare/cdrom /mnt/cdrom

> Nevermind, thank you,

-serge

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to