Score:0

VM Guest OS (homeassistant) on VLAN aware bridge does not fetch ip from dchp

ua flag

I've setup VLAN aware bridges on the Host OS (Ubuntu Server 20.04 with KVM and using Netplan) and my guest OS (homeassistant OS) is not fetching the ip address from a dhcp server (external, not on host).

I would like to use a dhcp server over static defined ip address for ease of tracking. (I'm more comfortable with setting a static lease), after a few days working with outdated tutorials and advice I've come to the setup listed below.

I honestly have no idea what's missing, or what I'm doing wrong at this point and at my wits end. Infomation on how to setup KVM in bridged mode in non-NAT way and use dchp for ip assignement, each link shows me a different way of doing things, (NetworkManager, brcli, nmcli). This is the furthest I got after troubleshooting issues after issues, at one point losing network connection completely the moment eno1 was bridged and having to locally access the host box to revert changes. I feel like I'm so close to the getting this part working, I still have to see if I can get docker [currently removed] working after this, help please?

Info of current setup:

Interface on host:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 54:b2:03:8d:13:a1 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
    inet 192.168.1.10/24 metric 100 brd 192.168.1.255 scope global dynamic eno1
       valid_lft 58732sec preferred_lft 58732sec
    inet6 fe80::56b2:3ff:fe8d:13a1/64 scope link
       valid_lft forever preferred_lft forever
3: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:ab:d5:43:15:ed brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether c6:d7:e2:8c:cb:b8 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::c4d7:e2ff:fe8c:cbb8/64 scope link
       valid_lft forever preferred_lft forever
5: vlan1@eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000
    link/ether ba:14:1e:95:97:be brd ff:ff:ff:ff:ff:ff

Netplan of host:

network:
  version: 2
  renderer: networkd
  ethernets:
      eno1:
          dhcp4: yes
  bridges:
      br0:
          dhcp4: yes
          interfaces:
              - vlan1
  vlans:
    vlan1:
      dhcp4: yes
      id: 1
      link: eno1
      macaddress: ba:14:1e:95:97:be

KVM Net-Edit:

<network>
  <name>br0</name>
  <forward mode="bridge"/>
  <bridge name="br0"/>
</network>

Guest OS interface setup:

    <interface type='bridge'>
      <mac address='ba:14:1e:95:97:be'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>

ha network info on Guest OS:

docker:
  address: 172.30.32.0/23
  dns: 172.30.32.3
  gateway: 172.30.32.1
  interface: hassio
host_internet: false
interfaces:
- connected: true
  enabled: true
  interface: enp0s2
  ipv4:
    address: []
    gateway: null
    method: auto
    nameservers: []
    ready: false
  ipv6:
    address: []
    gateway: null
    method: auto
    nameservers: []
    ready: false
  primary: false
  type: ethernet
  vlan: null
  wifi: null
supervisor_internet: false
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.