On 13/07/2011, at 4:29 PM, Laurens Vets wrote: > 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
/etc/rc.d/rc.inet1.conf is set up with this too (plus netmask & gateway)? Apart from its network problem, is the container otherwise running? i.e. can you lxc-console into it? chris > 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. > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Lxc-users mailing list > Lxc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-users Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users