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 Pascal Vizeli
parent 5e5aaa21fd
commit 00723f2115

View File

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