With the new mobile interface, we need to implement UI changes in two
places. This lets us simplify our mobile interface so it isn't cluttered
with options that mobile browsers can't easily handle, usually due to size.
This patch implements Suspend and Resume of VMs and CTs via the mobile
web UI.
Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>
The PVE2 API supports suspend/resume of VMs (and now CTs), but the web UI
doesn't make these options available. This patch adds Suspend and Resume
items to the CmdMenus of OpenVZ and QEMU guests. I considered adding the
options to the toolbar, but since it is already pretty full, I opted
against doing so for the moment. Perhaps the various startup options can
be combined into a dropdown menu similar to how the console options are
set up, and the various shutdown opitons combined into another. That
would provide the necesarry space to add the Suspend and Resume options
there.
This patch also provides descriptions for Suspend and Resume tasks in the
task logs, bringing full suspend/resume support to the web GUI.
Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>
Now that the API supports CT suspend/resume, it makes sense to have pvectl
support it, too. It *does* use different names than vzctl does, but it
seems to make sense to be consistent with the API naming in a PVE utility.
Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>
Suspend/resume support for VMs has been in the PVE2 API for some time,
but even though vzctl supports suspend/resume (what they call checkpoint/
restore), the API doesn't yet support suspend/resume for CTs. This patch
adds that support.
Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>