Home > Blogs > VMware vSphere Blog


Project SilverLining: A vCloud Director 5.1 SDK for Javascript

VMware Labs just released their latest Fling called SilverLining which allows you to build a simplified user-interface for vCloud Director which can be run from any modern web-browser that supports HTML5, CSS3 and Javascript. Project SilverLining actually started out as an student intern project and there is a research paper that goes into more detail about both the design and implementation which you can read more about here.

The Fling includes the following features:

  • A flexible vCloud Director 5.1 SDK for JavaScript implemented using vCloud API
  • A reference implementation with a responsive UI done in HTML5, CSS and JavaScript
  • Use of metadata feature to enhance the UI with custom attributes on templates and vApps
  • Supports local storage in HTML5 to support offline mode
  • Notifications system to support long running operations
  • Separation of form and content of the backend processes from UI updates
  • Easy install script

To get started, you will need access to a vCloud Director 5.1 system and administrator privileges within the guestOS to install the SilverLining Fling. In addition, you will also need to ensure the system that is running vCloud Director includes both the zip and unzip utility. If you are using the vCloud Director Evaluation Appliance, the zip utility is not included by default and you will need to install it from a SLES repository as noted in the Fling instructions tab.

You can download the SilverLining Fling here.

Once you have installed the Fling and restarted the vCloud Director service (this can take a few minutes), you should then be able to login to SilverLining interface by pointing your browser to the following URL:

https://[VCD-IP]/cloud/silverlining/index.html

When you first connect, you will need to configure the default vCloud Organization that you would like to use and this can be changed at any time.
Next, you will will need to provide your credentials which you would normally use to login to the vCloud Director interface.
Once logged in, you will see all the vApps that you have deployed and the amount of resources being consumed.
If you click on the Library button on the upper left hand side, it will take you to the all the vCloud Director Catalogs that you have access to. From the Library, you can easily deploy from any of the vAppTemplate’s and you may also customize if you do not wish to use the defaults already set.
If we log into our regular vCloud Director interface, we can see that our new vApp has been deployed. If we click into the Metadata section of our vApp, we can see how the vCloud Metadata is being utilized by our custom interface by providing the number of downloads as well as marking a vApp as a “Favorite”. This is a very simplified example on what you can do with the vCloud Metadata.

Hope you give this cool new Fling a try and I am sure the folks who developed this Fling would love to hear any feedback or comments you may have.

Additional Resources:

  • Here is another simple example of using the new vCloud Director 5.1 SDK for Java called vcloud-client

Get notification of new blog postings and more by following lamw on Twitter:  @lamw

6 thoughts on “Project SilverLining: A vCloud Director 5.1 SDK for Javascript

  1. Blake Garner

    Installation was a snap but I’m unable to login to the web interface. Verified that my credentials work when logging in directly to the org I setup. I get a popup that asks for credentials when I enter them.

    Any suggestions on troubleshooting this?

    Thanks,
    Blake

    Reply
    1. David Dockhorn

      I get the same thing. It has something to do with the call backs. I’m not sure the login event is even firing. It’s about impossible to set this up as it is from the documentation unless you have your javascript phD. It would be so nice if there was a ‘hello world’ sample somewhere out there that shows all the code you need to login.

      The sample site provided is so complicated it’s too hard to deconstruct for me. I’m pretty limited with my javascript so maybe I’m not the intended audience anyway.

      Reply
      1. Alister Lewis-Bowen

        Hi David, First, Thank you for trying out SilverLining. I’m sorry you’re have problems with it. The sample UI is complicated.

        Try using https://github.com/ali5ter/vcloud-client. This is a simpler client that uses the same same vCloud SDK lib. You can install it the same way you installed SilverLining – in fact the same style install script is included with it.

        The login callback starts around line 107 of https://github.com/ali5ter/vcloud-client/blob/master/www/js/vcloud.js. The vCloudDirectorJSSDK.pdf doc that comes with the SilverLining fling may also help to demystify things a bit.

        I hope this helps. Any problems or feedback, just email me at alister-github@different.com.

        Reply
  2. Genadi

    Very nice project!

    Is it possible to use this SDK to display the Console to the customer, and allow interaction on that Console using mouse/keyboard?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>