[Lxc-users] LXC and Slackware 13.37

Laurens Vets laurens at daemon.be
Wed Jul 13 06:29:37 UTC 2011


Hello,

>> I'm trying to configure LXC on Slackware 13.37 following these 2
>> guides: http://www.vislab.uq.edu.au/howto/lxc.html &
>> http://www.vislab.uq.edu.au/howto/lxc/create_container.html. 
>> However, I
>> cannot reach the LXC guest when I try to connect to it.
>
> In the howto I see the following line for the config-file:
> lxc.network.ipv4 = 0.0.0.0
>
> Did you replace that 0.0.0.0 with the desired ip-number of the
> container?

Yes, following is my config file:

lxc.utsname = dns
lxc.mount   = /jails/dns/etc/fstab
lxc.rootfs  = /jails/dns
lxc.tty     = 6
lxc.network.type   = veth
lxc.network.flags  = up
lxc.network.link   = br0
lxc.network.hwaddr = 00:50:56:00:07:fc # Given to me by Hetzner
lxc.network.ipv4   = 188.x.x.x/26
lxc.network.name   = eth0
lxc.network.mtu    = 1500
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
# /dev/pts/* - pts namespaces are "coming soon"
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm

That 188.x.x.x address is in the same range as the address of the host.




More information about the lxc-users mailing list