OPNsense Forum

International Forums => German - Deutsch => Topic started by: flames on May 28, 2021, 01:04:15 am

Title: Qemu Guest Agent
Post by: flames on May 28, 2021, 01:04:15 am
Lieber Frank,

vielen Dank für das os-qemu-guest-agent Plugin. Mir sind die fehlenden Features in Eugens (Aborches) FreeBSD Port bekannt.

Женя, в первую очередь тебе огромнейшее спасибо за портирование и что добавил в репозиторий FreeBSD Ports! ПС: второй лог добавил для референции, думаю тут большинству ясно, что fs команды отсутствуют.

Ich habe das Plugin gestern installiert (OPNS 21.1.6) und es funktioniert auch soweit sehr gut! Nur ein Problem, dass es beim OPNS Boot nicht startet (Logs anbei). Allerdings, sobald die OPNS online ist (auch 20min abgewartet nach dem Boot), unter Services - QEMU Guest Agent - Settings -> Klick auf "Apply" ist sofort online und in Proxmox GUI die IPs sichtbar (sonst steht da das bekannte: "guest agent not running").
Evtl. gibt es eine Möglichkeit den GA später zu starten, dass die Abhängigkeiten erfüllt sind, falls es daran liegt. Logs...
1. ohne Debug Login, sofort nach dem Boot (und nach Klick auf apply kommt nicht mehr, aber GA funzt dann)
2. mit aktiviertem Debug Logging (ist zu erwarten, dass die fs-features sich melden, sonst aber nichts neues mehr drin)


Title: Re: Qemu Guest Agent
Post by: wuwzy on May 28, 2021, 09:22:49 am
Yes, I also encountered the same problem. Looking forward to the solution, I would like to thank the author again for his hard work. :)
Title: Re: Qemu Guest Agent
Post by: fraenki on May 28, 2021, 06:11:38 pm
Workaround:
* System: Settings: Tunables -> Add
* Tunable: virtio_console_load, Value: YES
* Reboot

Nach einer besseren Lösung wird noch gesucht:
https://github.com/opnsense/plugins/issues/2405
Title: Re: Qemu Guest Agent
Post by: wuwzy on May 31, 2021, 03:01:34 pm
Workaround:
* System: Settings: Tunables -> Add
* Tunable: virtio_console_load, Value: YES
* Reboot

Nach einer besseren Lösung wird noch gesucht:
https://github.com/opnsense/plugins/issues/2405

Can solve the problem, thank you very much. Send 10,000 blessings again. ;D
Title: Re: Qemu Guest Agent
Post by: Mr. Happy on July 24, 2021, 07:05:05 pm
tried that, but I still get
Code: [Select]
1627146179.753839: critical: error opening channel: No such file or directory
1627146179.753911: critical: error opening channel
1627146179.753959: critical: failed to create guest agent channel
1627146179.753978: critical: failed to initialize guest agent channel
What am I missing?? :-[

--edit
nvm... found it... forgot to enable qemu guest agent in Proxmox for vm...
Title: Re: Qemu Guest Agent
Post by: Antaris on August 08, 2021, 08:32:18 am
Thanks for the great work Frank! Now I can use OPNsense in Proxmox with proper memory management. (ballooning)
Title: Re: Qemu Guest Agent
Post by: sits on September 03, 2021, 11:33:32 am
Thank you!
Solution worked for me too (on Synology VMM).
Title: Re: Qemu Guest Agent
Post by: 36thchamber on December 18, 2023, 11:09:42 pm
https://github.com/opnsense/plugins/issues/2405

I have all running on both sides (Opnsuse and Opnsense), also improved XML based on the git comment https://github.com/opnsense/plugins/issues/2405#issuecomment-939510735 or followed the guide there.
No output in qemu-ga.log, other than "disabling" messages in the debug log.

But there's no connections:
sudo virsh qemu-agent-command $host  '{"execute":"guest-get-osinfo"}' | jq .
error: Guest agent is not responding: QEMU guest agent is not available due to an error

Anyone know of nuances what is typically wrong?