Re: [Lxc-users] File sharing between host and container during startup

2010-06-08 Thread Daniel Lezcano
On 06/07/2010 08:39 PM, Nirmal Guhan wrote: >> AFAICS, you would like to share the filesystem, maybe you not need to >> specify a rootfs. >> >> I suggest you remove the containers you previously created in order to >> restart on a sane base. In case, list them with "lxc-ls" to make sure you >> have

Re: [Lxc-users] File sharing between host and container during startup

2010-06-07 Thread Nirmal Guhan
> > AFAICS, you would like to share the filesystem, maybe you not need to > specify a rootfs. > > I suggest you remove the containers you previously created in order to > restart on a sane base. In case, list them with "lxc-ls" to make sure you > have no remaining containers set on your system. > >

Re: [Lxc-users] File sharing between host and container during startup

2010-06-06 Thread Daniel Lezcano
On 06/04/2010 05:44 PM, Nirmal Guhan wrote: > Hi, > > I tried to extend the fstab as below: > > /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ > resolv.conf none bind 0 0 > /test /testdir none bind 0 0<--- I added this line > > > From the host : > # ls /testdir > a b c > > > From the co

Re: [Lxc-users] File sharing between host and container during startup

2010-06-06 Thread Gordon Henderson
On Sun, 6 Jun 2010, Nirmal Guhan wrote: > I want to run my application on fedora as a container and use the libraries > (/lib, /usr/lib) from the host (so my application container size is small). > I did lxc-create but lxc-execute failed (I had sent a mail earlier on this). > Suggestion was to use

Re: [Lxc-users] File sharing between host and container during startup

2010-06-06 Thread Daniel Lezcano
On 06/06/2010 09:57 PM, Nirmal Guhan wrote: > On Sun, Jun 6, 2010 at 11:16 AM, Daniel Lezcanowrote: > > >> On 06/04/2010 05:44 PM, Nirmal Guhan wrote: >> >> >>> Hi, >>> >>> I tried to extend the fstab as below: >>> >>> /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ >>> resolv.conf none bi

Re: [Lxc-users] File sharing between host and container during startup

2010-06-06 Thread Nirmal Guhan
On Sun, Jun 6, 2010 at 11:16 AM, Daniel Lezcano wrote: > On 06/04/2010 05:44 PM, Nirmal Guhan wrote: > >> Hi, >> >> I tried to extend the fstab as below: >> >> /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ >> resolv.conf none bind 0 0 >> /test /testdir none bind 0 0<--- I added this lin

Re: [Lxc-users] File sharing between host and container during startup

2010-06-04 Thread Bodhi Zazen
You syntax is off Should be /testdir /lxc/lenny/rootfs.lenny/test bind 0 0 - Original Message - From: "Nirmal Guhan" To: lxc-users@lists.sourceforge.net Sent: Friday, June 4, 2010 9:44:19 AM Subject: [Lxc-users] File sharing between host and container during startup Hi,

[Lxc-users] File sharing between host and container during startup

2010-06-04 Thread Nirmal Guhan
Hi, I tried to extend the fstab as below: /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ resolv.conf none bind 0 0 /test /testdir none bind 0 0 <--- I added this line >From the host : # ls /testdir a b c >From the container : [r...@test-fedora lenny]# chroot rootfs.lenny/ test-fedo