Hello everyone, I’m a newbie whith LXC and I’m starting to “play” with them.
If understood well, every new container using a linux bridge to connect with the host machine.
For my scenario I want to have the Openvswitch instead of the Linuxbridge, I found this topic in stackoverflow https://stackoverflow.com/questions/34021070/lxc-with-open-vswitch.
Following the steps, I change the config file of my container (named: c1), but now I can not start the container.
The config file (/var/lib/lxc/c1):
# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu # Parameters passed to the template: # Template script checksum (SHA-1): c2e4e142c5a5b7d033c25e2207bd4c500368e0b7 # For additional config options, please look at lxc.container.conf(5) # Uncomment the following line to support nesting containers: #lxc.include = /usr/share/lxc/config/nesting.conf # (Be aware this has security implications) # Common configuration lxc.include = /usr/share/lxc/config/ubuntu.common.conf # Container specific configuration lxc.rootfs = /var/lib/lxc/c1/rootfs lxc.rootfs.backend = dir lxc.utsname = c1 lxc.arch = amd64 # Network configuration lxc.network.type = veth #lxc.network.link = lxcbr0 lxc.network.flags = up lxc.network.hwaddr = 00:16:3e:c0:f3:ad lxc.network.script.up = /etc/lxc/ifup # Interface up configuration lxc.network.script.down = /etc/lxc/ifdown # Interface down configuration lxc.network.veth.pair = lxc0 #lxc.network.hwaddr = 00:16:3e:15:b3:62 lxc.network.ipv4 = 192.168.100.10
The default.conf file (/etc/lxc)
lxc.network.type = veth lxc.network.link = mybrdige lxc.network.flags = up lxc.network.hwaddr = 00:16:3e:xx:xx:xx
I’m kindly asking you for some input