aborche / qemu-guest-agent

QEMU Guest Agent patched for FreeBSD
155 stars 16 forks source link

Support for newer version #23

Open MirLach opened 2 years ago

MirLach commented 2 years ago

I found there are some patches in the upstream for FreeBSD https://patchew.org/QEMU/20221026175518.2636846-1-kkostiuk@redhat.com/ qga: Add initial FreeBSD support qga: Move Linux-specific FS freeze/thaw code to a separate file qga: Add UFS freeze/thaw support for FreeBSD qga: Add shutdown/halt/reboot support for FreeBSD qga: Add support for user password setting in FreeBSD qga: Move HW address getting to a separate function qga: Add HW address getting for FreeBSD

Maybe it can help you with porting newer versions of QEMU Guest Agent.

fraenki commented 1 year ago

From my testing the guest agent in the FreeBSD port of qemu 7.2.0 is working just fine without additional patches:

$ sudo virsh qemu-agent-command testvm.example.com '{"execute":"guest-get-host-name"}'
{"return":{"host-name":"testvm.example.com"}}

$ sudo virsh qemu-agent-command testvm.example.com '{"execute":"guest-network-get-interfaces"}'
{"return":[{"name":"vtnet0","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.123.123","prefix":24}, ...

I've not done extensive testing, but these basic commands are apparently working.

gushmazuko commented 10 months ago

QEMU Guest Agent for TrueNAS 13: https://github.com/gushmazuko/truenas-qemu-guest-agent