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:

su

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

Replace:

- /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
Comments:

"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

Posted by guest on June 17, 2014 at 06:15 PM CEST #

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

Posted by guest on June 17, 2014 at 06:16 PM CEST #

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

Posted by Jernej Kase on June 30, 2014 at 09:26 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Oracle ECEMEA Partner Hubs Migration Center Team

We share our skills to maximize your revenue!
Rapidly and successfully assist you to adopt and implement the latest of Oracle Technology in your solutions.

Stay Connected
partner.imc
@
beehiveonline.oracle-DOT-com
Google+ Subscribe by Email

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
4
5
6
7
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today