v1

latestSwagger 2.0Apache 2.02026-07-17131416.5 KB

Updates the Machine Configuration of the VM.

Updates the Virtual Machine Configuration with the specified input. Firecracker starts with default values for vCPU count (=1) and memory size (=128 MiB). With Hyperthreading enabled, the vCPU count is restricted to be 1 or an even number, otherwise there are no restrictions regarding the vCPU count. If any of the parameters has an incorrect value, the whole update fails.

put/machine-config

Request body

vcpu_countinteger

Number of vCPUs (either 1 or an even number)

mem_size_mibinteger

Memory size of VM

ht_enabledboolean

Flag for enabling/disabling Hyperthreading

cpu_template'C3' | 'T2'

The CPU Template defines a set of flags to be disabled from the microvm so that the features exposed to the guest are the same as in the selected instance type.

Response

Machine Configuration created/updated