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 the vm mode
| Parameters: | name – vm mode name to canonicalize |
|---|---|
| Returns: | a canonical vm mode name |
Get the vm mode for an instance
| Parameters: | instance – instance object to query |
|---|---|
| Returns: | canonicalized vm mode for the instance |
Check if a string is a valid vm mode
| Parameters: | name – vm mode name to validate |
|---|---|
| Returns: | True if @name is valid |