Skip to content

Install OpenStack on a Single Ubuntu 16.04.1 Xenial Xerus Server Using Conjure-up

Introduction

 

It’s been some time since I wrote Installing Ubuntu OpenStack on a Single Machine, Instead of 7.  Since then, there have been many updates to both OpenStack, and Ubuntu.

This tutorial will guide you through installing OpenStack on a single Ubuntu 16.04 Server.  I will be installing Ubuntu and OpenStack within a virtual machine hosted on a VMware ESXi Hypervisor, but any fresh installation of Ubuntu 16.04 should work fine, as long as it meets the minimum requirements below.  I will be using conjure-up to install the environment due to the fact that Ubuntu’s Openstack-install package doesn’t working on Ubuntu 16.04.1 at this time.

 

Note:  I have written an updated guide on Installing OpenStack on Ubuntu 16.04 LTS using devstack.  I suggest following that guide unless you have a specific reason for using the conjure-up method.  From my experience, the devstack method requires less resources, runs faster, and performs much better once deployed.

 

Minimum Requirements

 

To install the entire environment on a single physical server or virtual machine, you will need at least:

 

  • 8 CPU’s (vCPUs will work just fine)
  • 12GB of RAM (minimum needed to successfully start everything, more is better)
  • 100GB Disk Space (SSD Prefered, but rotating disk will work)
  • Ubuntu 16.04.1 Xenial Xerus x64 Server(only OpenSSH Server installed)

Getting Started

 

First, we need to add the PPAs for conjure and juju.

 

sudo apt-add-repository ppa:conjure-up/next
sudo apt-add-repository ppa:juju/devel

 

We need to update aptitude now that we have added the new PPA sources.  I had to reboot before I could successfully run an update.  So, go ahead and reboot your server and log back in.

After a quick reboot, let’s update Aptitude.

 

sudo apt update

 

Next, we need to initialize LXC before we can install conjure-up and OpenStack.  This step requires sudo (root), so it must be done before we can proceed.

 

sudo dpkg-reconfigure -p medium lxd

 

You will be prompted to answer some questions related to networking.  Select “Yes” to set up a network bridge.  Accept the default name.  You will also want to select “Yes” when asked if you want to configure NAT.  All other defaults can be accepted.  IPV6 support is optional.

 

lxc_bridge_configuration

 

Once you are back at a command line, make sure LXC is good to go.

 

lxc finger

 

Installing OpenStack With Conjure-Up

 

We will use the Aptitude Package Manager to install conjure-up.

 

sudo apt install conjure-up

 

Once the conjure-up installation is finished, we can use it to install and configure our single server OpenStack environment.

 

conjure-up

 

Now you will be presented with a menu.  Select OpenStack with NOVALXD (you might have to scroll down to see it) and hit enter.

This step is going to take a long time.  How long, depends on how much RAM your server has, as well as the type of disk in use.

First, conjure-up will download all needed Ubuntu Xenial images from cloud-images.ubuntu.com.  That step will look like this.

 

conjure-up_download_ububuntu_xenial_images

 

Once all images have downloading (nearly 100), it will start initializing the Juju controller.

 

conjure-up_juju_initialization

 

After this step, conjure-up will start deploying all containers needed for the OpenStack platform.  This can take a very long time.  If you see any errors about there not being enough units, just let it be and it will eventually continue.

 

insufficient_peer_units_bootstrap_cluster_conjure-up

 

Eventually, it will finish and you will find yourself at the last step!

 

conjure-up_glance_rsa_key

 

After you run the creation of RSA keys you’ll be ready to start working on your new OpenStack environment!

 

Conclusion

 

OpenStack can be a real pain to install.  But, with the help of packages like conjure-up, it can be manageable.  This type of deployment is great for development and getting familiar with the platform. In a production or lab environment, you will definitely want to consider adding more physical servers.

Thank you for reading.  If you get stuck, or have any questions, please feel free to ask for help in the comments below!

15 thoughts on “Install OpenStack on a Single Ubuntu 16.04.1 Xenial Xerus Server Using Conjure-up

  1. Pingback: Installing Ubuntu OpenStack on a Single Machine, Instead of 7 – Serenity-Networks

  2. Evio Fragoso says:

    I can’t find my previous comment. Do you have news about the bug of missing a file during the installation?

    Reply
    • Mike Smith says:

      We suffered a catastrophic server failure and lost 24 hours of data. We’re almost back to 100% functionality, just have to fix the images.

      WRT the Juju bug, as of yesterday it has not been fixed. I’m trying to fix it myself, although I haven’t had luck lately. As I said before, I’m working on a guide for an alternate method to install OpenStack without using conjure up. I will try to get that finished ASAP so you have options.

      Thanks!!
      Mike

      Reply
      • Evio Fragoso says:

        Thank you. I used your guide on the 14.04 before. You are a great help for the community in general, great work.

        Reply
        • Mike Smith says:

          Thank you for that, I do this to help. I’m glad to know it’s appreciated. I’m still putting together a guide that actually works. There are SO MANY bugs with Ubuntu 16.04 AND the latest OpenStack deployment scripts. It blows me away. I think I have one put together that will work. I still have to run through it one more time with a fresh virtual machine to make sure it’s actually reproducible. Did you have any luck or are you still in limbo? Thanks!

          Reply
        • Mike Smith says:

          Evio, The new guide is complete and it’s MUCH easier. It’s even easier than the old guide based on Ubuntu 14.04 & Kilo. It will auto post in the morning and it will get you running OpenStack Newton (or any other version you’d like) on Ubuntu 16.04 easily. Thanks!

          Reply
  3. Pingback: Install OpenStack on One Virtual Machine, the Easy Way, On Ubuntu 16.04 LTS! – Serenity-Networks

  4. Pingback: Install OpenStack on a Single Ubuntu 16.04.1 Xenial Xerus Server Using Conjure-up | 24A7

  5. Atiq Ur Rehman says:

    help

    Reply
  6. dadawasozo says:

    Hi,

    it seems like I never able to pass through the state of “waiting for address”. Any suggestion?

    Reply
  7. JOSE LUIS PALACIOS VERGARA says:

    After the install is there a way to access the interface through the external IP configured on the host machine?

    Reply
    • Amit R says:

      Did you find how to access it from host machine , I have everything ready but not able to access the openstack ip addresses from host machine , any pointers ?
      Thanks

      Reply
  8. Michael A Cooper says:

    This what I get when i try your article on my Ubuntu 16.04.3 LTS

    [email protected]:~# apt install conjure-up
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    conjure-up is already the newest version (2.1.0-0~201702170427~ubuntu16.04.1).
    0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
    [email protected]:~# conjure-up
    The program ‘conjure-up’ is currently not installed. You can install it by typing:
    apt install conjure-up

    Any ideas?

    Reply

Leave a Reply