Tag Archives: vmware

VMworld 2017 Europe Monday

clip_image001Yesterday the VMworld faithful started arriving at El-Prat Airport in Barcelona, heading to registration at the Fira Gran Via, and checking into their hotels in the city. To get the event started the annual vRockstar gathering offered the chance to renew old friendships and make some new ones. This year vRockstar found a new home by the marina at the “Soho House” club. Thanks again to the organisers Patrick Redknap and Marco Broeken and the numerous sponsors they managed to persuade to dip into their pockets.

Monday morning, bright and early it was time to go back to the Fira and have the Monday morning explore. Monday is primarily Partner/TAM day but there are a number of sessions open to all attendees, plus the Hands-On Labs, Education Lounge, and VMTN Community area are all up and running in the VMVillage. Continue reading


Missing Content Libraries.


I came to deploy a Virtual Machine from a Content Library on vSphere 6.5 and discovered that the Content Library had disappeared.



The Content Library Service was stopped.


Attempting to start the service caused an error- both through the GUI and command line.

login as: root
VMware vCenter Server Appliance
Type: vCenter Server with an embedded Platform Services Controller
[email protected]'s password:
Last login: Thu Sep 7 12:55:51 2017 from

[email protected] [ ~ ]# service-control --status vmware-content-library
[email protected] [ ~ ]# service-control --start vmware-content-library
  Perform start operation. vmon_profile=None, svc_names=['vmware-content-library'], include_coreossvcs=False, include_leafossvcs=False
  2017-09-07T13:27:38.208Z Service content-library state STOPPED
  Error executing start on service content-library. Details {
  "resolution": null,
  "detail": [
  "args": [
  "id": "install.ciscommon.service.failstart",
  "localized": "An error occurred while starting service 'content-library'",
  "translatable": "An error occurred while starting service '%(0)s'"
  "componentKey": null,
  "problemId": null
  Service-control failed. Error {
  "resolution": null,
  "detail": [
  "args": [
  "id": "install.ciscommon.service.failstart",
  "localized": "An error occurred while starting service 'content-library'",
  "translatable": "An error occurred while starting service '%(0)s'"
  "componentKey": null,
  "problemId": null
[email protected] [ ~ ]#

The symptoms possibly started following an upgrade of vCenter to 6.5 Update 1.



Removing the ts-config.properties files (see VMware KB2151085 here) allowed me to restart the service.

[email protected]</a> [ ~ ]# cd /etc/vmware-content-library/config
[email protected]</a> [ /etc/vmware-content-library/config ]# ls
  cls-config.properties ts-config.properties ts-config.properties.rpmnew vdcs-config.properties
[email protected]</a> [ /etc/vmware-content-library/config ]# cp ts-config.properties ts-config.properties.orig
[email protected]</a> [ /etc/vmware-content-library/config ]# cp ts-config.properties.rpmnew ts-config.properties.rpmnew.orig
[email protected]</a> [ /etc/vmware-content-library/config ]# mv ts-config.properties.rpmnew ts-config.properties

[email protected]</a> [ /etc/vmware-content-library/config ]# service-control --stop vmware-content-library;service-control --start vmware-content-library
  Perform stop operation. vmon_profile=None, svc_names=['vmware-content-library'], include_coreossvcs=False, include_leafossvcs=False
  Successfully stopped service content-library
  Perform start operation. vmon_profile=None, svc_names=['vmware-content-library'], include_coreossvcs=False, include_leafossvcs=False
  2017-09-07T13:29:15.212Z Service content-library state STOPPED
  Successfully started service content-library
[email protected]</a> [ /etc/vmware-content-library/config ]#


The Content Library however was still not visible until after a reboot of the vCenter Server Appliance.



VMworld US 2017 Tuesday Keynote Highlights

Following on from my write up of the Monday keynote, here’s my highlights from the Tuesday VMworld keynote streamed from Las Vegas.

Pat Gelsinger kicked off the Keynote for the second day in a row, starting off with a fireside chat with Michael Dell using questions submitted by attendees from the previous day. A similar format was played out last year, but this was much more relaxed, and felt to me much more like a discussion between two leaders and less like the “Mr Gelsinger interviews Mr Dell” from before.

2017-08-29 (15)

Continue reading


VMworld US 2017 Monday Keynote Highlights

vmw2017sqMonday 28th August 2017 and VMworld has officially kicked off and Monday morning in Las Vegas saw the first keynote of the US event. Whilst I’m waiting patiently for my trip to the European leg in two weeks time I was able to keep track as the Keynotes are live streamed for remote viewers– here’s my highlights from this session.

Continue reading

Exploring Tags and PowerCLI

Tags were added to vSphere back in version 5.1 so they’re not a new feature but are still often overlooked. One or more tags can be applied to items (entities) in the inventory and then used as a search term or metadata not only in the GUI but also through tools such as PowerCLI. This post covers a few useful cmdlets for working with tags.


There are a number of cmdlets which deal with tags, here’s a quick list using Get-Command.


Notice that there’s three Nouns used here- “Tag” represents the tag itself. “TagAssignment” represents a relationship between a tag and another object (for example “This VM has been assigned This (or These) tags). Finally there’s “TagCategory” which represents the category that a tag belongs to.

Getting Tags

So, what can we do with tags in PowerCLI? Well, first we can look at a list of all the tags using Get-Tag. This returns a lot of information, particularly if you have assigned tags already, so we can neaten the quick view using the PowerShell “Select” function to show just the tag name and description:

Get-Tag | Select Name, Description

Name                 Description
– –                 – – – – – –
UrlShortener         URL Shortener Service
Documents            Document Management Service
Change               Change Management Service

In this example, I’ve created three tags to represent three different services operating in my environment. We can carry on from here and find out which entities have been assigned the “Documents” tag- i.e. what VMs form the Document Management Service.

(Get-TagAssignment |
  Where {$_.Tag.Name -eq 'Documents'}).Entity

Name                 PowerState Num CPUs MemoryGB
– –                  – – – – – – – – – – – – –
DocuWebServ          PoweredOn  1        4.000

DocuDBServ           PoweredOn  2        16.000
DocuFileServ         PoweredOn  1        4.000

Or we could flip that and ask the question- “What tags does this VM have assigned?”

Get-VM "DocuWebServ" |
     Get-TagAssignment | Select Tag

– –


Getting Bigger

As we’re using PowerCLI we can join more and more functions together and make bigger and bigger queries. For example, we can  list all VMs with their tags in a table.

Get-VM |
      Select Name,@{Name="Tags";Expression={(Get-TagAssignment -Entity $_).Tag.Name}} |
      Where {$_.Tags} |
      Format-Table - Autosize

Name         Tags
– –          – –
DocuWebServ  {Documents, WebServers}
DocuDBServ   Documents
DocuFileServ Documents
URLShort1    {UrlShortener, WebServers}
URLShort2  {UrlShortener, WebServers, TestAndDev}

This is only scratching the surface of the possibilities- by having useful metadata that lives with the VM and can be accessed programmatically we have plenty of avenues to explore in automation and reporting.