Line 14: | Line 14: | ||
*{$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 - cpu cores will be dedicated to the particular vm. |
− | + | ** limited - allows you to set cpu cores but allows you to set cpu priority | |
+ | ** pool (default) - no cpu cores, but allows priority to be set | ||
+ | |||
**{$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. |
The server create VM command
Contents |
stdClass Object( [success] => TRUE/FALSE [data] => stdClass Object( [vmid] => The server ID of the new VM. ) )