Skip to main content


Showing posts from November, 2017

Unable to take snapshot & consolidate the VM

Recently I got an issue where customer was not able to take snapshot also unable to consolidate the snapshot. While verifying the snapshot status of VM in snapshot manager its shows no snapshot available. However, while accessing the datastore I found 30 snapshot on both the hdd attached to the VM. I tried to consolidate the VM from snapshot manager & from ESXi cli using below command where VIMID is the VM ID which you can get from vim-cmd vmsvc/getallvms (To get vm id) command vim-cmd vmsvc/snapshot.removeall  VMID ( To consolidate the snapshot) but it again failed by giving failed status. Next, I tried to find CID and PID status of both the HDD connected to virtual machine.  You can use below command followed the path of virtual machine . (i.e /vmfs/volumes/vmname) for i in `ls -l *.vmdk  | grep -v delta | grep -v ctk | grep -v flat | awk '{print $ $i; done As mentioned, there are 30 delta files exist on both the HDD and one first HDD I find CID

A general controller error occurred. Connection refused while powering on virtual machine

Recently I had an issue where I was trying to power on a VM from vCenter but unable to power on. While powering on getting below error. “ A general controller error occurred. Connection refused .” VCenter server which Im running is 6.0 and on appliance (VCSA). Steps I follow to resolve the issue: While investigation I found it’s a issue of Workflow manager service which was causing VM to start from vCenter. However, I was able to power on the VM from ESXi, which shows that the issue is not with VM or ESXi . It’s the issue with the services of workflow, which are not allowing VM to poweron from vCenter. I tried below steps to verify the status of the VMware vCenter Workflow Manger service from VCSA. 1) Login to VCSA via Putty. 2) shell.set --enabled True 3) service-control --status vmware-vpx-workflow Status of the services was showing stoped, So, I tried to start the service by using command. service-control --start vmware-vpx-workflo

Migration Assistance (Migrating Windows vCenter to VCSA 6.5 )

Migrating vCenter from one version to another was always a complected task earlier. With the introduction of migration assistance tool which was introduced in 6.0 u2 version,life of the administrator become far easier without worried about multiple components configuration task during migration as most of the task performed in this tool are automated. The risk of mistake and miss-configuration has become lesser during deployment. So, lets gets started.  Here we are migrating windows based vCenter with embedded PSC to VCSA 6.5 Download the ISO or binary of VCSA 6.5 from the VMware portal. Once you have ISO of VCSA mount it into vCenter. Step 1 Run the migration assistant tool which is present under  <Mounted Drive>:\migration-assistant\VMware-Migration-Assistant Note: This "Migration-Assistance tool need to be executed on windows vCenter and once run, it will automatically detect the vCenter instance runing on the machine. Step 2 Once the administrat

To change the ESXi root password when ESXi host managed by VCD

Recently we got into the issue where I have to change the ESXi host root password which was managed by the vCloud Director. Changing the root password directly from the ESXi host is not recommended when the ESXi host is managed by vCloud Director. All operation task need to be accomplish through vCD. NOTE: The test was done on both the ESXi hosts in maintenance mode from VCD and with taking them in to maintenance mode. Since you are performing the ESXi root password change I would suggest to  perform during maintenance mode. Steps performed to change the root password of the ESXi host. Step 1) Enable or Disable an ESX/ESXi Host: You can disable a host to prevent vApps from starting up on the host. Virtual machines that are already running on the host are not affected. - To perform maintenance on a host, migrate all vApps off of the host or stop all vApps and then disable the host. Procedure: 1. Click the Manage & Monitor tab and click Hosts in t

Could not connect to one or more vCenter Server systems: https://FQDN:443/sdk

Recently I got a case where vCenter 6.0 where the webclient was not showing inventory while loading. Issue occur when the customer was performing migration activity of virtual machine. We verified that the vpxd services of vCenter, which is VCSA (Appliance), went into stopped stated just after starting means its crashing. On VCSA Shell: service-control --status vmware-vpxd shows "stopped" service-control --start vmware-vpxd starts the service starts for a couple of seconds and stops again VCSA 6.0 is linked with extrnal PSC 6.0. Verified the services of PSC and found all looks into good state. Tried to power off both the VCSA and PSC and Power on in sequence where we started first PSC and later VCSA. After restarting the VCSA, status of the VPXD services was same as it was getting stopped after couple of seconds. Checked the VPXD logs and found that the heartbeat between ESXi and VCSA was getting timed out for more

Unable to upload and download images or OVF into vCloud director

Recently I got an issue from one of my customer where they were unable to upload or download the files from vCloud Director. At the time or upload or download files into catalog, its prompting below error and ask for download the Client integration plugin, even though the CIP is already installed into the machine from where we are trying to upload the image into Vcd. “The Client integration Plugin-in must be installed to enable OVF upload and download functionality. Click the link below to download installer. When the download has completed, you must close your browser before you can install the plugin” To resolve the issue we have followed below steps. If you are using Internet Explorer 11 and above and facing same error. Please follow below steps to resolve the issue. 1)        Make sure your VCD FQDN is listed into trusted site. 2)        Enable Compatibility mode. 3)        When you load vCloud Director into Internet Explorer, press F12 and it w

Shockwave Flash crashes on vSphere web application

Recently there were an issue where vSphere Web client stopped working with Google crome and Firefox. After login to vSphere webclient or any other web based VMware application getting error where its states “ Shockwave Flash has crashed” After investigating it’s been found that the google recently published a newer version of Flash( with its latest update of crome ( 61.0.3163.100). However, the newer version of Flash was not available for download or listed in Adobe site. Same issue identified on the Firefox where the latest Flash were causing the same issue. Workaround identified 1) One-way to disable the auto-update feature of Chrome, you can do so by changing the following  HKLM\SOFTWARE\Policies\Google\Update\AutoUpdateCheckPeriodMinutes  to 0 2) It looks like you can also simply replace the new pepperflash DLL with an older version and placing it within the folder (in case Chrome tries to update it). If y

Popular posts from this blog

Changing the FQDN of the vCenter appliance (VCSA)

This article states how to change the system name or the FQDN of the vCenter appliance 6.x You may not find any way to change the FQDN from the vCenter GUI either from VAMI page of from webclient as the option to change the hostname always be greyed out. Now the option left is from the command line of VCSA appliance. Below steps will make it possible to change the FQDN of the VCSA from the command line. Access the VCSA from console or from Putty session. Login with root permission Use above command in the command prompt of VCSA : /opt/vmware/share/vami/vami_config_net Opt for option 3 (Hostname) Change the hostname to new name Reboot the VCSA appliance.   After reboot you will be successfully manage to change the FQDN of the VCSA . Note: Above step is unsupported by VMware and may impact your SSL certificate and face problem while logging to vSphere Web Client. If you are using self-signed certificate, you can regenerate the certificate with the

VM Creation Date & Time from Powercli

Most of the times we have several requirement when we talk about IT environment like designing , deployment , compliance check or for Security auditing the environment. Somewhere during security auditing we require to provide several information to security team to get successful audit. One of them is the compliance of Virtual machine auditing of creation date and time. Here into this post we will explore how to get the creation date and time of virtual machine hosted into the vCenter or ESXi. To get the details we will use VMware Powercli to extract the details. By default there is no function added into Powercli to get such details, so here we will add a function of vm creation date. Below is the function which needed to be copy and paste into the Powercli. ======================================================================= function  Get-VMCreationTime  {     $vms  =  get-vm     $vmevts  = @()     $vmevt  =  new-object  PSObject     for

Unable to poweron the VM. (Failed to lock the file)

I have encountered may issues like where after some upgrade or migration we were unable to power on the VM. Figure 1 An error was received from the ESX host while powering on VM HSSVSQL01. Failed to start the virtual machine. Cannot open the disk '/vmfs/volumes/578d835c-18b2c97a-9b0d-0025b5f13920/SAMPLE1_cloud/000000.vmdk' or one of the snapshot disks it depends on. Failed to lock the file In above Figure:1, where while powering on the VM, its prompt for an error. Well, there are several reason for where the VM unable to poweron and you can find many article on this. Here in this article we will discuss to resolve this issue. Please use below step to resolve the disk lock issue  C hecked that VM is running on snapshot if its getting error " VM Consolidation required". Checked the snapshot manager if its showing any snapshot. If yes, try to delete the  snapshot. Verified the same from Esxi cl