Home > Blog > How to Quickly Create Your Own OpenStack Image

How to Quickly Create Your Own OpenStack Image

If you haven’t tried it already, get a free on-demand trial for Mirantis OpenStack Express, now available.

There are several ways to create your own image. The OpenStack documentation describes a method for creating a new image on Linux machines using libvirt, or you can use VirtualBox to create a new image using VirtualBox on any of the operating systems VirtualBox supports (which is to say, most of them).

Here’s the general procedure for creating an OpenStack image:

  1. Download VirtualBox from https://www.virtualbox.org/ and install it.
  2. Download the installation ISO for the linux distribution that you want to create.
  3. Create a new virtual machine. For the hard drive file type, select QCOW. This is a format that is recognized by both VirtualBox and OpenStack.
  4. After you click Create, VirtualBox will create the VM and be back at the Oracle VirtualBox Manager screen. Select your VM and click Settings, change to the Storage tab, select the Empty CD ROM under the IDE controller and click the disk icon on the right of CD/DVD Drive to navigate and choose the CentOS Image you downloaded. Click OK.
  5. Boot your VM and go through the installation process.
  6. Click Reboot and when the VM comes back up, login with the root credentials you provided during the installation.
  7. Make sure the network is up and connected to the internet. (You might have to change the network settings for the VM.)
  8. Patch the operating system.
  9. At this point, it’s a good practice to shut down your Virtual Machine, clone it and then work on the clone, this way if you mess anything up, you don’t have to go through the entire re-install process all over again. Shut down the VM and click Machine -> Clone… from the menu. Choose to create a Full clone.
  10. Start the clone from the Oracle VM VirtualBox Manager and log in with the same root credentials you used previously. Edit the interface file to ensure the network interface always starts on boot.
  11. Add the cloud-init package to the OS.
  12. Configure GRUB so the console access works from within OpenStack.
  13. Shut down the VM.
  14. At this point the drive containing your VM is a QCOW file that is ready for OpenStack. To find, it, look at the Storage tab under Settings for the VM.
Copy that file to a location where you can use it to upload to OpenStack.

Want to read more?  This article is an excerpt from our new guide, Mirantis OpenStack Express: Application On-boarding Guide (currently in beta).  Please let us know what you think.

Subscribe to Mirantis Newsletter

Get blogs and other content delivered straight to your inbox.

FREE EBOOK!
Service Mesh for Mere Mortals
by Bruce Basil Mathews
DOWNLOAD
LIVE WEBINAR
Cloud Native & Coffee: Porting apps from legacy systems to cloud. Is it worth it

Thursday, Oct 21 at 8:00am PDT
SAVE SEAT
LIVE WEBINAR
Docker Swarm is Dead! Long Live Docker Swarm

Thursday, October 28 at 10:00am PDT
SAVE SEAT
LIVE WEBINAR
Defining a Kubernetes that just works, anywhere

Thursday, November 11 at 8:00am PST
SAVE SEAT
Mirantis Webstore
Purchase Kubernetes support
SHOP NOW

Subscribe to Mirantis Newsletter

Get blogs and other content delivered straight to your inbox.

FREE EBOOK!
Service Mesh for Mere Mortals
by Bruce Basil Mathews
DOWNLOAD
LIVE WEBINAR
Cloud Native & Coffee: Porting apps from legacy systems to cloud. Is it worth it

Thursday, Oct 21 at 8:00am PDT
SAVE SEAT
LIVE WEBINAR
Docker Swarm is Dead! Long Live Docker Swarm

Thursday, October 28 at 10:00am PDT
SAVE SEAT
LIVE WEBINAR
Defining a Kubernetes that just works, anywhere

Thursday, November 11 at 8:00am PST
SAVE SEAT
Mirantis Webstore
Purchase Kubernetes support
SHOP NOW