How to install an operating system from the installation media in OpenStack environment?

Vlastimil Mikes - December 7, 2014 -

We often receive questions about creating a new instance from its own installation media in OpenStack environment. We decided to create simple instructions which will show you step by step through the installation of a new instance in OpenStack environment from ISO file. The point is that the ISO is copied to the new volume, from which the system is installed.


Quick guide:

1. Register installation ISO as a new image.

2. Create a new volume from the ISO image.

3. Create a new clean volume for the future boot disk.

4. Start a new instance as the boot from volume from step 2.

5. Connect the clean volume from the step 3 to instance.

6. Install the system on the clean volume.

7. Term the instance and create a new one as the boot from volume of installed system.

8. The possibility to take a snapshot of a clean system and then run instance as the boot from volume snapshot.


1. REGISTRATION OF THE INSTALLATION ISO FILE:

For the test of the functionality we chose ISO CentOS 6.5 64b, it can be loaded into OpenStack right from a local disk or by URL to the file. We recommend the second option.  

create an image landing page of ISO loading into OpenStack

Storage – Images – Create Image

 

 2. CREATE A NEW VOLUME FROM THE ISO IMAGE:

We choose: Volume Source – “Image”

Use image as a source – our uploaded ISO from step 1.

create volume landing page of ISO loading into OpenStack

Storage – Images – Create Volume

 

 3. CREATE A NEW CLEAN VOLUME FOR FUTURE BOOT DISK:

We choose: Volume Source – “No source, empty volume”

create volume landing page for future boot disk

Storage – Images – Create Volume

 

 4. START A NEW INSTANCE AS BOOT FROM VOLUME FROM STEP 2:

We choose: Instance Boot Source – “Boot from volume”

Volume – disk created from ISO file from step 2.

launch instance landing page derived from boot disk volume

Compute – Instances – Launch Instance

welcome to CentOS 6.5 landing page

Screen from installing CentOS 6.5


After starting the instance, automatically starts classic welcome offer from the installation media.  Before starting the installation, it´s necessary to connect an empty volume created in step 3. See following.

  

5. CONNECT THE CLEAN VOLUME FROM STEP 3 TO THE INSTANCE:

manage volume attachments landing page

Storage – Volumes – More – Edit Attachments


Attached to CentOS 6.5 on/dev/vdb.

OpenStack dashboard indicate the successful connection and path to the disk.

 

6. INSTALL THE SYSTEM ON THE CLEAN VOLUME.

selecting a disk to install on target devices screenshot

Selecting a disk

screenshot of CentOS 6 installation progress bar

Installation progress

 

7. TERM THE INSTANCE AND CREATE A NEW ONW AS THE BOOT FROM VOLUME OF INSTALLED SYSTEM:

After the end of installation, it´s possible to term instance and run the other one from created volume.


confirm terminate instances window

Compute – Instances – More – Terminate Instance


Create a new instance as a boot from volume of the installed system with selection of volume, on which we installed the system.

launch instance review window

Compute – Instances – Launch Instance


After the start of instance it´s possible to connect into the console of the new installed system from the original ISO disk.

screenshot of lines of code from CentOS 6.5 release

Connection of console

 

8. SNAPSHOT FROM THE CLEAN SYSTEM:

create volume snapshot window

Storage – Volumes (selection of system disk) – More – Create Snapshot

 

Start of instance from created snapshot:

We choose: Instance Boot Source – Boot from volume snapshot

             Volume Snapshot – choose the snapshot created by us

launch instance review window

After the running instance, it´s created completely new volume with the same size as the original, from which the snapshot was created.

 

Vlastimil Mikes

Tcp cloud engineer


banner-img
From Virtualization to Containerization
Learn how to move from monolithic to microservices in this free eBook
Download Now
Radio Cloud Native – Week of May 11th, 2022

Every Wednesday, Nick Chase and Eric Gregory from Mirantis go over the week’s cloud native and industry news. This week they discussed: Docker Extensions Artificial Intelligence shows signs that it's reaching the common person Google Cloud TPU VMs reach general availability Google buys MobileX, folds into Google Cloud NIST changes Palantir is back, and it's got a Blanket Purchase Agreement at the Department of Health and Human …

Radio Cloud Native – Week of May 11th, 2022
Where do Ubuntu 20.04, OpenSearch, Tungsten Fabric, and more all come together? In the latest Mirantis Container Cloud releases!

In the last several weeks we have released two updates to Mirantis Container Cloud - versions 2.16 and 2.17, which bring a number of important changes and enhancements. These are focused on both keeping key components up to date to provide the latest functionality and security fixes, and also delivering new functionalities for our customers to take advantage of in …

Where do Ubuntu 20.04, OpenSearch, Tungsten Fabric, and more all come together? In the latest Mirantis Container Cloud releases!
Monitoring Kubernetes costs using Kubecost and Mirantis Kubernetes Engine [Transcript]

Cloud environments & Kubernetes are becoming more and more expensive to operate and manage. In this demo-rich workshop, Mirantis and Kubecost demonstrate how to deploy Kubecost as a Helm chart on top of Mirantis Kubernetes Engine. Lens users will be able to visualize their Kubernetes spend directly in the Lens desktop application, allowing users to view spend and costs efficiently …

Monitoring Kubernetes costs using Kubecost and Mirantis Kubernetes Engine [Transcript]
FREE EBOOK!
Service Mesh for Mere Mortals
A Guide to Istio and How to Use Service Mesh Platforms
DOWNLOAD
WHITEPAPER
The Definitive Guide to Container Platforms
READ IT NOW
LIVE WEBINAR
Getting started with Kubernetes part 2: Creating K8s objects with YAML

Thursday, December 30, 2021 at 10:00 AM PST
SAVE SEAT