OPNsense Forum

English Forums => General Discussion => Topic started by: 3XTron on August 31, 2017, 09:16:28 am

Title: KVM-Qemu Guest Agent
Post by: 3XTron on August 31, 2017, 09:16:28 am
Hi, is planned to support and implement KVM-Qemu Guest Agent as plugin?
Title: Re: KVM-Qemu Guest Agent
Post by: franco on August 31, 2017, 09:22:28 am
Hi there,

Do you happen to know if FreeBSD ports has an appropriate package for this?


Cheers,
Franco
Title: Re: KVM-Qemu Guest Agent
Post by: 3XTron on August 31, 2017, 09:52:10 am
http://libvir-list.redhat.narkive.com/TDjBSCe0/libvirt-qemu-agent-command-via-isa-serial-for-freebsd#post11
This can help?
Title: Re: KVM-Qemu Guest Agent
Post by: fabian on August 31, 2017, 10:02:45 am
From this post the tool is inside
https://www.freshports.org/emulators/qemu-sbruno/

However this looks like a special branch of the original from the package description.
Title: Re: KVM-Qemu Guest Agent
Post by: franco on August 31, 2017, 10:04:40 am
Not entirely. But there is a quemu-ga binary in the stock qemu package. It just looks like nobody wrote the RC scripts for its deployment in FreeBSD. I can try to build a "qemu-ga" standalone package that would do this, but no promises...


Cheers,
Franco
Title: Re: KVM-Qemu Guest Agent
Post by: 3XTron on September 01, 2017, 01:40:13 pm
It will be a great news if you will port, support and implement KVM-Qemu Guest Agent as plugin.
Since KVM-Qemu is using in cloud hosting and VPS hosting very wide.
I'm using OPNsens in Proxmox VE.
Thank you !
Title: Re: KVM-Qemu Guest Agent
Post by: hightechrdn on January 11, 2018, 01:25:18 am
Any progress or updates with the qemu guest agent plugin?
Title: Re: KVM-Qemu Guest Agent
Post by: franco on January 11, 2018, 12:26:29 pm
None that I know of, sorry.
Title: Re: KVM-Qemu Guest Agent
Post by: mimugmail on January 11, 2018, 12:53:42 pm
What is the benefit of this pkg? It's more FreeBSD related, nothing useful for OPNsense I'd guess.
Title: Re: KVM-Qemu Guest Agent
Post by: mwelters on March 29, 2018, 01:02:58 pm
The virtualisation host can make opnsense shutdown/reboot without simply killing it
Title: Re: KVM-Qemu Guest Agent
Post by: moonman on May 10, 2018, 05:17:56 am
The virtualisation host can make opnsense shutdown/reboot without simply killing it

It doesn't need qemu-guest for that. If acpi is enabled for the VM, it will use an acpi call to get the VM to shutdown properly. AFAIK acpi is enabled by default.

More info: https://pve.proxmox.com/wiki/Qemu-guest-agent
Title: Re: KVM-Qemu Guest Agent
Post by: mircsicz on May 19, 2018, 02:28:22 am
I'ld love to see a package for the GA too... ;-)
Title: Re: KVM-Qemu Guest Agent
Post by: ssl-3 on May 30, 2018, 08:44:28 am
If the only purpose is to enable a clean shutdown, as moonman said:  It works fine already with qemu using ACPI.  (Edit: I just checked.  Reboot works cleanly as well.)

Just instruct qemu to shut down the opnsense guest, and the guest goes through a proper shutdown procedure.

If there are other things that might be wanted from a guest package, I'm all ears, but currently FreeBSD/OPNsense already supports all of the important virtio drivers and proper shutdown with qemu.  There doesn't seem to be any functionality left to add.
Title: Re: KVM-Qemu Guest Agent
Post by: proofy on July 20, 2018, 01:38:56 pm
The agent is a two-way communication channel. For example, it is also possible to display the IPs in the host. That's why I'm waiting very longingly for the package for the agent.
Title: Re: KVM-Qemu Guest Agent
Post by: doug.dimick on February 19, 2019, 06:57:36 pm
As noted, the agent is not needed to cleanly shut down a FreeBSD/OPN guest. And although having the IPs in the PVE console would be nice to have, it's doesn't really add much value.

But what would be a compelling use case is the ability to quiesce a FreeBSD/OPN guest for clean snapshots.

While there is a partially functional port (https://github.com/aborche/qemu-guest-agent), fsfreeze doesn't yet work. So I guess I'm bumping this just to add visibility that there is work in progress on an agent.
Title: Re: KVM-Qemu Guest Agent
Post by: ESL-JS on May 21, 2019, 01:00:55 am
A proposed use case for the guest-agent: live migration. QEMU requires the guest agent to be able to perform live migration functions.
Title: Re: KVM-Qemu Guest Agent
Post by: ccesario on September 12, 2019, 08:50:13 pm
Hi folks,
Is there any progress with this package/port ?

Regards

Carlos
Title: Re: KVM-Qemu Guest Agent
Post by: franco on September 13, 2019, 12:26:49 pm
The check is simple: is there a portable software in the FreeBSD ports tree with only the guest agent and little to no dependencies?

yes -> there is progress
no -> there is no progress


Cheers,
Franco
Title: Re: KVM-Qemu Guest Agent
Post by: ccesario on November 17, 2019, 02:41:10 pm
Hi Franco,

I believe that now it is possible port it.

Cmmited on freebsd  ports.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232949

Other references
https://redmine.pfsense.org/issues/9877


Best regards
Carlos
Title: Re: KVM-Qemu Guest Agent
Post by: ccesario on December 21, 2019, 08:58:56 pm
Hi folks.

Is there  any  ETA for add this plugin?

Regards
Title: Re: KVM-Qemu Guest Agent
Post by: mimugmail on December 22, 2019, 09:04:57 am
Please Open a request in GitHub, better to track
Title: Re: KVM-Qemu Guest Agent
Post by: franco on December 22, 2019, 09:45:01 am
Please please please bark up the right tree, https://github.com/aborche/qemu-guest-agent is *not* in FreeBSD ports and we don't want to maintain it in our tree with all of the qemu update stuff going on in FreeBSD...


Cheers,
Franco
Title: Re: KVM-Qemu Guest Agent
Post by: Ypsilon on March 22, 2021, 12:33:02 pm
Since a few day it's available in freebsd ports, perhaps worth a look  ;)
https://svnweb.freebsd.org/ports/head/emulators/qemu-guest-agent (https://svnweb.freebsd.org/ports/head/emulators/qemu-guest-agent)
Title: Re: KVM-Qemu Guest Agent
Post by: Ypsilon on March 22, 2021, 02:16:41 pm
Posted this without looking at the repo:
https://github.com/opnsense/plugins/pull/2293 (https://github.com/opnsense/plugins/pull/2293)

Great!
Title: Re: KVM-Qemu Guest Agent
Post by: franco on March 22, 2021, 08:26:56 pm
As promised... but Frank beat me to it. ;)


Cheers,
Franco