EMEA A&C CCOE Partner Technology Cloud Engineering

How to get started with OpenStack on Solaris

The expectations for an enterprise-class operating system are greater than ever. The new Solaris 11.2 is a game changer - the world's first Cloud Operating System now comes with out-of-the-box OpenStack tools. Oracle Solaris 11.2 is designed to meet Security, virtualization, software-defined networking, and manageability requirements of organizations, especially the ones where cloud computing has become a must-have capability

To get access to the leading-edge virtualization and systems management capabilities of Oracle Solaris 11.2—as well as the integrated OpenStack distribution—customers can now download the Oracle Solaris 11.2 beta. Here's how to get started exploring it. You'll need:

- Oracle VirtualBox with VirtualBox Extension Pack

- 8GB (or more) USB thumb drive

- Oracle Solaris 11.2 Beta VM Template for Oracle VM VirtualBox

- Oracle Solaris 11.2 Beta OpenStack Unified Archive

Image: Solaris OpenStack running from VirtulBox

1. Import Solaris 11.2 Beta VirtualBox template

There's not really much more to say about this step...  In VirtualBox, import the appliance and go through the wizard. Before starting the VM, you'll want to do two more things:

- Using Shared Folders, share the folder where the OpenStack Unified Archive is with the VM, enable Automount and parmanent options

- Enable USB Controller

 Once the VM is booted, you'll need to go through the configuration, which is self explanatory and quite simple. Just make sure you create local user, as there seem to be a bug in the beta version with root user only system. In my case, I created user "oracle".

2. Prepare USB image

Once the system is rebooted, you can login into gnome environment. 

- open terminal and execute commands below:


zfs create rpool/uar

archiveadm create-media -d rpool/uar -s http://pkg.oracle.com/solaris/beta -f usb -o /export/home/oracle/s11.2-beta-openstack-uar-x86.usb /mnt/sf_Oracle/sol-11_2-beta-openstack-x86.uar


- /export/home/oracle with your user's home dir

- /mnt/sf_Oracle with your Vbox shared folder mountpoint 

Grab a coffee, or two, or three... this process can take a while

3. Transfer USB image to a USB drive

- Plugin your USB flash drive and make it available to the VM

- still as root, execute:

usbcopy /export/home/oracle/s11.2-beta-openstack-uar-x86.usb

(replace oracle with your user). You'll be prompted for which USB device to use, e.g.:

Image type: dd-able x86

Found the following USB devices:

0: /dev/rdsk/c2t0d0p0 7.6 GB Patriot Memory   PMAP

Select the drive, and wait again while your USB drive is getting ready.

4. Installing on bare metal

If you want to try OpenStack on a bare metal system, you are done. Just plug the USB drive into a computer, run the automated installer and you should be ok.

If you want to run OpenStack in VirtualBox, we need to be a bit creative...

4a. Installing inside a VirtualBox

VirtualBox is great, yet for our task it has a big drawback: it can't boot from USB. But we don't give up so easy, do we?

What if we could transfer our USB key to a vdi file and install from there? Well, that's a good idea but apparently the automated installer looks fro USB drive and if it can't find one, the installer will fail.

But: if we boot from that vdi and assign our USB key to the VM, it will boot from the virtual HDD and then proceed to install from the USB!

Here's how I've done it (disclaimer: I have far more experience on Linux than Solaris and I had some problems dd-ing under Solaris, so I used Linux for some steps; Solaris gurus out there will use the VM we used to create the USB drive):

1. Grab your favourite Linux livecd

2. Create a VM and create a vdi hard drive the same size (or bigger) as your physical USB key 

3. Configure the VM for USB support and assign your UBS drive to it

4. Boot the VM and Linux

5. Identify which /dev/sdx is your vdi and which USB, then execute dd if=/dev/yourusb of=/dev/yourvdi

6. Wait till it finish, shutdown the vm 

7. Disconnect the vdi from the VM

8. Create a new VM, configure it for Solaris

- assign enough system resources to it

- assign the USB drive to the VM

- create a new vdi, with maximum size up to 300GB, just to be sure

- assign the vdi we created in the previous step to the machine; make sure this one is the first and the big one is the second

9. Boot the VM, make sure it is also using your USB flash drive

10. After boot it should detect the USB and automated installer will do almost everything else

11. When it's done, shutdown the system, disconnect the USB and the vdi we used

12. Boot and you will get the usual Solaris setup assistant 

5. Configuring the system after boot

 Depending on your network, you might need to add your ip to the /etc/hosts, or some deamons will fail.

Alos, at the time of this writing, the README is wrong. The script you need to run (as root) is in /usr/demo/openstack/configure_evs.py

6. Login

Point your browser to http://yourhost/horizon (depending on the type of network you used; for NAT you need to configure port-forwarding first). You'll get the horizon login The login for the demo tenant is:

username:  admin

password:  secrete

Happy openstacking!

Bookmark and Share

Join the discussion

Comments ( 3 )
  • guest Tuesday, June 17, 2014

    "Plugin your USB flash drive and make it available to the VM" Simple to say, not so simple to do. Apparantly, this beta does not support USB drives in Virtual box

  • guest Tuesday, June 17, 2014

    Create rpool.....attempt to load mypool. Nope, not gonna work

  • Jernej Kase Monday, June 30, 2014

    Regarding VirtualBox and USB, please see a workaround described in item 4a.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.