[lxc-devel] lxc_veth_create() fails

richard -rw- weinberger richard.weinberger at gmail.com
Fri Mar 11 13:52:59 UTC 2011


On Fri, Mar 11, 2011 at 7:55 AM, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> On 03/10/2011 10:45 PM, richard -rw- weinberger wrote:
>>
>> hi!
>>
>> i'm trying to use lxc 0.7.4 on centos 5.5 (kernel 2.6.37.3).
>>
>> lxc-start fails when i configure a network.
>> e.g:
>> lxc-start: failed to create vethivvZMG-vethGjB0lG : Operation not
>> supported
>> lxc-start: failed to create netdev
>> lxc-start: failed to create the network
>> lxc-start: failed to spawn 'c0'
>> lxc-start: No such file or directory - failed to remove cgroup
>> '/cgroup/c0'
>>
>> it fails within lxc_veth_create():
>> err = netlink_transaction(&nlh, nlmsg, answer);
>> err becomes -95.
>>
>> within netlink_transaction() this condition leads to the error.
>> answer->nlmsghdr.nlmsg_type == NLMSG_ERROR
>>
>> this is my configuration:
>> lxc.utsname = c0
>> lxc.network.type = veth
>> lxc.network.flags = up
>> lxc.network.link = bridge0
>> lxc.network.hwaddr = a1:b2:c3:d4:e5:f6
>> lxc.network.ipv4 = 10.0.2.41/24
>> lxc.network.name = eth0
>> lxc.mount = /lxc/_cfg/c0/fstab
>> lxc.rootfs = /lxc/c0/
>>
>>
>> any ideas why it fails?
>> without a network configuration it works fine...
>
> Is it possible the veth's kernel module is not loaded and module auto-load
> is disabled ?
>

damn it!
CONFIG_VETH is not set...
it's time to build the kernel myself.

-- 
Thanks,
//richard




More information about the lxc-devel mailing list