List of all Virtual Machine statuses

Egor

New Member
Nov 21, 2016
28
1
3
32
I can get the status of a virtual machine by using the command
Code:
pvesh get /nodes/pve/qemu/100/status/current

For now, I have seen 3 different values used for this field: paused, running, stopped.
What is the total list of all possible values and where can I look up theirs meaning?
 
there are no concrete plans to change this at the moment, but there is no guarantee on the API level about the format of the returned object.

AFAICT with a quick glance at the code, status is either "running" or "stopped", and qmpstatus is whatever qemu itself says about the status, which is actually either "running" or "paused", but if the VM is not running at all we also set it to "stopped" (since we can't ask qemu ;)). I might have missed an assignment somewhere though, so feel free to check yourself.
 
  • Like
Reactions: Egor
for qmpstatus there is also the status: prelaunch

which it does say when the qemu process is started but execution of the vm has not started yet (e.g. when making a backup or when setting the "stop cpu on startup" option)
 
  • Like
Reactions: Egor
correct (serves me right for only checking the human monitors help output - prelaunch is treated as a substate of paused there ;))
 
  • Like
Reactions: Egor
Can we get all possible values for status and qmpstatus? The API does not specify these.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!