Tag Archives: Vcloud Director

Constantly Syncing Inventory

When performing an upgrade of vCloud Director 1.5 to 5.1 we ran into this issue to do with synchronisation.

Constantly Syncing Inventory

A vCloud Director cell may fail to finish the synchronisation with a vCenter Server.  This is an issue where vCloud Director is constantly stating ‘syncing inventory’ in the vCenters section of the system>Manage & Monitor page.
Syncing Inventory
You may find that a simple restart of the affected cell services may fix the issue.  If you are running a multi-cell environment you can do this by quiescing the currently active cell and then stopping and restarting the vCD services.

First disable the cell and pass the active jobs to the other cells.

Display the current state of the cell to view any active jobs.
#  /opt/vmware/vcloud-director/bin/cell-management-tool -u <USERNAME> cell --status

Then Quiesce the active jobs.
#  /opt/vmware/vcloud-director/bin/cell-management-tool -u <USERNAME> cell --quiesce true

Confirm the cell isn’t processing any active jobs.
#  /opt/vmware/vcloud-director/bin/cell-management-tool -u <USERNAME> cell --status

Now shut the cell down to prevent any other jobs from becoming active on the cell.
#  /opt/vmware/vcloud-director/bin/cell-management-tool -u <USERNAME> cell --shutdown

Then restart the services.
# service vmware-vcd restart

If you are not running multiple cells you can just restart the service but it will cause a loss of service during the restart.  A typical restart takes around 2-5 minutes.  You can monitor the progess of the restart by tailing the cell.log file.
# tail -f /opt/vmware/vcloud-director/logs/cell.log

Once it say’s 100%, it is done.

If restarting the services doesn’t help try rebooting the cell.  Use the same commands as above to pass active tasks over to the other cells first before rebooting.
When the cell restarts check and see if the cell will reconnect and finish the sync.  If not check the log /opt/vmware/vcloud-director/logs/vcloud-container-info.log.  Look for the following error.  ORA-01013: user requested cancel of current operation.

You can do this as follows.
# less /opt/vmware/vcloud-director/logs/vcloud-container-info.log

Then press / and type in “user requested cancel of current operation” to go to the location in the log where this entry is recorded.

The reason for ORA 1013: error can be:

  • caused by the user – actually canceling the operation
  • caused by a response to congruent errors
  • the result of timeouts

When  vCloud Director sync is taking place, after processing the updates vCD performs database insertions.  Sometimes while persisting these updates vCloud Director will stop the sync and restart it, hence the constant sync.

Here is how to get around the issue.
1. Take a snapshot of the cell.
2. Quiesce the services of the cells using the cell-management-tool and then stop the services with service vmware-vcd stop as described above.
3. Open vi and add this line to /opt/vmware/vcloud-director/etc/global.properties

# vi /opt/vmware/vcloud-director/etc/global.properties

4. Start the vCloud Director services again.
# service vmware-vcd start

If you do the above for all cells then the setting should be applied.

StratoGen Malaysia is Go!

So you’ve probably seen the press release already – we’ve launched our vCloud platform in Malaysia.  Customer demand in the region is booming , and an Asian presence was the next logical step for StratoGen to augment our global reach.  StratoGen VMware hosting is now available in EMEA, USA and Asia, making us one of the few VMware vCloud Powered partners with true global reach.

This new facility is ideal for anyone experiencing network latency issues between USA or EMEA to the Asia Pac region.  It is also beneficial for Malaysian businesses who may have access to governement development funds, who need to host their infrastructure in country in order to qualify for these grants.

Our Malaysian vCloud platform is based in the Jaring datacenter in Technology Park Kuala Lumpur.   The platform is running the latest VMware vSphere 5.1 with vCloud Director 5.1, offering cutting edge cloud management features including VM Snapshots, Server Load Balancing and advanced vShield firewall tecghnology, all managed via the same vCloud Director login.

As with all StratoGen facilities, Jaring Kuala Lumpur is ISO27001 certified, ensuring the utlimate in security for customer data hosted in the facility.

The first customers are already up and running in the facility.  Any customers wishing to trial our Malaysian cloud can do so by visiting www.stratogen.net/trial and selecting the Asia region from the drop down menu.

How to Upload your own Virtual Machines to the StratoGen vCloud Platform

One of the most common questions our customers ask is ‘How do I upload my own VM images to your platform?’ – here’s a step by step guide.

Step 1 > Have your exported Virtual Machine files ready!

Remember, the StratoGen vCloud Platform will only allow you to upload files in the .OVF format. If you exported your virtual machine in the .OVA format, unfortunately you will need to redo the export process, ensuring you select OVF (Multiple Files option)

Step 2 > Log in to your StratoGen vCloud Director account

Using a supported browser, connect to your URL, as provided by your StratoGen representative at the time of sign up.  Enter your username and password to login to your account.

Step 3 > Select the ‘Catalogs’ tab

The initial homepage for your cloud is displayed. Now click on the ‘Catalogs’ tab.

Step 4> Create a new Organization Catalog

To add your OVFs the files into a catalog, you’ll first need to create one. Click on the green‘+’ to add a new catalog:

New vCloud Catalogue

Give the catalog a name, and step through the Wizard.

Step 5 > Upload OVF Files

One you’ve created your catalog, open it up, click on the upload button and then browse to the location that you exported the VMware Image file to, which in my case was the desktop:

Upload VMware Image OVF File

Select ONLY the .ovf file – the export process will have created a couple of other files but you don’t need to worry about these – the import process will pick them up:

Upload OVF

Click the ‘upload’ button in the catalogue wizard, and then wait for the import to the catalog to complete:

Upload VMware Image 4

The time taken to upload the Image will depend on the size, and the speed of your upload connection.

Step 6 > Deploy Virtual Machine from uploaded image

Once the upload has completed we are then able to deploy the .ovf into your vCloud Virtual Datacentre. In my demo account, I already have a couple of vApps set up, so I’m going to add the uploaded VM to one of my existing vApps.

To do this, open up the vApp, and then click on the ‘Add Virtual Machine’ button. The catalog wizard should pop up, defaulting to the catalog that you just created, and you should see your virtual machine in it. Select the VM, then click the ‘Add’ button and then click ‘Next’:

Deploy VMware Image 1

In the next step we need to give the VM a network connection – choose either the Direct Internet Connection for external connectivity, or import into an existing Internal Network structure – if applicable. Once the network has been added, click next through to the end of the wizard, and the VM Image will begin deploying. If I go back to my vApp diagram I can see the uploaded image is now deployed in my vApp alongside the other servers which were there previously:

Deployed VMware Image

That’s it! I can now power up the machine, and my VMware Image has been moved from my local cloud onto the StratoGen VMware Hosting platform.

Troubleshooting File Uploads

If you experience issues trying to upload .OVF files, they will most likely be caused by browser incompatibilities or Java related issues.

Browser Compatibility List (Correct for vCloud Director 1.5.1)

This table outlines support for browsers on Microsoft Windows operating systems:

This table outlines support for browsers on Linux operating systems:

Java Version 7 Issues

We have seen various issues with browsers using Java version 7. Typical problems include the ‘browse’ button not working when trying to load the file selector. If you experience a similar issue we recommend that you install and use Java JRE version 6 instead*. It is best to install the 32Bit and 64Bit versions. You can download the latest Java 6 from this URL:


*Please check that this won’t impact any existing applications that you already have installed.