From 528064383be72373b726c491c3e18820cdb1ecc0 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 27 Oct 2021 22:20:47 +0100 Subject: [PATCH] Add support for QEMU Guest Agent --- README.md | 1 + quickemu | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index b267d03..21e16ad 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ comprehensive support for macOS and Windows**. * Full SPICE support including host/guest clipboard sharing * VirtIO-webdavd file sharing for Linux and Windows guests * VirtIO-9p file sharing for Linux and macOS guests + * [QEMU Guest Agent support](https://wiki.qemu.org/Features/GuestAgent); provides access to a system-level agent via standard QMP commands * Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*) * VirGL acceleration * USB device pass-through diff --git a/quickemu b/quickemu index f8c3a80..acf9c59 100755 --- a/quickemu +++ b/quickemu @@ -804,6 +804,8 @@ function vm_boot() { -rtc base=localtime,clock=host,driftfix=slew -spice ${SPICE} -device virtio-serial-pci + -chardev socket,id=agent0,path="${VMDIR}/${VMNAME}-agent.sock",server=on,wait=off + -device virtserialport,chardev=agent0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=vdagent0,name=vdagent -device virtserialport,chardev=vdagent0,name=com.redhat.spice.0 -device virtio-rng-pci,rng=rng0