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
Name | RAM | Disk | VCPUs |
---|---|---|---|
m1.tiny | 512 | 1 | 1 |
m1.small | 2048 | 20 | 1 |
m1.medium | 4096 | 40 | 2 |
m1.large | 8192 | 80 | 4 |
m1.xlarge | 16384 | 160 | 8 |
m2.tiny | 512 | 1 | 2 |
16_8_50 | 8192 | 50 | 16 |
4_4_200 | 4096 | 200 | 4 |
Images
Check the available images with the command:
openstack image list
Operating Systems
Name | Status |
---|---|
Alpine Linux | active |
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 |
cirros | active |