[Lxc-users] Problem with attach phys eth0 to container
Serge E. Hallyn
serue at us.ibm.com
Fri Apr 9 01:52:27 UTC 2010
Quoting Przemysław Knycz (pknycz at kolnet.eu):
> Hello!
>
> Config:
> #net eth0
> lxc.network.type = phys
> lxc.network.flags = up
> lxc.network.link = eth0
> lxc.network.name = eth0
> lxc.network.mtu = 1500
> lxc.network.ipv4 = 192.168.136.113/26
>
> # lxc-start -n test1 -f config
> lxc-start: failed to move 'eth0' to the container
>
> # uname -a
> Linux kontener 2.6.32-kolnet #1 SMP Wed Apr 7 17:32:50 CEST 2010
> x86_64 GNU/Linux
>
> # lxc-version
> lxc version: 0.6.5
>
> Any ideas where find problem?
You can't currently move physical devices into containers. You
must use either veth or macvlan. So for instance you should be
able to use the following config:
lxc.network.type = macvlan
lxc.network.flags = up
lxc.network.link = eth0
lxc.network.ipv4 = 192.168.136.113/26
The interface will be renamed to eth0 inside the container.
-serge
More information about the lxc-users
mailing list