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.
13 lines
290 B
Desktop File
13 lines
290 B
Desktop File
[Unit]
|
|
Description=QEMU Guest Agent
|
|
After=syslog.target network.target
|
|
ConditionVirtualization=|kvm
|
|
ConditionVirtualization=|qemu
|
|
|
|
[Service]
|
|
ExecStart=/usr/libexec/qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|