I had a perfectly functional Home Assistant VM setup on Arch Linux using libvirt. I’m using bridged networking. The hass
VM receives an IP address from my router via DHCP.
Yesterday I installed docker on the host OS for unrelated work. When I rebooted the system, the Home Assistant guest VM no longer connects properly to the network. To test my theory, I uninstalled docker from the host OS and rebooted. Now the hass
VM connects correctly.
Here is the network info in the guest when functional (without docker installed on the host)
# ha net info
docker:
address: 172.30.32.0/23
dns: 172.30.32.3
gateway: 172.30.32.1
interface: hassio
host_internet: true
interfaces:
- connected: true
enabled: true
interface: enp0s2
ipv4:
address:
- 192.168.2.9/22
gateway: 192.168.1.254
method: auto
nameservers:
- 192.168.1.254
ready: true
ipv6:
address:
- fe80::a0cf:1719:2219:b4f0/64
gateway: null
method: auto
nameservers: []
ready: false
mac: 52:54:00:B7:95:7C
primary: true
type: ethernet
vlan: null
wifi: null
supervisor_internet: true
hass
guest VM net info in non-working state (when docker is enabled on host).
# ha net info
docker:
address: 172.30.32.0/23
dns: 172.30.32.3
gateway: 172.30.32.1
interface: hassio
host_internet: null
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
mac: 52:54:00:B7:95:7C
primary: false
type: ethernet
vlan: null
wifi: null
supervisor_internet: false