I have created a bridge network through LXD and attached it to a profile, however it is not receiving an IP address. I also have a non managed bridge network that uses my local network’s DHCP server to assign addresses which works without any issues.
Following is the output of lxc network show lxdbr0
:
config:
ipv4.address: 10.58.44.1/24
ipv4.nat: "true"
ipv6.address: fd42:a3f6:e51e:35fa::1/64
ipv6.nat: "true"
description: ""
name: lxdbr0
type: bridge
used_by:
- /1.0/instances/test
- /1.0/profiles/test
managed: true
status: Created
locations:
- none
The test
profile:
config:
user.network-config: |
version: 1
config:
- type: physical
name: eth0
subnets:
- type: dhcp
ipv4: true
description: Test
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
name: test
used_by:
- /1.0/instances/test
And the lxc config show test --expanded
of the test container:
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 20.04 LTS amd64 (release) (20201210)
image.label: release
image.os: ubuntu
image.release: focal
image.serial: "20201210"
image.type: squashfs
image.version: "20.04"
user.network-config: |
version: 1
config:
- type: physical
name: eth0
subnets:
- type: dhcp
ipv4: true
volatile.base_image: e0c3495ffd489748aa5151628fa56619e6143958f041223cb4970731ef939cb6
volatile.eth0.host_name: vethabd69e5b
volatile.eth0.hwaddr: 00:16:3e:1c:56:ab
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.power: RUNNING
volatile.uuid: e2ad9a30-02c9-452a-9d4e-2546687ec2c5
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
ephemeral: false
profiles:
- test
stateful: false
description: ""
Any tips are appreciated.