Package virtualization :: Module domain_control
[hide private]
[frames] | no frames]

Module domain_control

source code

Functions [hide private]
 
shutdown(uuid)
Shuts down the domain with the given UUID.
source code
 
start(uuid)
Starts up the domain with the given UUID.
source code
 
suspend(uuid)
Suspends the domain with the given UUID.
source code
 
resume(uuid)
Resumes the domain with the given UUID.
source code
 
reboot(uuid)
Reboots the domain with the given UUID.
source code
 
destroy(uuid)
Destroys the domain with the given UUID.
source code
 
setMemory(uuid, memory)
Sets the max memory usage for the domain with the given UUID.
source code
 
setVCPUs(uuid, vcpus)
Sets the number of vcpus for the domain with the given UUID.
source code
 
_get_domain(uuid)
Lookup the domain by its UUID.
source code
 
_call_domain_control_routine(uuid, routine_name, *args)
Call a function in a domain, optionally with a set of arguments.
source code
Variables [hide private]
  libvirt = None
hash(x)
Function Details [hide private]

shutdown(uuid)

source code 

Shuts down the domain with the given UUID. If the instance is crashed, it is destroyed. If the instance is paused, it is unpaused and shutdown cleanly.

reboot(uuid)

source code 

Reboots the domain with the given UUID. If the system is paused, we unpause and reboot it. If the system is stopped, we start it. If the system is crashed, we destroy and restart it.

_get_domain(uuid)

source code 

Lookup the domain by its UUID. If not found, raise an exception.