Now that we’ve installed the OpenStack client in step 4, we will learn some of the more important commands for it.
To get more details about a specific subcommand, you can append the
--help flag to it.
To list all commands, you can use
--help without any other information:
With the command
openstack server it’s possible to create, administrate or delete a VM.
Here is a list of some common commands:
openstack server addThis commands will add parameters (Fixed IP, Floating IP, Security group, Volume) to a VM.
openstack server createThis command creates a VM.
openstack server deleteThis command deletes a VM.
openstack sever listThis command shows a list of all VMs.
openstack server removeThis command will remove parameters (Fixed IP, Floating IP, Security group, Volume) from a VM.
openstack server showThis command shows all important information about the specified VM.
With the command
openstack stack you are able to administrate complete stacks, like
openstack server for instances.
Here is a list for some common commands:
openstack stack createThis command creates a new stack.
openstack stack listThis command lists all stacks.
openstack stack showThis command shows all important information about the specified stack.
openstack stack deleteThis command deletes the specified stack.
Security Groups are used, to allow or deny incoming and outgoing network traffic based on ip-adresses and ports for VMs.
You can also manage security groups in the OpenStackClient.
Here are some common commands:
openstack security group createCreates a new security group
openstack security group deleteDeletes a security group
openstack security group listList of all security groups
openstack security group showShows all important information about a security group
openstack security group rule createAdds a rule for a security group
openstack security group rule deleteDeletes a rule in a security group
To create VMs, they need a network, here are some common network commands:
openstack network createCreates a new network
openstack nerwork listList of all networks
openstack network showShows all important information about a network
openstack network deleteDeletes a network
For the VMs on your network to reach the internet, you need a router, here are some common router commands.
openstack router createCreates a new router
openstack router deleteDeletes a router
openstack router add portAdds a port to a router
openstack router add subnetAdds a subnet to a router
To use a virtual router correctly, we will need a subnet, which can be administrated with
openstack subnet and here are some common commands:
openstack subnet createCreates a new subnet
openstack subnet deleteDeletes a subnet
openstack subnet showShows all infomation about a subnet
Ports connect your VMs to your network, here are some common commands:
openstack port createCreate a new port
openstack port deleteDeletes a port
openstack port showShows all infomation about a port
Volumes are persistent storage locations, they will show up as a disk on your VM, here are some common commands:
openstack volume createCreates a new Volume
openstack volume deleteDeletes a volume
openstack volume showShows all infomation about a volume
Now we know some common openstack commands, and have a better overview of the system.
The commands mentioned are required in the next steps and thus form the basis for the rest of the guided tour.
In step 6, we will create and use our own SSH key pairs.