[Lxc-users] problem with networking phys

pmenier patrick at pmenier.dynalias.net
Sat Feb 5 14:32:12 UTC 2011


Hello all

Using lxc since many months, i decided to add a network card on my host. I 
thought it could be assigned to the lxc-guests i will create later.

But ... it doesn't work.

when i try to start the container i get this error:

root at p733:/opt/lxc/vm1733# lxc-start -n vm1733 -d -o /tmp/outvm1733

root at p733:/opt/lxc/vm1733# cat /tmp/outvm1733
       lxc-start 1296908902.660 ERROR    lxc_conf - failed to move 'eth3' to the 
container : Invalid argument
       lxc-start 1296908902.660 ERROR    lxc_start - failed to create the 
configured network
       lxc-start 1296908902.660 ERROR    lxc_start - failed to spawn 'vm1733'

eth3 exists on the hosts (3 because i tried with another card before)

Here the guest config:

root at p733:/opt/lxc/vm1733# cat config
# Container with network virtualized using a physical network device with name
lxc.utsname = vm1733
lxc.network.type = phys
lxc.network.flags = up
lxc.network.link = eth3
lxc.network.name = eth0
#lxc.network.hwaddr = 01:50:fc:45:6e:35
lxc.network.ipv4 = 192.168.0.69/24

This guest works fine with config veth (lxc.network.link= br0)  but i should 
like to understand...

Thanks
Patrick





More information about the lxc-users mailing list