qemu-server/PVE/QemuServer
Stefan Reiter babf613a08 refactor: split check_running into _exists_ and _running_
vm_exists_on_node in PVE::QemuConfig checks if a config file for a vmid
exists

vm_running_locally in PVE::QemuServer::Helpers checks if a VM is running
on the local machine by probing its pidfile and checking /proc/.../cmdline

check_running is left in QemuServer for compatibility, but changed to
simply call the two new helper functions.

Both methods are also correctly mocked for testing snapshots.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2019-11-20 16:29:23 +01:00
..
Agent.pm qemu agent: fixup error message letter-case 2018-07-11 11:26:00 +02:00
Cloudinit.pm cloudinit: fix vm start hanging with disk on ZFS 2019-10-18 21:40:34 +02:00
Helpers.pm refactor: split check_running into _exists_ and _running_ 2019-11-20 16:29:23 +01:00
ImportDisk.pm qm importdisk: tell user to what VM disk we actually imported 2019-10-29 19:11:21 +01:00
Makefile refactor: create QemuServer::Helpers and move file/dir code 2019-11-20 16:29:23 +01:00
Memory.pm refactor hugepages_size conf 2019-10-29 17:58:53 +01:00
OVF.pm Initial support for importing OVF virtual machines 2017-09-25 13:31:55 +02:00
PCI.pm PCIe passthrough: fixup: avoid addr conflict and cleanup a bit 2019-09-06 19:27:30 +02:00
USB.pm usb: Add USB3 capabilities to Spice USB devices 2019-09-21 13:22:17 +02:00