Add condition to run QEMU guest agent for QEMU hypervisor (#752)

The proposed changed is to run the qemu guest agent for QEMU hypervisor. QEMU hypervisor and KVM hypervisor are using the same guest agent.
systemd allow detecting the difference between the two hypervisors. The change is using OR trigger, meaning it will trigger if one of the "ConditionVirtualization" rules is true.
This commit is contained in:
thecode 2020-06-27 11:47:28 +03:00 committed by GitHub
parent 4bcba322ff
commit 43e4bc81d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,8 @@
[Unit]
Description=QEMU Guest Agent
After=syslog.target network.target
ConditionVirtualization=kvm
ConditionVirtualization=|kvm
ConditionVirtualization=|qemu
[Service]
ExecStart=/usr/libexec/qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0