qemu-guest-agent / systemctl enable failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
qemu-guest-agent service cannot be enabled. It fails with:
$ sudo systemctl enable qemu-guest-agent
Synchronizing state of qemu-guest-
Executing: /lib/systemd/
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
version
=======
$ apt info qemu-guest-agent
Package: qemu-guest-agent
Version: 1:4.2-3ubuntu6.1
Priority: optional
Section: universe/misc
Source: qemu
Origin: Ubuntu
solution
========
$ cat /usr/lib/
[Unit]
Description=QEMU Guest Agent
BindsTo=
After=dev-
[Service]
ExecStart=
Restart=always
RestartSec=0
[Install]
XXX add here the proper required target.
Changed in qemu (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in qemu (Ubuntu): | |
status: | Invalid → Incomplete |
> sudo systemctl enable qemu-guest-agent
that's not how you use it; it's a static service. You don't manually enable/disable it, nor do you start/stop it.
the package provides a udev rule to setup SYSTEMD_WANTS for the agent for any 'org.qemu. guest_agent. 0' device, in /lib/udev/ rules.d/ 60-qemu- guest-agent. rules.
See docs here: https:/ /wiki.libvirt. org/page/ Qemu_guest_ agent