Last week I’ve released a small monitoring/stats script for vCloud Director 1.5+
You can find it here
Last week I’ve released a small monitoring/stats script for vCloud Director 1.5+
You can find it here
Lately I’ve been working on some monitoring stuff, and I was trying to fetch some metrics from the vCloud Director MBeans through JMX that the following KB depicts : VMware KB 1026065
You can find amazing information through JMX, especially when you are running a multi-cell setup.
A colleague was trying to setup a monitoring lab, and I found out that he couldn’t connect to the JMX connector using JConsole for some unknown reason, so I investigated the issue.
As vCloud Director starts the JMX connector on port 8999 of the HTTP vNic of the cell, you should be able to login using vCloud Administrator credentials (The highest role within vCloud Director).
JMX connections aren’t crypted in vCloud so depending on your Design/Implementation, you might want to check the vCloud Director Security Hardening Guide for additional information.
Symptoms : Using JConsole and the associated vCloud Director credentials were leading to this not very explicit message :

Checking on the cell, you could easily see that port 8999 TCP was listening, and a java process was backing this up :
I tried to understand what was wrong between the non working lab and my personal working setup, and I spotted a very tricky setting that is usually misconfigured, which is the Linux System hostname networking configuration, but this has also to do on how the JMX is implemented, it’s probably using some socket call, such as “gethostbyaddr(gethostname())” to fetch the local IPv4 address, and it was probably leading somewhere to “127.0.0.1″ within the code, where something goes wrong. (For those who knows Oracle, this looks like a tnsnames.ora/listener issue)
I’ve reproduced this issue on my setup quite easily, just changed my hostname and fqdn to 127.0.0.1 (localhost)
/etc/hosts Faulty configuration :
To fix this issue, simply use the following format for your hosts file.
/etc/hosts Working configuration :
PS: Don’t forget to relaunch the vCloud Director service using the following command :
Verify that everything starts properly :

Then you should be able to easily login using JConsole, here are some sample screenshots :
Happy monitoring …
References :
http://en.wikipedia.org/wiki/JMX
As a small introduction, what is the reason I’m writing this post ?
For now, There is no mechanism for authentication without credentials in vCloud Director. Only HTTP Basic authentication is supported. If you intend to add additional layers of security (two-factor authentication for example), you might need what’s following, to integrate a more advanced authentication solution to cope with your customer requirements, (Can be a new portal, or just adding this additional layer of security to your vCloud Director infrastructure)
I’ll now explain, how to authenticate into the vCloud Director Portal generating a cookie using the vCloud API.
Here is the basic workflow of what happens when you login using your Web Browser to the vCloud Director Portal.
Steps:
NOTE: The vCloud Director portal (UI) itself does not use the REST API.
I have many customers that asked me the following question :
is there any way to setup a intermediate security solution to avoid using the only current basic vCloud Director username/password authentication system ?
With some automation, you can achieve this, here is the process that illustrates the overall mechanism to connect using the vCloud API, and then generating a cookie for the vCloud Director Portal :

Steps:
and
I’m using Mozilla Firefox in this example with the following extension to generate the cookie : Cookies Manager+
Now I’m generating the vcloud_session_id cookie, using the Cookies Manager+ extension, with my vcloud-token value. I’ve also highlighted the other options to generate the cookie.

Now you’ve added the new “generated” cookie, just reload your Web Browser :

That’s it ! (You are now automatically logged in)
I’ve demonstrated this ability with manual steps, but you can easily integrate this process into another orchestration workflow to enable for example other ways to login/authenticate against vCloud Director, like integrating a 2 factor authentication solution.
PS: Don’t worry, we are evaluating a security framework that will include controlling identities enterprise-wide, supporting more secure authentication methods and providing interoperability for our next releases.
References : vCloud API Programming Guide v1.5
Hope this helps,
EDITED: 29 Nov 22:25 CET, Included feedback from Michael Haines
vCloud Director 1.5 evaluator guide has been released : Download
vCloud Director Appliance has been released : Download
vCloud Connector 1.5 has been released : Announcement
vCenter Orchestrator news by my colleague Christophe Decanini :
Interesting posts on vShield Manager REST API for starters from my colleague Michael Haines :
Post about Linked Clones/Fast Provisioning in vCloud Director 1.5 from Cormac Hogan : Article
Very good articles by my colleague Kamau Wanguhu on VXLAN :
Multiple posts from my colleague David Hill :
Another great article from Duncan Epping summarizing his vCloud Director posts :
And last but not least, a series of posts of my colleague Chris Colotti on 2/3 important topics :
Hope this helps anyone working on vCloud Director and the growing ecosystem around it !
EDITED: 18 Nov 14:25 CET, Added Duncan Epping Post, and Michael Haines typo fixes.
EDITED: 23 Nov 10:04 CET, Added new articles from Michael Haines, Christophe Decanini
Many people are wandering why sometime ssh takes forever to ask for a password after the user login.
Simple answer is sshd tries to resolve the ip/hostname by default.
You can change this setting in /etc/ssh/sshd_config (if this line isn’t present just append it somewhere)
Extract from the sshd_config man page.
UseDNS Specifies whether sshd(8) should look up the remote host name and check that the resolved host name for the remote IP address maps back to the very same IP address. The default is yes.
I just came across this issue at a customer site, so I will share the solution for those who might get into this bug.
Symptoms : Cannot change license on the HP ESXi 5.0 Aug 2011 ESXi HD-USB-SDImgeInstlr (Z7550-00204.iso), and once you try, the connection to vCenter is highly unstable, going into a “Not Responding” behavior.
Solution : HP has currently documented the process to fix this behavior.
1) Download the VIB file here : http://vibsdepot.hp.com/hp-esxi-5.0-license/hp-esx-license-1.0-5.zip
wget is available in ESXi 5 (small download utility), so if your host is connected to internet, you can get it quite easily.
2) Login into the local console on the affected host.
3) Copy the VIB to a temporary location on the affected host.
4) Apply the new license VIB by executing the command
5) Reboot the host
Source : http://g1w0134.austin.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03005742
HP will soon rebuild a new build with this fix included.
Edited 03/10/2011:
You can also encounter this issue, on the be2net network adapter driver : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2007397.
I’ve seen many people facing this issue so I thought I would write a small post about why this is happening.
Symptom: When trying to upload something (media file, OVF) on a multiple cell setup behind a LB (Load Balancer), you get the following error : “Error: Transfering files“.
Solution and Explanation: Solution is quite easy, you just need to setup properly the following item as a vCloud Admin, on the System / Administration / Public Addresses and input your “public” IP for the VCD public REST API base URL.
When you upload/download an item, you are not using the portal anymore, but executing a third party java applet to perform this task, and it interacts with vCloud Director using the vCloud API, so if you didn’t setup this field, the vCloud API will return the internal (HTTP interface) for the current vCloud Director cell. (and that explains why it doesn’t work from an external location)
Source : http://communities.vmware.com/thread/327221
Hope this helps,
Here are some links on the most new interesting things I’ve seen during VMworld 2011 in Las Vegas. (My opinion and no particular preference order)
An enterprise dropbox like storage collaboration suite.
A new way of delivering applications remotely using HTML5, (Imagine running whatever application on any type of device supporting a compatible browser …)
Bringing DB as a Service to VMware, Chad has written a nice article with the following youtube video demonstrating it.
Source : http://virtualgeek.typepad.com/virtual_geek/2011/08/vfabric-data-director-dbaas.html
VMware has collaborated with Cisco and other industry leaders to develop an innovative solution to these challenges called “VXLAN” (Virtual eXtensible LAN).
You can find more on the official blog post here : http://blogs.vmware.com/console/2011/08/towards-virtualized-networking-for-the-cloud.html
The IETF submitted draft can be found here : http://www.ietf.org/id/draft-mahalingam-dutt-dcops-vxlan-00.txt
VMware has shown what a true cloud can produce in less than 50 hours, 150k VMs, with a peak at more 4000 VMs concurrently during the 2/3 days of this event.
Chad has also covered this with many videos showing different aspects of this amazing setup.
I won’t be able to do a better post than Duncan Epping, so here is the best link to get all the binaries, associated documentation and the complete vSphere Product Line :

Here is the brand new version of vCloud Director, that brings many additional/refined/enhanced features, such as :
Note: Some features require VMware vSphere 5 such as Fast Provisioning.
Here are some very useful links :
EMC Backup integration (work in progress) :
PS : I’ll update those links whenever new things come out (NetApp, etc)
You want to train/learn on vCloud Director, test multiple scenarios, develop an application using the vCloud API on the latest VMware cloud product ?
Here is a overall guide to build a complete environment which will allow you to test many features of the product.
Take into account that it’s not meant to be a “light” portable lab (It was built for my everyday use/tests, and such, and even though, you will be able to tune some items like activating/disabling some VMware Clusters & attached Provider vDCs (PvDCs) on the vCloud Director side)
It will include lots of Screenshots of the overall vCloud setup, but I didn’t explain the complete vSphere steps as you can find many on Internet already, so if you are missing something, or cannot get it to work, use the comments for questions :-)
Here is how the vApp looks on my setup, lets see how did I setup everything. Continue Reading