Line 11: | Line 11: | ||
==Optional Data Parameters== | ==Optional Data Parameters== | ||
*{$hostname}: The hostname of the [[glossary#Virtual Machine|virtual machine]], it must be unique and not currently in use on any other server or [[glossary#Virtual Machine|virtual machine]] in [[glossary#LEAP|LEAP]]. | *{$hostname}: The hostname of the [[glossary#Virtual Machine|virtual machine]], it must be unique and not currently in use on any other server or [[glossary#Virtual Machine|virtual machine]] in [[glossary#LEAP|LEAP]]. | ||
+ | *{$password}: The root password of the [[glossary#Virtual Machine|virtual machine]], the password will be changed on the [[glossary#Virtual Machine|virtual machine]] itself. | ||
*{$memory}: The amount of RAM assigned to the [[glossary#Virtual Machine|virtual machine]] in kilobytes, it must be greater than 512 MB (524,288 KB). | *{$memory}: The amount of RAM assigned to the [[glossary#Virtual Machine|virtual machine]] in kilobytes, it must be greater than 512 MB (524,288 KB). | ||
*{$storage}: The amount of storage space assigned to the [[glossary#Virtual Machine|virtual machine]] in kilobytes, must be greater than 10GB (10,485,760 KB). | *{$storage}: The amount of storage space assigned to the [[glossary#Virtual Machine|virtual machine]] in kilobytes, must be greater than 10GB (10,485,760 KB). | ||
*{$cpu_allocation}: How vcpus/priority should be applied to a new virtual machine. | *{$cpu_allocation}: How vcpus/priority should be applied to a new virtual machine. | ||
− | ** dedicated - | + | ** dedicated - vcpus will be dedicated to the particular vm and priority is not set or needed. |
− | ** | + | ** pool - no vcpus are set the vm runs accross the entire physical cpu. allows priority to be set. |
− | ** | + | ** limited (default) - allows you to set vcpus and also allows you to set cpu priority. this setting allows multiple vms to overlap on the same physical cores. |
− | + | ||
**{$priority}: The CPU priority for the [[glossary#Virtual Machine|virtual machine]] (1 – 100)%. | **{$priority}: The CPU priority for the [[glossary#Virtual Machine|virtual machine]] (1 – 100)%. | ||
*** If $cpu_allocation is 'dedicated', priority isn't used. If $cpu_allocation is 'limited', a VM will have access to multiple cores and will have a set priority to those cores. if $cpu_allocation is set to 'pool', the VM has access to the whole physical CPU but are limited to the priority they're assigned. | *** If $cpu_allocation is 'dedicated', priority isn't used. If $cpu_allocation is 'limited', a VM will have access to multiple cores and will have a set priority to those cores. if $cpu_allocation is set to 'pool', the VM has access to the whole physical CPU but are limited to the priority they're assigned. | ||
Line 27: | Line 27: | ||
stdClass Object( | stdClass Object( | ||
[success] => TRUE/FALSE | [success] => TRUE/FALSE | ||
− | |||
− | |||
) | ) | ||
) | ) | ||
</pre> | </pre> |
The server create VM command
Contents |
stdClass Object( [success] => TRUE/FALSE ) )