[Lxc-users] LXC and Slackware 13.37

Laurens Vets laurens at daemon.be
Wed Jul 13 07:24:19 UTC 2011


>>>> 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)?

Yes.

> Apart from its network problem, is the container otherwise running?
> i.e. can you lxc-console into it?

Yes.

I've also enabled proxy_arp and ip forwarding to test, but it did not 
help.

I've never tried OpenVZ, but apparently at Hetzner, you have to add the 
following to its config: "NEIGHBOUR_DEVS=all": "Controls on which 
interfaces to add/remove ARP records for a VE IP, also which interfaces 
to use to query/announce ARP. If this is set to detect, the right 
network interface (the one which is in the same subnet as a VE IP) will 
be chosen automatically. Any other value restores old (as of vzctl 
3.0.19 or older) behavior, when all the possible interfaces were used."




More information about the lxc-users mailing list