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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to