2.9.
CLASS: VM
CHAPTER 2.
API REFERENCE
Arguments:
type
name
description
VM ref
self
The VM
float
multiplier
The new shadow multiplier to set
Return Type:
void
RPC name: send sysrq
Overview:
Send the given key as a sysrq to this VM. The key is specified as a single character (a String of
length 1). This can only be called when the specified VM is in the Running state.
Signature:
void send_sysrq (session_id s, VM ref vm, string key)
Arguments:
type
name
description
VM ref
vm
The VM
string
key
The key to send
Return Type:
void
Possible Error Codes:
VM BAD POWER STATE
RPC name: send trigger
Overview:
Send the named trigger to this VM. This can only be called when the specified VM is in the
Running state.
Signature:
void send_trigger (session_id s, VM ref vm, string trigger)
Arguments:
type
name
description
VM ref
vm
The VM
string
trigger
The trigger to send
Return Type:
void
Possible Error Codes:
VM BAD POWER STATE
RPC name: maximise memory
Overview:
Returns the maximum amount of guest memory which will fit, together with overheads, in the
supplied amount of physical memory. If ’exact’ is true then an exact calculation is performed
using the VM’s current settings. If ’exact’ is false then a more conservative approximation is used.
Signature:
64