Lxc lxd containers using vlan tagging

networking

#1

Hello all,

I would like to know if there’s any way how to configure the lxd or lxc host and the containers using bond, lacp, mode 802.3ad at the host side. (the only way to access the network is with vlan tagging, the host is attached to 6 different vlans) Thanks.


#2

Openvswitch supports all features you mentioned I think.


#3

Thanks I’ll take a look.


#4

Anyone know why do I get this errors after configure a bridge?

rafise@01:~$ lxc start c1
Error: Failed to run: /usr/lib/lxd/lxd forkstart c1 /var/lib/lxd/containers /var/log/lxd/c1/lxc.conf:
Try lxc info --show-log c1 for more info
rafise@01:~$ lxc info --show-log c1
Name: c1
Remote: unix://
Architecture: x86_64
Created: 2018/10/29 03:08 UTC
Status: Stopped
Type: persistent
Profiles: default

Log:

lxc c1 20181029031330.914 ERROR utils - utils.c:run_command:1545 - failed to exec command
lxc c1 20181029031330.915 ERROR network - network.c:lxc_ovs_attach_bridge:1871 - Failed to attach “bond0” to openvswitch bridge “veth091CCS”:
lxc c1 20181029031330.916 ERROR network - network.c:instantiate_veth:171 - Operation not permitted - Failed to attach “veth091CCS” to bridge “bond0”
lxc c1 20181029031330.959 ERROR network - network.c:lxc_create_network_priv:2441 - Failed to create network device
lxc c1 20181029031330.959 ERROR start - start.c:lxc_spawn:1595 - Failed to create the network
lxc c1 20181029031330.959 ERROR start - start.c:__lxc_start:1910 - Failed to spawn container “c1”
lxc c1 20181029031330.959 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:840 - Received container state “STOPPING” instead of “RUNNING”
lxc 20181029031330.979 WARN commands - commands.c:lxc_cmd_rsp_recv:130 - Connection reset by peer - Failed to receive response for command “get_state”