Category Archives: VMware

Solve the Flex-common-lib-x.x.x.swf fail to load error 2032

When connecting to the vSphere web client with Firefox the following error could occur. RSL https://vcenterserver:9443/vsphere-client/locales/rsl/flex-common-lib-5.5.0.swf failed to load. Error #2032

This happened to me after an upgrade to the latest version of VMware vCenter.


A quick search on google resulted in a solution. Clear your cache from your browser. In my case Firefox. Reload the site, and problem solved.

VCAP5-DCA Objective 9.1 – Install ESXi hosts with custom settings

Knowledge

  • Identify custom installation options
  • Identify ESXi Image Builder requirements

Skills and Abilities 

  • Create/Edit Image Profiles
  • Install/uninstall custom drivers
  • Configure advanced boot loader options
  • Configure kernel options
  • Given a scenario, determine when to customize a configuration

Continue reading

Unable to install VMware tools. Error 1606.

Today I had to virtualize several Windows 2008 R2 Terminal server. After a successful conversion I ran into a problem when installing the VMware Tools.

Error 1606. Could not access network location [servername]\[sharename]\desktop\programs\startup\.


This error is caused by a Group Policies that was redirecting the start menu to another server (also for the domain administrator and local administrator). Because I started the VM in an isolated environment it was unable to check the free disc space of the network share and gave me this error. This error is discussed in VMware KB1017886.

In my case there were two directories redirected to a server that was not reachable for this server. I also checked the Current User settings, but there was nothing directing to the unreachable server.



To solve the error change both register keys to their original settings. 

  • The “Common Startup” key should be “%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup”
  • The “Common Programs” key should be “%ProgramData%\Microsoft\Windows\Start Menu\Programs”

The original setting of all the keys. 


Restart the VMware Tools installation and now everything should work without any problems.

More information:

VCAP5-DCA Objective 8.2 – Administer vSphere Using the vSphere Management Assistant

Knowledge

  • Identify vMA prerequisites
  • Identify vMA specific commands
  • Determine when vMA is needed

Skills and Abilities 

  • Install and configure vMA
  • Add/Remove target servers
  • Perform updates to the vMA
  • Use vmkfstools to manage VMFS datastores
  • Use vmware-cmd to manage VMs
  • Use esxcli to manage ESXi Host configurations
  • Troubleshoot common vMA errors and conditions

    Continue reading

Solving the com.vmware.sps.fault.QsConnectionException error

After en APD (All Path Down) in our hosting environment I had the following error when I tried to do something with the ESXi datastores.


The VMware environment was working correctly.
I started searching the VMware Knowledge base and found KB2064174. This KB describes exactly my problem.

Symptoms 

  • Selecting/browsing a datastore, the VMware vCenter Server 5.1.x displays the error message:

com.vmware.sps.fault.qsconnectionException

  • Selecting the Storage Views of any datastore displays the error message:

cannot initiate storage service

  • vMotion or an offline migration of a virtual machines fails with the below error message:

pbm.fault.PBMFault.summary

Resolution

To resolve this issue, ensure the VMware inventory service and the VMware profile Driven Storage Service are running.

  1. Log in as an administrator to the server that is running the vCenter Server.
  2. Click Start > Run.
  3. Type services.msc
  4. From the list of services, check the status of the VMware inventory service and the VMware profile Driven Storage Service.
  5. If any of these services are not running, right-click on the service and select Start. (A restart of the services may be applicable as well).

Note: If both of the services are not running, start the Inventory service first and the Profile Driven storage service second.

For VMware vCenter Appliance 5.x

Restart virtual center server through the web interface.

  1. Log in to the vCenter Server Appliance’s VAMI (Virtual Appliance Management Interface) at http://<IP/hostname of VC>:5480
  2. Select the Summary tab under vCenter Server.
  3. Click Stop beside vCenter Server to stop the process.
  4. Click Start beside vCenter Server to start the process

In my case all the services where running, so I restarted the VMware vCenter Inventory services. After this restart the error message disappeared when browsing the datastores.

vExpert 2014 Announcement

Today, April 1ste the VMware vExperts for 2014 are announced. And YES!!! I am one of them for the second time. And no this is not a joke!!

For some prove, the complete list of all the vExperts can be found here. This year there are 754 awarded with the vExpert 2014 title.


Each of these vExperts have demonstrated significant contributions to the community and a willingness to share their expertise with others.

I would like to thank John Troyer, Corey Romero and the rest of the VMware Social & Community Team for making this possible.

Congratulations to all the other 2014 vExperts.

VCAP5-DCA Objective 8.1 – Execute VMware Cmdlets and Customize Scripts Using PowerCLI

Knowledge

  • Identify vSphere PowerCLI requirements
  • Identify Cmdlet concepts
  • Identify environment variables usage

Skills and Abilities 

  • Install and configure vSphere PowerCLI
  • Install and configure Update Manager PowerShell Library
  • Use basic and advanced Cmdlets to manage VMs and ESXi Hosts
  • Use Web Service Access Cmdlets
  • Use Datastore and Inventory Providers
  • Given a sample script, modify the script to perform a given action
    Continue reading

VCAP5-DCA Objective 7.1 – Secure ESXi Hosts

Knowledge

  • Identify configuration files related to network security
  • Identify virtual switch security characteristics

Skills and Abilities

  • Add/Edit Remove users/groups on an ESXi host
  • Customize SSH settings for increased security
  • Enable/Disable certificate checking
  • Generate ESXi host certificates
  • Enable ESXi lockdown mode
  • Replace default certificate with CA-signed certificate
  • Configure SSL timeouts
  • Configure vSphere Authentication Proxy
  • Enable strong passwords and configure password policies
  • Identify methods for hardening virtual machines
  • Analyze logs for security-related messages
  • Manage Active Directory integration
    Continue reading

Unable to logon VMware vCenter Appliance with Root

A couple of weeks ago the VMware vCenter 5.5.0b update was released. Time to upgrade my home lab vCenter Server Appliance from version 5.5.0a to version 5.5.0b. I am using the appliance so this should be easy.

When I was trying to login to the management environment with my root account I was getting errors. Unable to authenticate.


Also when I connected with SSH to the Appliance I’m getting error messages that my password is not correct.


I know for sure that this password is the correct one. I opened a console screen from the vSphere Webclient and that one is also giving me the error.


Also the VMware vSphere Web Client is giving an error.

I am unable to logon with the root account of the appliance.

Ok.. This is a problem. I remembered reading a blog post of William Lam about a problem with the expiration date of the Root Password. So I started searching the VirtualGhetto blog site, and found the article. See http://www.virtuallyghetto.com/2013/09/how-to-recover-vcsa-55-from-expired.html

So I followed the steps described in Williams article.

  1. Boot up vCenter Server using a current Linux live CD. I am using a Ubuntu ISO that I had.
  2. Mount the VMware vCenter Server Appliance root partition. This should be /dev/sda3
  3. Edit the /etc/shadow file with your favorite editor. Advice make a copy of the shadow file before editing it.
  4. When the root password is expired there should be an x in front of the password string. This was the case

  5. Remove the x in front of the password string and save the shadow file.
  6. Reboot the VCSA. If everything went well you are able to logon with the root account.

I was able to logon into the appliance again, but to prevent future problems with the password expiration I disabled the expiration in the management page of the VCSA. Because this is my home lab this is ok.


In production environments this is not advisable

Lessons learned:

  • Configure a SMTP server and an alert email account so you will be notified when the password is going to be expired.
  • Or in a home lab environment, disable the expiration date of the root password.

More information: