The nova.compute.vm_mode Module

Possible vm modes for instances.

Compute instance vm modes represent the host/guest ABI used for the virtual machine / container. Individual hypervisors may support multiple different vm modes per host. Available vm modes for a hypervisor driver may also vary according to the architecture it is running on.

The ‘vm_mode’ parameter can be set against an instance to choose what sort of VM to boot.

canonicalize(mode)

Canonicalize the vm mode

Parameters:name – vm mode name to canonicalize
Returns:a canonical vm mode name
get_from_instance(instance)

Get the vm mode for an instance

Parameters:instance – instance object to query
Returns:canonicalized vm mode for the instance
is_valid(name)

Check if a string is a valid vm mode

Parameters:name – vm mode name to validate
Returns:True if @name is valid

Previous topic

The nova.compute.utils Module

Next topic

The nova.compute.vm_states Module

Project Source

This Page