[Lxc-users] Fwd: Failed to start multiple containers asynchronously.

nishant mungse nishantmungse at gmail.com
Wed Sep 7 06:24:39 UTC 2011


hiii
Thnks Permjacov and Matthew

here is my conf file.
And i dont wann use lxc-start -n $conatiner -d option becoz after this
lxc-start is tested i wann use lxc-execute, and my main aim is to run
through lxc-execute.


lxc.utsname = ubuntu
lxc.mount = /home/nishant/ubuntu.fstab
lxc.rootfs = /home/nishant/ubuntu
lxc.pts = 1024

lxc.tty = 4
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm

# <<<< ADD THOSE LINES
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
# lxc.network.name = eth0
lxc.network.ipv4 = 0.0.0.0/24
lxc.cgroup.cpuset.cpus=0-1,3



On Tue, Sep 6, 2011 at 10:25 PM, Permjacov Evgeniy <permeakra at gmail.com>wrote:

> On 09/06/2011 07:38 PM, nishant mungse wrote:
> > Y is it so?
> > I am using different conf file  for each container. The only thing i
> > changed is lxc.tty number.
> > What might be changes in conf file to set new terminal settings.
> > Please help me out ASAP.
> >
> > Regards,
> > Nishant
> It may be stupid question, but did you create /dev/console && /dev/null
> and set correct permissions? I'm running gentoo and incorrect
> permissions/ missing device nodes was the most common trouble makers.
>
> I also had to explicitly turn off many system services, udev for example.
>
> Also, I'm running several containers to use local sites (personal
> redmine for example), and found /etc/init.d/lxc script extremly useful.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110907/01cb060a/attachment.html>


More information about the lxc-users mailing list