Hello, I was trying to setup a quick 2 nodes cluster using 2 bare-metal install of ubuntu 20.04 when I faced this issue.
I configured a bridge br0 on each node to be used by the containers, so far everything is working:
network:
ethernets:
enp0s31f6:
dhcp4: false
dhcp6: false
bridges:
br0:
dhcp4: true
interfaces: [enp0s31f6]
version: 2
cluster is up and running, I can create containers with internal IPs everything works fine.
But I created the following profile to get containers to have 1 internal IP and 1 IP on my LAN :
config:
user.network-config: |
version: 1
config:
- type: physical
name: eth0
subnets:
- type: dhcp
ipv4: true
- type: physical
name: eth1
subnets:
- type: dhcp
ipv4: true
description: LXD profile with private and public networks
devices:
eth0:
name: eth0
network: lxdfan0
type: nic
eth1:
name: eth1
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: local
type: disk
name: lan01
used_by:
- /1.0/instances/ubuntu01
the problem is whenever I try to boot up the container, it gets an IP fine, but the host on which it lives becomes completely unreachable. can’t ping, can’t ssh, other cluster node can’t see it.
I’m kind of out of ideas…