On Thu, 2011-01-20 at 13:29 -0200, Sergio Daniel Troiano wrote:
> 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, /bin, /etc and so on)
> besides you must create no-shared directories (for example apache
> logs) you'll mount them when you start the container.
> 
> You can use DEBUG mode when  you start the container "lxc-start -n web
> -d -lDEBUG -o log_debug_file  -f lxc.conf"
> i use 2 config files , the first one is lxc.conf 

Thanks so much! This will be a great starting point for me.

Best regards,
Andre

> 
> lxc.utsname = web
> lxc.mount = config.fstab
> lxc.rootfs = /container
> lxc.tty = 12
> lxc.pts = 1024
> lxc.cgroup.cpuset.cpus = 0,1,2,3,4,5,6,7
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br0
> lxc.network.name = eth0
> lxc.network.ipv4 = 192.168.1.241/24
> lxc.cgroup.devices.allow = a
> 
> The second one is config.fstab
> 
> 
> ## Apache logs, fcgid
> /home/skel.containers/web/usr/local/apache2/logs    
> /container/usr/local/apache2/logs  bind  defaults,bind  0 0
> ## Apache conf
> /home/skel.containers/web/usr/local/apache2/conf    
> /container/usr/local/apache2/conf  bind  defaults,bind  0 0
> none /container/proc proc defaults 0 0
> none /container/dev/pts devpts newinstance 0 0
> 
> 
> Sergio D. Troiano
> Development Team.
> 
> 
> Av. de los Incas 3085
> (C1426ELA) Capital Federal 
> 
> 
> On Thu, 2011-01-20 at 13:51 -0200, Andre Nathan wrote: 
> > On Thu, 2011-01-20 at 11:44 -0200, Sergio Daniel Troiano wrote:
> > > Sure but there are a lot of things i have found about lxc , how far
> > > are you? where are you  stuck?
> > 
> > I'm just beginning with LXC... I have tried to use the lxc-sshd script
> > as a starting point but I still haven't got it to work yet.
> > 
> > Do you have apache starting up as a normal user? Are you using read-only
> > bind mounts? Which directories did you have to make user-specific, and
> > which are shared by the host and the containers?
> > 
> > Thanks a lot,
> > Andre
> > 
> > 



------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to