I have a problem with my google devices (Chromecast Ultra and Google Home Mini), my HA can’t detect them even they are connected to the network.
I create a new virtual machine in KVM with QCOW2 image as described here: https://www.home-assistant.io/hassio/installation/
I have on other PC an virtual machine created in Virtual Box and there they are discovered.
Using virtual manager, check the ‘NIC’ config for that image. If the ‘network source’ is set to NAT, then that is the problem. If it is set to a bridge, then go to another machine and see if you can ping your hassio.
Both are in the same subnet 192.168.86.xxx, same router the only difference is that my server is connected with LAN cable and the chromecast and google dot are connected on WiFi.
For all 4 I have reserved IP’s.
I’m running out of ideas…but here is another test,
Using your web browser to get to HA’s front end,
if you use something like: http://homeassistant.local:8123/
if the .local works, then you know multicast addresses (and in particular multicast DNS) are getting through. Although I don’t have the devices you’re trying to discover, it is my understanding that they use mDNS for discovery.
I was not able to integrate the google devices as long as I used HA in the virtual car in KVM.
I gave up using HA in the virtual machine in KVM and I moved HA in doker container and now everything works perfectly.
I had similar problems with KVM and discovery of Google Cast devices. Problem was that by default KVM network driver doesn’t allow multicast DNS requests. So you have to edit XML of the VM manually to enable it. Then everything works OK
the issue is that macvtap won’t do multicast by default, mDNS uses multicast, and google’s discovery requires mDNS, or some other mutlicast. trustGuestRxFilters enables it.
One additional note, if you enabled XML editing in virt-manager and edit while the VM is powered on, it looks like your addition gets removed, but it doesn’t actually. Power off the VM and your edit will show up.
Thank you all for your help and I apologize for not being able to provide an feedback faster.
Today I edited XML files after I turned off the VM. I also switched to Network Interface -> Device model to “virtio”.