Installing The vSphere OpenStack Virtual Appliance (VOVA) On Your Laptop, Part 2

OpenStack-Nova-Cinder-Diagram-278x300(Diagram by Rawlinson Rivera from VMware)

Introduction

In part 1  of this short series, I walked though setting up a vSphere environment, including ESXi and vCenter, using VMware Fusion.  In part 2, I will walk through deploying VOVA and using vSphere with OpenStack.  Before proceeding, I encourage the reader to review the official VOVA manual if you haven’t already done so.

Preparing For VOVA

  • Log on to the VCSA from your browser, using the static IP address you set earlier and going through port 9443.  Log on with username: root and password: vmware.
  • Create a new virtual datacenter (I created one called “dc”) and underneath the datacenter, create a new cluster (I created one called “openstack”); connect to your ESXi host and assign it to your new vdc and cluster.

Screen Shot 2013-12-12 at 11.15.18 PM

  • It’s important that VOVA is in time sync with VCSA.  If you aren’t able to sync both either to a NTP server, you can get around it by finding the date and time of the VCSA and inputting the same for the ESXi server that will be hosting VOVA.

Screen Shot 2013-12-16 at 12.06.52 PM

Screen Shot 2013-12-12 at 11.27.24 PM

  • As per the VOVA manual, we need to create a port group or port groups called “br100″ for every ESXi host that will part of our OpenStack environment.  This can be done per host when using vSphere Standard Switches or by creating at single br100 port group when using the vSphere Distributed Switch.  The instructions are in the VOVA manual and I also have a series of screenshots below that walk though setting up the br100 port group on a vSphere Standard Switch using vmnic1.

Screen Shot 2013-12-12 at 11.34.15 PM

Screen Shot 2013-12-12 at 11.34.42 PM

Screen Shot 2013-12-12 at 11.35.45 PM

Screen Shot 2013-12-12 at 11.35.55 PM

Screen Shot 2013-12-12 at 11.36.55 PM

Screen Shot 2013-12-12 at 11.37.07 PM

Deploying VOVA

  • From the vSphere Web Client, deploy a new OVF template to your cluster and choose VOVA_HAVANA.ova (typically, you would deploy VOVA on a vSphere cluster separate from the one it is managing but here we are trying to minimize resource usage on your laptop); confirm that you want to allow VMware Client Integration access.  If you have not previously used the VMware Client Integration client, you will have to install the plugin on your laptop.

Screen Shot 2013-12-12 at 11.37.52 PM

  • Walk though the OVF Template settings and when you get to the “Select storage” section, select “Thin Provision” for your virtual disk format.  This will allow you to move forward with the deployment.

Screen Shot 2013-12-12 at 11.38.36 PM

  • When you get to the “Customize template” section, fill out the fields using the information relevant to your setup.  The following screenshots provide an example of what settings I used for my setup.

Screen Shot 2013-12-12 at 11.39.13 PM

Screen Shot 2013-12-12 at 11.39.45 PM

  • If you didn’t choose to automatically power up VOVA after finishing setup, do so now and you are ready to go.

Screen Shot 2013-12-13 at 12.01.16 AM

Using OpenStack To Launch vSphere Hosted Instances

  • log on to the OpenStack Horizon dashboard using the static IP address you set for VOVA and using user name: demo and password: vmware.  Note that the VOVA dashboard uses a VMware skin for the portal but is still the Horizon dashboard.

Screen Shot 2013-12-12 at 11.44.24 PM

  • From the dashboard, launch a new instance using the Debian image that was preloaded on to VOVA.

Screen Shot 2013-12-12 at 11.45.46 PM

  • After a few minutes, you will have a running instance in your OpenStack environment; from the vSphere client, you should also see a new vm spun up on your ESXi host.

Screen Shot 2013-12-12 at 11.53.03 PM

  • Click on the instance in the OpenStack dashboard to see the instance detail; you should see that the instance ID matches the name of the associated vm as shown in the vSphere client (You may have to refresh the vSphere Web Client).

Screen Shot 2013-12-12 at 11.53.07 PM

Creating VMDK Backed OpenStack Cinder Volumes

In a previous post, I detailed how vSphere has contributed code to the OpenStack Cinder project to enable the use of VMDK files to function as the backing storage for an OpenStack block volume.  Let’s walk through how this looks using VOVA.

  • Go ahead and create a new Cinder volume using the OpenStack dashboard.

Screen Shot 2013-12-13 at 12.57.36 AM

  • Once the volume is created, go to “Manage Volume attachments” and attach it to the instance you created.

Screen Shot 2013-12-13 at 1.00.06 AM

  • At this point, you can see your new volume attached to your new instance in the OpenStack dashboard; from the vSphere client, you will see that a new vm, with a server name starting with “volume-…” was created that does not show up on your OpenStack dashboard.

Screen Shot 2013-12-13 at 1.03.57 AM

  • If you recall from my post on vSphere Integration With Cinder, a “shadow” vm is created whenever a VMDK backed Cinder volume is created in OpenStack; this “shadow” vm does not show up in the OpenStack dashboard and cannot be directly managed from that dashboard.

Screen Shot 2013-12-13 at 1.04.11 AM

  • Now detach and delete the Cinder volume using the OpenStack dashboard; you will see that the “shadow” vm is deleted along with the Cinder volume.

Screen Shot 2013-12-13 at 1.07.39 AM

  • Finally terminate your instance using the OpenStack dashboard; you will see in the vSphere Client that the vm has been removed.

Screen Shot 2013-12-13 at 1.09.04 AM

At this point, if you have enough free resources on your laptop or workstation, go ahead and install new ESXi host vm in Fusion and add it to your cluster.  Assuming you have Distribute Resource Scheduler (DRS) enabled and fully automated, you should see all new instances be balanced evenly across both ESXi hosts.

I hope this little exercise will help any VMware administrators interested in OpenStack and its integration with vSphere get started.  As always, feedback and corrections are welcomed.

About these ads

9 comments

  1. Rawlinson · · Reply

    great article and some seriously hot graphics. 😀

    1. Thanks, Rawlinson! I knew they would get you revved up. :)

  2. […] Installing The vSphere OpenStack Virtual Appliance (VOVA) On Your Laptop, Part 2 (cloudarchitectmusings.com) […]

  3. […] By Kenneth Hui: Installing The vSphere OpenStack Virtual Appliance (VOVA) On Your Laptop, Part 1 and Part 2 […]

  4. […] By Kenneth Hui: Installing The vSphere OpenStack Virtual Appliance (VOVA) On Your Laptop, Part 1and Part 2 […]

  5. […] Installing The vSphere OpenStack Virtual Appliance (VOVA) On Your Laptop, Part 2 (cloudarchitectmusings.com) […]

  6. […] Installing The vSphere OpenStack Virtual Appliance (VOVA) On Your Laptop, Part 2 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,852 other followers

%d bloggers like this: