Instances Creation

This document provides comprehensive instructions on creating instances and understanding the virtual machine types available.

Instance creation can be done easily via OpenStack Horizon from the "Launch Instance" button on the Project -> Compute -> Instances Panel.

However, you can also deploy an instance via OSC using the following steps:

Key Points for Instance Creation

  • Ensure a security group is selected that allows access to the VM from the Internet or private networks.

  • A keypair must be created and associated with the instance.

Step-by-Step Guide to create a new instance

Step 1: List Resource Names and IDs

openstack image list
openstack flavor list
openstack security group list
openstack network list
openstack keypair list

Step 2: Keypair creation

openstack keypair create --public-key ~/.ssh/id_rsa.pub <keypair-name>

Step 3: Security Group Configuration

openstack security group rule create --ingress --proto tcp --remote-ip 0.0.0.0/0 --dst-port 22 default

If you need to open more ports you can set on the same security group, you can allow inbound traffic with --ingress option or outbound traffic with --egress option.

Step 4: Instance creation

  • With non-persistense storage:
openstack server create --image <image> --flavor <flavor> --security-group <security-group> --network <network> --key-name <keypair-name> <name>

For sensitive data, it is recommended to use encrypted volumes. You can create and attach one as follows:

1.- Create the encrypted volume: 

    ```bash
    openstack volume create --size <size> --type LUKS <volume-name>
    ```

2.- Attach it to your server (after creation or later): 

    ```bash
    openstack server add volume <server> <volume> 
    ```
  • With Persistent Storage (including encrypted volumes created as above):
openstack server create --image <image> --boot-from-volume <volume-size> --flavor <flavor> --security-group <security-group> --network <network> --key-name <keypair-name> <name>

Step 5: Floating IP Creation and Assignment

You can list the available floating IPs provided by BiFi and assing it to your instance:

openstack floating ip list
openstack server add floating ip <server> <floating-ip>

Virtual machine flavours

Check the available image flavour with the command:

openstack flavor list

Instance Types

NameRAMDiskVCPUs
m1.tiny51211
m1.small2048201
m1.medium4096402
m1.large8192804
m1.xlarge163841608
m2.tiny51212
16_8_5081925016
4_4_20040962004

Images

Check the available images with the command:

openstack image list

Operating Systems

NameStatus
Alpine Linuxactive
Debian 10 (Buster)active
Rocky Linux 8.9 (Green Obsidian)active
Rocky Linux 9.4 (Blue Onyx)active
Ubuntu server 24.04 (Noble Numbat)active
Ubuntu server 24.10 (Oracular Oriole)active
cirrosactive