Thanks.  It seems the command works for the local server only.  When I try to 
do this from a remote server ("lxc network attach vxlan.1101 
QA-Server-04:centos-vm4), I get “error: not found”.  Is that expected?


Also, it seems the command, "lxc network show <remote_server>:” has a bug as 
the command returns with “error: json: cannot unmarshal array into Go value of 
type api.Network".  I have just filed a bug (#3230) to track this issue.






> On Apr 26, 2017, at 3:49 PM, Stéphane Graber <stgra...@ubuntu.com> wrote:
> 
> 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
> _______________________________________________
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to