Well I used the lxc-debian (Squeeze) template: # /usr/lib/lxc/templates/lxc-debian -p /srv/lxc/<container>
And I didn't really change the default configuration file instead of the `lxc.utsname' and the `lxc.network.hwaddr' parameters. On Mon, 2011-12-05 at 17:09 +0100, Daniel Baumann wrote: > severity 651077 normal > tag 651077 moreinfo > thanks > > On 12/05/2011 04:45 PM, Spack wrote: > > If you create two container using virtual Ethernet interfaces, the first > > one > > will load fine but with the second one, you will have the following > > error: > > how did you create the container (which template)? what are the > veth.name entries in both of your container configs? >
# /srv/lxc/container1/config ## Container lxc.utsname = container1 lxc.rootfs = /srv/lxc/container1/rootfs lxc.tty = 6 lxc.pts = 1024 #lxc.console = /srv/log/lxc/.console ## Capabilities lxc.cap.drop = sys_admin sys_module mac_admin mac_override ## Devices # Allow all devices #lxc.cgroup.devices.allow = a # Deny all devices lxc.cgroup.devices.deny = a # Allow to mknod all devices (but not using them) lxc.cgroup.devices.allow = c *:* m lxc.cgroup.devices.allow = b *:* m # /dev/console lxc.cgroup.devices.allow = c 5:1 rwm # /dev/fuse lxc.cgroup.devices.allow = c 10:229 rwm # /dev/null lxc.cgroup.devices.allow = c 1:3 rwm # /dev/ptmx lxc.cgroup.devices.allow = c 5:2 rwm # /dev/pts/* lxc.cgroup.devices.allow = c 136:* rwm # /dev/random lxc.cgroup.devices.allow = c 1:8 rwm # /dev/rtc lxc.cgroup.devices.allow = c 254:0 rwm # /dev/urandom lxc.cgroup.devices.allow = c 1:9 rwm # /dev/zero lxc.cgroup.devices.allow = c 1:5 rwm ## Limits #lxc.cgroup.cpu.shares = 1024 #lxc.cgroup.cpuset.cpus = 0 #lxc.cgroup.memory.limit_in_bytes = 256M #lxc.cgroup.memory.memsw.limit_in_bytes = 1G ## Filesystem lxc.mount.entry = proc /srv/lxc/container1/rootfs/proc proc nodev,noexec,nosuid 0 0 lxc.mount.entry = sysfs /srv/lxc/container1/rootfs/sys sysfs defaults,ro 0 0 #lxc.mount.entry = /srv/share/ /srv/lxc/container1/rootfs/srv/ none defaults,bind 0 0 #lxc.mount.entry = /srv/ /srv/lxc/container1/rootfs/srv/ none defaults,bind 0 0 ## Network lxc.network.type = veth lxc.network.flags = up lxc.network.hwaddr = 00:FF:00:00:00:01 lxc.network.link = br0 lxc.network.mtu = 1500 lxc.network.name = eth0 lxc.network.veth.pair = veth-