Skip to content

How to create a server

Estimated time to read: 2 minutes

In this tutorial, you will learn how to create an instance (server) through the Fuga Cloud dashboard or OpenStack CLI.

Prerequisites

For this tutorial you’ll need the following:

  • A Fuga cloud Account

Create the server

  1. Navigate to Compute
  2. Click on Create instance +

You will now see a screen that shows the instance creation page. Instance create page

On this page we will configure the instance: 1. Select the region 2. Select an operating system 1. or use a custom image 2. or use a volume 3. or use a volume snapshot 3. Choose to use ephemeral storage or a boot volume (Volume storage is a bit slower, but has a redundant setup (n+2) to prevent any loss of data). 4. Choose a flavor 5. Choose a network 1. with public you will get a public IPv4 2. with public6 you will get a public IPv6 6. Choose a key pair to access the server after creation. 7. Select the security groups you require for this server. 8. Set a name for the server.

After that you can find the pricing of the server per month at the bottom of the page and right to that you can create the instance by clicking Launch instance.

To create a server with the CLI tools it is required to first gather the image ID, flavor ID, network ID(s), security group(s) and key pair

This can be done with the following commands:

  1. List images
    openstack image list
    
  2. List flavors
    openstack flavor list
    
  3. List networks
    openstack network list
    
  4. List security groups
    openstack security group list
    
  5. List key pairs
    openstack keypair list
    

Then with all the information gathered it is possible to create a server.

Note

Repeat --network <network_id> and --security-group <security_group_id> for adding multiple.

openstack server create \
    --image <image_id> \
    --flavor <flavor_id> \
    --network <network_id> \
    --security-group <security_group_id> \
    --key-name <key_name>

List the server

  1. Navigate to Compute
  2. Click on the instance you just created

Now you can find the specification of your instance:

  • Status
  • ID
  • Name
  • Attached volumes
  • Initial key pair that has been used to create it
  • IP Addresses
  • Ports, with their security groups
  • Flavor

With the following command it is possible to list all servers:

openstack server list

To see the details of your newly created server:

openstack server show <server_name_or_id>