Instances CLI reference¶
See https://docs.openstack.org/nova/2023.2/cli/index.html.
These commands allow you to perform various operations related to instance management, such as creating, listing, showing details of, starting, stopping, and deleting instances, as well as managing instance sizes, snapshots, volumes, and floating IPs. The <server_id_or_name>
, <flavor_id_or_name>
, <image_id_or_name>
, <network_id_or_name>
, <snapshot_name>
, <volume_id_or_name>
, and <floating_ip_address>
in the commands are placeholders that should be replaced with the actual IDs or names of the resources.
Note
The term server here refers to server instances. Both "server" and "server instance" refer to virtual machines that you’ve provisioned for your project.
List instances¶
Show instance details¶
Create an instance¶
Bash
openstack server create --flavor <flavor_id_or_name> --image <image_id_or_name> --network <network_id_or_name> <server_name>
<flavor_id_or_name>
: ID or name of the flavor.<image_id_or_name>
: ID or name of the image.<network_id_or_name>
: ID or name of the network.<server_name>
: Name of the new instance.
Delete an instance¶
Start an instance¶
Stop an instance¶
Reboot an instance¶
- Use
--soft
for a soft reboot.