]> git.proxmox.com Git - qemu-server.git/commit
vm start: always reset any failed-state of the VM systemd scope
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 07:13:50 +0000 (09:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 07:14:47 +0000 (09:14 +0200)
commit3d79cf5536e43ca10b8f5a98df3fefbcbfd56d00
tree3ef538c84bf8ad329661b2816dac786e0ebfd977
parent728404c03d2e35065a2e255dc87c4d954ac57321
vm start: always reset any failed-state of the VM systemd scope

The scope can get into failed state for some issues like OOM kills of
the whole scope, in that case a user cannot re-start the VM until
they manually reset it.

Do this for now inline to avoid a pve-common bump as done in [0]
(location was suggested by me thinking we could maybe do it over
dbus, but as we have a stop command here already it probably doesn't
matters)

[0]: https://lists.proxmox.com/pipermail/pve-devel/2023-June/057770.html

Originally-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm