Hello,
I’m trying to reinstall HA, but I keep getting a “Failed QEMU Guest Agent”. Any thoughts on how to fix this?
Hello,
I’m trying to reinstall HA, but I keep getting a “Failed QEMU Guest Agent”. Any thoughts on how to fix this?
If you are using virt-manager:
BTW, the error itself is not really a problem. libvirt on the host uses the channel to talk to the QEMU Guest Agent running on HAOS which in turn can do a few things on the Guest, but again its not so much a problem if the channel is not setup.
Hi @wmaker I’m a bit oblivious to this. I’m using VMWare Workstation 17 Player and I don’t see the option to add the Qemu Guest Agent. Appreciate the help.
I had this same issue and found the network settings in HA were set incorrectly. If your system continues booting to the command line interface then you can check the network by issuing the command: ha> network info It will show the interfaces and you want to make sure the ipv4 address is the same as your home assistant instance. also make sure the gateway address is the same as your router gateway. If you need to change them you can use the command: ha> network update --ipv4-address 192.168.xx.xx/24 (putting in your home assistant address). You can also change the gateway with the command: ha> network update --ipv4-gateway 192.168.xx.xx (putting in your router’s gateway address).
I use libvirt to manage my QEMU/KVM, so I just assumed you were using it too. I don’t know anything really about VMWare Workstation, so can’t help.
Hi @wmaker. I’m trying to ensure that my KVM/QEMU HA VM shuts down gracefully when the host is shut down. My understanding is that without the guest-agent on the HA VM, libvirt will just send an ACPI message to the guest which may or may not shut down the guest gracefully (and it might just be ignored) but that if the guest-agent is running, libvirt will communicate with the guest-agent to ensure a graceful shutdown. I’d appreciate it if you could confirm (or correct) my understanding
That’s my understanding as well.
But in practice I’m not so sure how well HA code gracefully shuts down with guest agent. I’ve not had an issue with HA later reporting file system corruption so that part should be fine with guest agent, but the SQL-lite database may complain. I always try to manually shutdown HA via CLI before shutting down/restarting the host (and even then SQL-Lite may still complain a few times but less so).
Thank you @wmaker Where I was going with this is that I’m setting up NUT with a UPS on the host and I was hoping that the guest VM (haos) would gracefully shut down also. I guess I could try setting up a upsmon (secondary) on the haos VM and have the shutdown command explicitly shutdown HA and then leave the host upsmon to shut down the VM, but I’m not sure if its possible or desirable to install additional software on the haos VM for fear of it being written over on a HA update
Use HA’s NUT Integration.
from my rusty memory… I have NUT running on the Host as both a server and a client (upsmon) and on the HA VM I have HA’s NUT Integration (itself is like upsmon) to talk to the NUT server on the Host. So HA’s NUT Integration has a few sensors providing information it gets from the NUT Server on the Host. I use these sensor triggers like “battery level < X%” to perform an HA shutdown action. If the timing works out (which is not so easy to figure out), the Host will have given HA enough time to shutdown and then itself perform a Host shutdown.
Ah, excellent idea ! I didn’t realise there was a NUT integration. Thank you @wmaker - I’ll give this a shot !