Forrest logo
back to the nova tool

nova:tldr:c05da

nova: Boot a VM on a specific host.
$ nova boot --nic net-id=${net_id} --image ${image_id} --flavor ${flavor} --availability-zone nova:${host_name} ${vm_name}
try on your machine

This command is using the OpenStack command-line tool called "nova" to create a new virtual machine instance.

Here is a breakdown of the command:

  • "nova boot": This tells the "nova" command-line tool to create a new instance.
  • "--nic net-id=${net_id}": This option specifies the network for the virtual machine instance. The "net-id" refers to the unique identifier of the network to which the instance will be connected. The value of "${net_id}" is a placeholder that should be replaced with the actual network identifier.
  • "--image ${image_id}": This option specifies the image that will be used to create the instance. The "image_id" refers to the unique identifier of the image to be used. The value of "${image_id}" is a placeholder that should be replaced with the actual image identifier.
  • "--flavor ${flavor}": This option specifies the flavor (configuration) for the instance. The "flavor" is predefined in OpenStack and refers to the amount of resources allocated to the instance. The value of "${flavor}" is a placeholder that should be replaced with the actual flavor.
  • "--availability-zone nova:${host_name}": This option specifies the availability zone in which the instance should be launched. The "nova" refers to the Nova compute service, and "${host_name}" is a placeholder for the specific compute host where the instance will be created.
  • "${vm_name}": This is the name of the virtual machine instance that will be created. The value of "${vm_name}" is a placeholder that should be replaced with the desired name for the instance.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nova tool