2.9.
CLASS: VM
CHAPTER 2.
API REFERENCE
RPC name: hard reboot
Overview:
Stop executing the specified VM without attempting a clean shutdown and immediately restart
the VM.
Signature:
void hard_reboot (session_id s, VM ref vm)
Arguments:
type
name
description
VM ref
vm
The VM to reboot
Return Type:
void
Possible Error Codes:
VM BAD POWER STATE
,
OTHER OPERATION IN PROGRESS
,
OPERATION NOT ALLOWED
,
VM IS TEMPLATE
RPC name: suspend
Overview:
Suspend the specified VM to disk. This can only be called when the specified VM is in the Running
state.
Signature:
void suspend (session_id s, VM ref vm)
Arguments:
type
name
description
VM ref
vm
The VM to suspend
Return Type:
void
Possible Error Codes:
VM BAD POWER STATE
,
OTHER OPERATION IN PROGRESS
,
OPERATION NOT ALLOWED
,
VM IS TEMPLATE
RPC name: resume
Overview:
Awaken the specified VM and resume it. This can only be called when the specified VM is in the
Suspended state.
Signature:
void resume (session_id s, VM ref vm, bool start_paused, bool force)
Arguments:
type
name
description
VM ref
vm
The VM to resume
bool
start paused
Resume VM in paused state if set to true.
bool
force
Attempt to force the VM to resume. If this
flag is false then the VM may fail pre-resume
safety checks (e.g. if the CPU the VM was
running on looks substantially different to the
current one)
61