qemu-server/PVE
Dominik Csapak 8989736707 change shutdown behaviour on suspended vm
previously, when shutting down a suspended vm,
we successfully send the shutdown command to it,
but it will not shutdown (because it is suspended)

there we will run into the timeout and either
bail out with an error, or kill the process

when we not kill the process and resume the vm,
it will instantly shutdown, because of the previous
command

this patch checks the status of the vm beforehand,
and either bails out with an error that you cannot
shutdown a suspended vm, or stops the vm with the
correct qmp command (depending of forceStop)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-12 17:18:55 +02:00
..
API2 change shutdown behaviour on suspended vm 2016-04-12 17:18:55 +02:00
CLI use pve-doc-generator to generate man pages 2016-04-08 07:36:29 +02:00
VZDump fix call to lock_config and config_file 2016-03-09 18:08:26 +01:00
Makefile Refactor basic config-related methods 2016-03-08 11:41:59 +01:00
QemuConfig.pm Rework snapshot code, has_feature 2016-03-08 11:42:37 +01:00
QemuMigrate.pm Refactor basic config-related methods 2016-03-08 11:41:59 +01:00
QemuServer.pm property string update: watchdog 2016-04-01 09:31:40 +02:00
QMPClient.pm qmpclient: use guest-sync-delimited 2014-12-02 13:09:53 +01:00