[lxc-users] lxc network create - macvlan
Stéphane Graber
stgraber at ubuntu.com
Wed Apr 26 19:49:24 UTC 2017
On Wed, Apr 26, 2017 at 03:37:25PM -0400, Ron Kelley wrote:
> Trying to create a macvlan network type using LXD 2.12 but can’t figure out the syntax. I have a number of vxlan interfaces created via the “ip link” command and would like to create the corresponding LXD networks without having to create separate profiles. I tried the commands "lxc network create vxlan1101 type=physical” and "lxc network create vxlan1101 nictype=macvlan”. Each time, I get "error: Invalid network configuration key:”
>
> I looked at the network configuration document (https://github.com/lxc/lxd/blob/master/doc/networks.md) but don’t see anywhere to specify a nic type.
>
> For what it’s worth, creating a new profile using the “nictype:macvlan" and "parent: vxlan.1101” key values works just fine.
>
>
> Any pointers?
LXD only manages bridges. You can make a bridge that's connected to your
macvlan device with:
lxc network create br-vxlan1101 ipv4.address=none ipv6.address=none bridge.external_interfaces=vxlan.1101
Which you can then attach containers to.
But it sounds like just attaching the container directly using macvlan would be easiest:
lxc network attach vxlan.1101 <container name>
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170426/e37b988f/attachment.sig>
More information about the lxc-users
mailing list