
In-the-Lab: Installing vCenter Mobile Access
February 28, 2011[vCMA updated 16-MAR-2011 to include SSL mode as default.]
It’s just a short, 270MB download separating you from managing your vCenter or licensed vSphere host from your mobile phone, Internet tablet or PC’s web browser. This simple virtual appliance performs all of the client API calls to vCenter and presents a web-based user interface that requires only basic HTML – perfect for mobile devices. It’s a bit quirky with DPM (as you’ll see later in the post) but it has a compelling feature list as well in this v1.0 fling from VMware.
The vCenter Mobile Access appliance is quick and easy to install. VMware provides these curt instructions to get you started:
- Extract the zip file to a temporary directory, for example c:\temp. The files contained in the zip file include :
* vCenterMobileAccess-1.x.y.z.ovf
* system.vmdk - Launch the VI Client and log into your ESX box or vCenter instance.
- In the inventory view, select the menu File-> Virtual Appliance -> Import
- Select the option “Import from file” and browse to the OVF file, for example: c:\temp\vCenterMobileAccess-ovf\vCenterMobileAccess-1.0.0.10.ovf and follow the wizard next steps.
- In the “End User License Agreement” page, read the license agreement completely, click on the “Accept all license agreements”, and continue the steps.
- In the “Name and Location” page, provide the name for your virtual machine.
- Once the wizard completes, a virtual machine will be created. Select the virtual machine and power it on.
- Once it powers on, you can access the web application from your mobile device browser using the URL http:///vim.
Once connected, you will see the login screen where you can provide the vCenter or ESX IP address or name as well as username and password.
Installation of the virtual appliance is fairly straight forward, but there are a few “gotchas” to be encountered depending on your environment. For instance, if you do not run DHCP in your management or test network, you’re going to need to drop to the console for setup. Also, the default password is extremely weak, so changing it before testing or deployment is imperative. Also, there is an incompatibility in the latest version between the appliance management console (web) and Firefox, although this issue DOES NOT extend to the vCenter Mobile Access application proper.
Detailed vCMA Installation
Here’s a more expansive how-to that addresses some of these issues in deeper detail. To install VMware’s vCMA from the OVF package, I did the following:
- Extracted the zip file to a network share reachable from my workstation;
- Logged into vCenter with the VI Client;
- Selected the menu File -> Deploy OVF Template…
- Selected “Deploy from file:” and browsed to the “.ovf” file, selecting it (i.e. vCenterMobileAccess-1.0.0.41.ovf), then clicked “Next >”;
- Viewed the OVF Template Details, then clicked “Next >”;
- Product: vCenter Mobile Access
- Version: 1.0.0.41
- Vendor: VMware, Inc.
- Download Size: 291MB
- Size on disk: 2048MB
- Description: The vCenter Mobile Access allows administrators to manage their datacenter environments on-the-go via mobile devices.
- Read and accepted VMware’s Technology Preview License Agreement, then clicked “Next >”;
- Selected the default VM name, vCenter Mobile Access, and selected a datacenter and folder to place the VM into, then clicked “Next >”;
- Selected a cluster (or host) to house the VM, then clicked “Next >”;
- Selected a resource pool (optional), then clicked “Next >”;
- Selected a datastore to store the VM files, then clicked “Next >”;
- Selected the vNetwork to connect the VM’s “Network 1″ interface to, then clicked “Next >”;
(note: this network must have access to vCenter which may require adjustments to a firewall setting depending on your environment.) - Reviewed the deployment task summary and then clicked “Finish” to deploy.
(note: wall-clock deployment time was under 3 minutes.) - Finally, the deployment requester changed to “Completed Successfully” and I clicked ‘Close” to complete the process.
- Before powering-on the appliance, I disabled logging from the “Options” tab of the Virtual Machine Properties page by right-clicking on the VM, selecting “Edit settings…”, clicking the “Options” tab and selecting “General” from the “Advanced” section, then uncheck the “Enable logging” box.
- Next, I opened the console and powered-on the VM.
- Note: vCMA defaults to VMware hardware version 4. For systems with demonstrated compatibility issues with version 4 issues with vMA, or where using backup facilities that use changed block tracking, take this opportunity to upgrade to hardware version 7.
- Once the appliance has booted, you’ll need its IP address. The vCMA appliance is setup for DHCP: if no DHCP is found, it will self-assign an IP address until one is manually configured. To manually change the vCMA address, I did this:
- Opened the vCMA virtual console;
- Using down-arrow, selected “Configure Network” and hit the “enter” key;
- Selected “n” to disable DHCP;
- Entered the vCMA’s intended IP address (i.e. 192.168.100.100);
- Entered the vCMA’s netmask (i.e. 255.255.255.0);
- Entered the vCMA’s network gateway (i.e. 192.168.100.254);
- Entered the primary DNS server for the network (i.e. 192.168.100.15);
- Entered the secondary DNS server for the network (i.e. 192.168.200.15);
- Declined the proxy server configuration;
- Checked and confirmed the IP settings;
- Recorded the management URL from the console screen:
- Followed the management URL (i.e. https://192.168.100.100:5480) to the vCMA management page. The management portal allows the following options:
- Login to the management portal (user is “root” with default password of “vmware”)
(Note: logging-in with Firefox, you may get the following error:
You will not get this error with Internet Explorer, Apple’s Safari, Google’s Chrome, Google’s Android Browser and Dolphin Browser for Android.) - View System Information;
- Reboot the virtual appliance;
- Shutdown the virtual appliance;
- Check the Network Status;
- Change the Network Settings, including:
- IP Address
- Netmask
- Gateway
- Preferred DNS
- Alternate DNS
- DHCP versus Static IP settings
- Enable Proxy Server:
- Proxy Server address
- Proxy Port
- Login to the management portal (user is “root” with default password of “vmware”)
- Logged-into the root console to change the default password from “vmware” to something more secure:
- From the console, select “Login” and hit the enter key;
- Logged-in using “root” at the “login:” prompt;
- Entering “vmware” at the “Password:” prompt:
- Changed the password by issuing the “passwd” command and followed the prompts:
- Logged-out by issuing the “exit” command.
- Installation is now complete.
Using vCMA
With the installation complete, accessing the vCMA simply requires passing the URL of your vCMA appliance to the mobile browser of your choice. Assuming your vCMA is named “vcma” in DNS, the URL would be:
Without the “/vim” ending the URL, you’ll see the Apache Tomcat “successful installation” page. With the “/vim” extension, you should see the following:
To login to your vCenter server, you’ll need to enter the IP address or the host name of your vCenter server. If your vCMA appliance does not have DNS access, you must use the vCenter IP address. For username, you must enter a vCenter user with access credentials sufficient to operate the vCenter functions required in the session. If your vCenter is a domain member, the domain is not needed in the username field. Enter the password matching the specified user as usual.
SOLORI’s Note: vCMA can be used to manage individual hosts outside of vCenter’s control. This is NOT recommended for hosts that are concurrently managed by vCenter as it may create disruptions in vCenter’s control. However, to control a non-vCenter managed host, use a local account configured within ESX/ESXi that has the rights to perform the needed tasks (typically “root” or other “root-created” accounts). This mode could also be useful in scenarios where vCenter is run as a VM and inadvertently becomes disabled or unavailable.
The vCMA “home” page displays the basic “menu” of features as named icons. These features are Search, Migrate, Hosts and Clusters Inventory, Scheduled Task Manager, Alarm Viewer, Event Viewer, IP Tools and Client Options. If your vCenter is part of an SRM setup, an SRM control option will be present as well.
With vCMA installed and the proper credentials (and vSphere license) you can manage VM migration from your mobile phone, MID, etc – anything that supports HTML and forms processing. Here’s an example of vCMA in action performing a VM migration in SOLORI’s DRS lab:

SOLORI's vCMA virtual machine migration example.
VMware’s vCMA is not the most secure appliance in the world, but it is not intended to be. vCMA is intended to be a light-weight layer between vCenter and web-only devices like cell phone (iPhone, Android, etc) and provide an API translation layer for more “optimized” visualization tools (i.e. Web 2.0+ application, native phone/tablet apps, etc.). Consider the “/vim” application a proof-of-concept as it has not changed much in its two years of existence.
vCMA and Cached Credentials
For convenience and security, the “/vim” web application allows for four levels of credential caching:
- None
- Server name only
- Server and Username only
- Server, Username and User Password
The caching control is contained in the “client-config.xml” file for the “/vim” application. To edit this file, login to the vCMA – as root – using SSH (or putty.exe, etc.) and do the following:
[root@vcma ~]# cd /usr/lib/vmware/mobile/tomcat [root@vcma tomcat]# ls apache-tomcat-6.0.28 [root@vcma tomcat]# cd apache-tomcat-6.0.28/webapps/vim/WEB-INF/classes [root@vcma classes]# vi client-config.xml
Note, the folder “apache-tomcat-6.0.28″ may be different depending on the vCMA version, so “ls” to whichever “apache” folder is inside the “tomcat” directory. When editing the XML file, look for the “credentialCacheMode” tags. The default section currently looks like this:
<!-- The supported values of Credential cache mode are: CACHE_NONE, CACHE_SERVER, CACHE_SERVER_USERNAME, or CACHE_SERVER_USERNAME_PASSWORD. --> <credentialCacheMode>CACHE_SERVER_USERNAME</credentialCacheMode>
Note that the current mode is “CACHE_SERVER_USERNAME” (option 3). The other modes are listed in the text above the tag section. Change the current mode by replacing the value within the tags to the value that matches the caching mode you wish to use.
Securing vCMA
Being HTTP-only, vCMA doesn’t lend itself to secure computing over the public Internet or untrusted intranet. Instead, it is designed to work with security layer(s) in front of it. While it IS possible to add HTTPS to the Apache/Tomcat server delivering its web application, vCMA is meant to be deployed as-is and updated as-is – it’s an appliance. Therefore, the following recommendations are made if deployed beyond the lab:
- Place vCMA in a DMZ between with specific policies for vCenter(s)/hosts it is allowed to manage;
- Access vCMA via VPN for external hosts or through HTTPS proxy for the “/vim” level and below;
- Protect the management ports, SSH and Tomcat layers;
- Use the CACHE_NONE option for the “/vim” web application to limit masquerading;
vCMA Quirks
The major complaint I’ve had with vCMA is with DPM clusters. In the latest version, it recognizes that a host is in “sleep mode” but only when view that host’s “details” page. From the inventory or search list, the host appears solely as “(NotResponding)” and fails to show the familiar “sleeping” icon – see below:

vCMA host inventory showing host in running, standby and disconnected states. Note that disconnected state shows as the familiar "maintenance" icon and standby shows as the familiar "disconnected" icon.
The worst aspect of this particular quirk is that vCMA actually allows you to place a DPM host to sleep. The catch is that once it’s asleep, it doesn’t know how to wake it up. This is confirmed by looking at the “action-config.xml” and “client-config.xml” files for “/vim” that lists the potential host actions for “/vim” as follows:
<!-- Host operations configuration from client-config.xml --> <feature id="9" name="host" entity="HostSystem"> <operation id="shutdownHost_Task" enabled="true" /> <operation id="rebootHost_Task" enabled="true" /> <operation id="standByHost" enabled="true" /> <operation id="enterMaintenanceMode_Task" enabled="true" /> <operation id="exitMaintenanceMode_Task" enabled="true" /> <operation id="connection" enabled="false" /> </feature> <!-- HostSystem Actions from action-config.xml --> <action name="hostsnclusters" type="com.vmware.vim.mobile.action.HostsAndClustersAction"> </action> <action name="shutdownHost" type="com.vmware.vim.mobile.action.HostOperationAction" parameter="shutdownHost"> </action> <action name="rebootHost" type="com.vmware.vim.mobile.action.HostOperationAction" parameter="rebootHost"> </action> <action name="standByHost" type="com.vmware.vim.mobile.action.HostOperationAction" parameter="standByHost"> </action> <action name="enterMaintenanceMode" type="com.vmware.vim.mobile.action.HostOperationAction" parameter="enterMaintenanceMode"> </action> <action name="exitMaintenanceMode" type="com.vmware.vim.mobile.action.HostOperationAction" parameter="exitMaintenanceMode"> </action>
Note that while both configuration files have instances for “standByHost” – the host standby operation that has been tested to work – neither have reference to waking the host. In “Version 1.0″ of the VMware vCenter Mobile Access Installation and User Guide the manual shows the following about removing hosts from standby:
Note that the Guide indicates that the standby function “either takes the host out of standby mode or puts the host in standby mode” depending on the current state. Not only does this not happen, it appears to be omitted from the vCMA appliance’s capabilities altogether. In fact, when looking at the HTML source of host details for a sleeping host, there is no action connected to the “standby” icon. While this is a big deal only for DPM users, the ability to “sleep” the host with no reciprocal ability to “wake” the host is a problem for them.
However, I just didn’t stop there for DPM. I looked at the URL for the standby function and noticed that a running host has an active standby icon (action linked to the icon) in its details page, but a host in standby had no action connected to the icon. Naturally, I looked at a running host’s standby URL and attempted to reformatted it to specify the sleeping host:
http://vcma/vim/action.do?id=HostSystem|host-835&action=standByHost
This action would be consistent with the documentation’s representation of the “resume” function. However, this approach produced an error within vCenter complaining that the operation was not allowed in the current state (about what you would have predicted):
Digging deeper, it is clear from the XML configuration files that the java class directing host standby operations is available to us based on the following class descriptor:
com.vmware.vim.mobile.action.HostOperationAction
That gives us a place to look for a possible for a match to enable the host to “wake” from standby. Taking the class and performing a strings search, I found a “powerUp” token that wasn’t matched to an action declared in the configuration files. I also identified a task called “powerUpHostFromStandBy_Task” which seemed to indicate that the capability was coded into the class, just not enabled in the client configuration.
Heading down the rabbit hole, I added a new action and matching client configuration to the “/vim” application that would pass the “powerUp” token upon execution. This was a hack at best but still worth the effort just to see if this was a GUI omission or an incomplete function. Just to see if it was a possibility, I reconfigured the “standByHost” action with the parameter “powerUp” (matching the parameter in the decoded action event) and re-sent the “standByHost” command manually. No joy… guess it will need to wait for the next version. In the meantime, I have provided the details of this issue to VMware for follow-up.
Conclusion
There are plenty of things to like about vCMA: it’s light-weight, stupid-easy to deploy and functional enough to get primary, non-VM-console operations handled. There are some interestingly named hooks I discovered in the action class that I will investigate further in a future blog. Beware of the DPM/sleep black hole – you won’t be able to wake-up hosts that have been successfully put to sleep with vCMA, however you can maintenance mode a host as well as restart one. Suffice to say that – limitations and all – vCMA should have a place in your lab and potentially in your enterprise stack.
To download vCMA, see VMware’s “fling” page on the appliance.















There’s something weird here going on. My VCMA download contains no OVF, but just a couple VMDK files and a vmx file.
Also there is no File->Virtual Appliance-> Import from VIC connected direct to my ESXI 4.1 server.
You probably downloaded the ZIP version and not the OVF version. Here’s the link to the OVF:
http://download3.vmware.com/software/vmw-tools/vcma/vCenterMobileAccess-ovf-1.0.0.41-355589.zip
OR, you could import the VMDK and .vmx file and inventory the .vmx – your choice…
Cheers!
[...] http://solori.wordpress.com/2011/02/28/in-the-lab-installing-vcenter-mobile-access/ Ads! Sobre: Ariel Antigua:Soy un adicto a la informática…. que mas puedo decir? Actualmente soy el Encargado de Seguridad en una Universidad en República Dominicana, tengo funciones que van desde Administrar Windows Servers y Linux Server… hasta hacer intento de programar en PHP para Moodle. [...]
[...] Windows Server 2008 R2 Template for VMwareIn-the-Lab: Full ESX/vMotion Test Lab in a Box, Part 4In-the-Lab: Installing vCenter Mobile AccessShort-Take: Windows 7 for iPad, FreeS2935 BIOS IDE Configuration, disabling SATA devices for ESXiAdd [...]
[...] highlighted the installation and use of VMware’s vCenter Moble Access (vCMA) appliance in a post in late February. For the most part, vCMA has not changed much since our [...]
I have the mobile access server up and running. How do you permanently change the name of that server? I have edited the /etc/sysconfig/networks file and saved it. However, when I reboot, it goes back
Tony,
No need. The appliance will grab it’s name from in-address.arpa but changing it’s name inside linux is not possible. This has no affect on the operation of the appliance, although it may affect SSL certificate delegation.