Get the App
SLTechnology News&Howtos  ›  Servers  › 

Openstack Learning-logging in to Openstack CLI

Shulou Source: shulou.com Published: 2022-06-02 23:06:46 09月22日 Update

openstack cli basic command

After completing the previous openstack tranning lab setup, you can log in to the controller node from the host by commanding.

ssh -p 2230 osbash@127.0.0.1

Password default is osbash

After logging in, view admin user's environment variable definition file admin-openrc.sh and import it into administrator view

cat admin-openrc.sh

. admin-openrc.sh

You can then execute the following command to see how the openstack server command is used

openstack server --help

The specific usage of each subcommand can be viewed as follows

openstack server create --help

create a virtual machine instance

Having created the specification "Flavor_web", create a VM instance named cirros_cli by mirroring "cirros"

openstack server create --flavor Flavor_web --imge cirros cirros_cli

Once created, view the list of virtual machine instances

openstack server list

You can see that the VM instance has been created

You can then command-view the details of the VM instance

openstack server show cirros_cli

You can see some details.

Tags: Commands instances can pass login information method size variable foundation host host password file environment user administrator node specification view mirror Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information Xiaomi Microsoft macOS