Re: [Lxc-users] lxc & usrquota

2011-01-26 Thread Trent W. Buck
trentb...@gmail.com (Trent W. Buck) writes: > If I'm reading this correctly, the hard, block, usrquota I set on /home > isn't being enforced within containers. > > root@omega:~# repquota -psn /home > *** Report for user quotas on device /dev/mapper/omega-home > Block grace time: 7days; Inode grace

Re: [Lxc-users] upstart /etc/init/screen-cleanup.conf

2011-01-26 Thread Trent W. Buck
"Serge E. Hallyn" writes: > Quoting Trent W. Buck (trentb...@gmail.com): >> A race condition in my containers means that occasionally >> /var/run/screen/ isn't present when startup finishes and I SSH in. >> This results in an error when normal users try to run screen. >> >> I believe the race is

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Dean Mao
Yeah, the only thing you really can't bind-mount as read-only is probably the /var directory since all kinds of runtime stuff goes into there. However, that directory is usually pretty small anyway (mine is only 4MB). If you use a debian based distro it's probably important to remove any cached d

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Patrick Westphal
> Here's mine, if it helps anyone. I use this for all my containers so > that I don't need to have a bunch of duplicated files for every lxc > container running on my system: > > lxc.mount.entry=proc /var/lib/lxc/squeeze1/rootfs/proc proc > nodev,noexec,nosuid 0 0 > lxc.mount.entry=devpts /var

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Serge E. Hallyn
Quoting Patrick Westphal (patrick.westp...@inqbus.de): > Am 20.01.2011 16:29, schrieb Sergio Daniel Troiano: > >Andre, > > > >I'm using Slackware and i've compiled lxc-7.2 because when i tried > >to use lxc-7.3 i couldnt mount anything within the container. > > > >You have to create a root envirome

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Dean Mao
Here's mine, if it helps anyone. I use this for all my containers so that I don't need to have a bunch of duplicated files for every lxc container running on my system: lxc.mount.entry=proc /var/lib/lxc/squeeze1/rootfs/proc proc nodev,noexec,nosuid 0 0 lxc.mount.entry=devpts /var/lib/lxc/squeeze1

Re: [Lxc-users] upstart /etc/init/screen-cleanup.conf

2011-01-26 Thread Serge E. Hallyn
Quoting Trent W. Buck (trentb...@gmail.com): > A race condition in my containers means that occasionally > /var/run/screen/ isn't present when startup finishes and I SSH in. > This results in an error when normal users try to run screen. > > I believe the race is against my lxc integration job: >

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Patrick Westphal
Hi Sergio, > > you can use the root mount point ("/") or create your own > root-mount-point, I prefered to use my own mount point called > "/container/" . So do I. :) > Within container's direrctory i copied all the necessary dirs and > files (/usr/, /etc/ , /bin ). > Remember to change

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Sergio Daniel Troiano
Hi Patrick, you can use the root mount point ("/") or create your own root-mount-point, I prefered to use my own mount point called "/container/" . Within container's direrctory i copied all the necessary dirs and files (/usr/, /etc/ , /bin ). Remember to change config file to change rootfs m

Re: [Lxc-users] An application container for apache?

2011-01-26 Thread Patrick Westphal
Am 20.01.2011 16:29, schrieb Sergio Daniel Troiano: Andre, I'm using Slackware and i've compiled lxc-7.2 because when i tried to use lxc-7.3 i couldnt mount anything within the container. You have to create a root enviroment , i use /container, here are all shared files and directories (/usr