dekoshal's Posts

Have a look at this  a general system error occurred: failed to register VRMS Best Regards, Deepak Koshal CNE|CLA|CWMA|VCP|CCAH|TOGAF®
I was able to used your v2 script to fix this error. Thanks
getting error exporting roles&permission.
I have already tried that i am getting error on Add-PSSnapin VMware.VimAutomation.Core. As we are not moving all the cluster and esxi at once to VC2, i was wondering how to make sure that fo... See more...
I have already tried that i am getting error on Add-PSSnapin VMware.VimAutomation.Core. As we are not moving all the cluster and esxi at once to VC2, i was wondering how to make sure that folder structure, vm mapping to folders and roles&permission can be mirrored on VC2 at cluster level because we will be moving one cluster at a time. this is unlike the cheap disaster recover scripts where the target VC is mirrored with source VC at once. 
Need help with the script for below mentioned requirement.  scenario ========== VC1 =  Existing 6.0 vcenter  server  VC2 = Newly deployed 6.5 VCSA. We have already imported dv switch ... See more...
Need help with the script for below mentioned requirement.  scenario ========== VC1 =  Existing 6.0 vcenter  server  VC2 = Newly deployed 6.5 VCSA. We have already imported dv switch configuration from VC1 to VC2 . our plan is to move one cluster at a time from VC1 to VC2. Once we create the new cluster in VC2 we will add the hosts from corresponding cluster of VC1.  Following that  we need script that will restore : 1.   Export and import script for folder structure at the cluster level  from  VC1 to VC2 2.   Export and import script for Moving the VM’s to their respective folders.  3.    Export and import script for Roles and permission at the cluster level from V1 to VC2 Thank you for the help.
Hi Need help to  script to list vm with multiple datastore VM Name      Cluster Name     Datastore name VM1              Cluster 1              Datastore 1, Datastore 2, Datastore 3 v... See more...
Hi Need help to  script to list vm with multiple datastore VM Name      Cluster Name     Datastore name VM1              Cluster 1              Datastore 1, Datastore 2, Datastore 3 vm2               Cluster 1              Datastore 2, Datastore 1 Best Regards, Deepak Koshal
Issue fixed by VMware support by removing stale registry  entry from vCenter server.
firstbootStatusjson.log {     "totalSteps": 24,      "stepsCompleted": 23,      "stepsStarted": 23,      "finalStatus": "failure",      "failedSteps": "vmafd-firstboot",      "stepsC... See more...
firstbootStatusjson.log {     "totalSteps": 24,      "stepsCompleted": 23,      "stepsStarted": 23,      "finalStatus": "failure",      "failedSteps": "vmafd-firstboot",      "stepsCompletedList": "vmsyslogcollector_firstboot,vsanhealth_firstboot,ngc_firstboot_wait,eam_firstboot,mbcs_firstboot,netdump-firstboot,perfcharts_firstboot,autodeploy-firstboot,sms_spbm_firstboot,vapi_firstboot,vdc-firstboot,workflow_firstboot,vsm_firstboot,vws_firstboot,vpxd_firstboot,ngc_firstboot,invsvc_firstboot,dbconfig_firstboot,scafirstboot,cmfirstboot,rhttpproxy_firstboot,soluser_firstboot,vmafd-firstboot" } fbinstalljson.log {     "status": "error",     "info": [],     "question": null,     "progress_message": {         "args": [             "VMware Authentication Framework"         ],         "id": "install.ciscommon.component.stopping",         "localized": "Stopping VMware Authentication Framework...",         "translatable": "Stopping %(0)s..."     },     "warning": [],     "error": {         "resolution": null,         "detail": [             {                 "args": [                     "VMWareCertificateService"                 ],                 "id": "install.ciscommon.service.failstop",                 "localized": "An error occurred while stopping service 'VMWareCertificateService'",                 "translatable": "An error occurred while stopping service '%(0)s'"             }         ],         "componentKey": "vmafd",         "problemId": null     },     "progress": 91 }
We are using external PSC for windows vcenter server
We are able to start and stop service before and after the upgrade errors out. We have a open SR with VMware on this but so far no progress has been made.
From vcenter 6.0 4541947 vCenter Server 6.0 Update 2a To vcenter 6.0 7037394 vCenter Server 6.0 Update 3c uninstall.log 2017-02-18 02:23:30,903: CM search failed. ProductId=com.vmware.c... See more...
From vcenter 6.0 4541947 vCenter Server 6.0 Update 2a To vcenter 6.0 7037394 vCenter Server 6.0 Update 3c uninstall.log 2017-02-18 02:23:30,903: CM search failed. ProductId=com.vmware.cis, TypeId=cs.identity 2017-02-18 02:23:30,903: Error connecting to CM: {     "resolution": {         "id": "install.default.failure.resolution",          "localized": "This is an unrecoverable error, please retry install. If you run into this error again, please collect a support bundle and open a support request.",          "translatable": "This is an unrecoverable error, please retry install. If you run into this error again, please collect a support bundle and open a support request."     },      "detail": [         {             "args": [                 "CM search failed. ProductId=com.vmware.cis, TypeId=cs.identity:503 Service Unavailable (Failed to connect to endpoint: [class Vmacore::Http::NamedPipeServiceSpec:00000000018056F0] _serverNamespace = / _isRedirect = false _pipeName =\\\\.\\pipe\\vmware-vpxd-webserver-pipe)"             ],              "id": "install.ciscommon.internal.error",              "localized": "Encountered an internal error.\n\nCM search failed. ProductId=com.vmware.cis, TypeId=cs.identity:503 Service Unavailable (Failed to connect to endpoint: [class Vmacore::Http::NamedPipeServiceSpec:00000000018056F0] _serverNamespace = / _isRedirect = false _pipeName =\\\\.\\pipe\\vmware-vpxd-webserver-pipe)",              "translatable": "Encountered an internal error.\n\n%(0)s"         }     ],      "componentKey": null,      "problemId": null } 2017-02-18 02:23:30,903: Failed to unregister node from CM. Error {     "resolution": {         "id": "install.default.failure.resolution",          "localized": "This is an unrecoverable error, please retry install. If you run into this error again, please collect a support bundle and open a support request.",          "translatable": "This is an unrecoverable error, please retry install. If you run into this error again, please collect a support bundle and open a support request."     },      "detail": [         { ============================================================================================ soluser_firstboot.py_9276 2018-05-19T05:17:43.701Z   Invoked command: ['C:\\Program Files\\VMware\\vCenter Server\\vmafdd\\vecs-cli.exe', 'store', 'list'] 2018-05-19T05:17:43.701Z   RC = 1021 Stdout =  Stderr = vecs-cli failed. Error 1021: Cannot connect to vmafd service.  2018-05-19T05:17:43.701Z   Error deleting solution user machine. Error {     "resolution": null,      "detail": [         {             "args": [                 "Command: ['C:\\\\Program Files\\\\VMware\\\\vCenter Server\\\\vmafdd\\\\vecs-cli.exe', 'store', 'list']\nStderr: vecs-cli failed. Error 1021: Cannot connect to vmafd service. \r\n"             ],              "id": "install.ciscommon.command.errinvoke",              "localized": "An error occurred while invoking external command : 'Command: ['C:\\\\Program Files\\\\VMware\\\\vCenter Server\\\\vmafdd\\\\vecs-cli.exe', 'store', 'list']\nStderr: vecs-cli failed. Error 1021: Cannot connect to vmafd service. \r\n'",              "translatable": "An error occurred while invoking external command : '%(0)s'"         },          {             "id": "install.ciscommon.vecs.list.stores",              "localized": "Error in generating list of VECS store instances.",              "translatable": "Error in generating list of VECS store instances."         }     ],      "componentKey": null,      "problemId": null =============================================================================================     vmafd-firstboot.py_9276_stderr.log 2018-05-19T05:18:31.873Z   WARNING Value for install-parameter vmdir.password is empty 2018-05-19T05:18:31.873Z   WARNING Value for install-parameter machine.cert.dir is empty 2018-05-19T05:18:31.873Z   WARNING Value for install-parameter upgrade.import.directory is empty 2018-05-19T05:18:31.873Z   WARNING Value for install-parameter upgrade.source.platform is empty 2018-05-19T05:18:31.873Z   WARNING Value for install-parameter upgrade.import.directory is empty 2018-05-19T05:18:31.873Z   WARNING Value for install-parameter vmdir.password is empty 2018-05-19T05:18:31.889Z   WARNING Value for install-parameter vmdir.password is empty 2018-05-19T05:18:31.889Z   Exception: Traceback (most recent call last):   File "C:\Program Files\VMware\vCenter Server\firstboot\vmafd-firstboot.py", line 121, in main     controller.uninstall()   File "C:\Program Files\VMware\vCenter Server\firstboot\vmafd-firstboot.py", line 71, in uninstall     service.uninstall()   File "C:\Program Files\VMware\vCenter Server\firstboot\identityinstall\vmcaInstall.py", line 191, in uninstall     self.utils.stop_service(self.__VMCA_SERVICE_NAME, self.__VMCA_COMPONENT_NAME)   File "C:\Program Files\VMware\vCenter Server\firstboot\identityinstall\WindowsUtils.py", line 92, in stop_service     raise ServiceStopException(serviceName) ServiceStopException: {     "resolution": null,      "detail": [         {             "args": [                 "VMWareCertificateService"             ],              "id": "install.ciscommon.service.failstop",              "localized": "An error occurred while stopping service 'VMWareCertificateService'",              "translatable": "An error occurred while stopping service '%(0)s'"         }     ],      "componentKey": null,      "problemId": null }                  vminst.log            2018-05-18 23:17:31.236-06:00| vcsInstUtil-7037391| I: ParseStatusFile: STATUS: 87%: "Stopping VMware Single Sign-On User Creation..." 2018-05-18 23:17:31.236-06:00| vcsInstUtil-7037391| I: ParseStatusFile: Calling callback with 83 -> 87 "Stopping VMware Single Sign-On User Creation..." 2018-05-18 23:17:31.236-06:00| vcsInstUtil-7037391| I: Entering function: UpdatePkgMgrProgressFromStatusFile 2018-05-18 23:17:31.236-06:00| vcsInstUtil-7037391| I: ProcessMsiMsg: ACTIONDATA reporting "Stopping VMware Single Sign-On User Creation..." 2018-05-18 23:17:31.252-06:00| vcsInstUtil-7037391| I: Leaving function: UpdatePkgMgrProgressFromStatusFile 2018-05-18 23:17:31.252-06:00| vcsInstUtil-7037391| I: Leaving function: ParseStatusFile 2018-05-18 23:18:31.343-06:00| vcsInstUtil-7037391| I: Entering function: ParseStatusFile 2018-05-18 23:18:31.343-06:00| vcsInstUtil-7037391| I: ParseStatusFile: STATUS: 91%: "Stopping VMware Authentication Framework..." 2018-05-18 23:18:31.343-06:00| vcsInstUtil-7037391| I: ParseStatusFile: Calling callback with 87 -> 91 "Stopping VMware Authentication Framework..." 2018-05-18 23:18:31.343-06:00| vcsInstUtil-7037391| I: Entering function: UpdatePkgMgrProgressFromStatusFile 2018-05-18 23:18:31.343-06:00| vcsInstUtil-7037391| I: ProcessMsiMsg: ACTIONDATA reporting "Stopping VMware Authentication Framework..." 2018-05-18 23:18:31.359-06:00| vcsInstUtil-7037391| I: Leaving function: UpdatePkgMgrProgressFromStatusFile 2018-05-18 23:18:31.359-06:00| vcsInstUtil-7037391| I: Leaving function: ParseStatusFile 2018-05-18 23:18:31.998-06:00| vcsInstUtil-7037391| I: Entering function: ParseStatusFile 2018-05-18 23:18:32.014-06:00| vcsInstUtil-7037391| I: ParseStatusFile: curr error msg: "An error occurred while stopping service 'VMWareCertificateService'" 2018-05-18 23:18:32.014-06:00| vcsInstUtil-7037391| E: ParseStatusFile: Displaying error message for " ": "An error occurred while stopping service 'VMWareCertificateService'" 2018-05-18 23:18:49.408-06:00| vcsInstUtil-7037391| I: Entering function: ShowMessageQueue 2018-05-18 23:18:49.408-06:00| vcsInstUtil-7037391| I: Leaving function: ShowMessageQueue 2018-05-18 23:18:49.408-06:00| vcsInstUtil-7037391| I: Entering function: ShowMessageQueue 2018-05-18 23:18:49.408-06:00| vcsInstUtil-7037391| I: Leaving function: ShowMessageQueue 2018-05-18 23:18:49.408-06:00| vcsInstUtil-7037391| I: ParseStatusFile: got error or success 2018-05-18 23:18:49.423-06:00| vcsInstUtil-7037391| I: ParseStatusFile: keeping completed status file: C:\ProgramData\VMware\vCenterServer\logs\uninstall\fbInstall.json 2018-05-18 23:18:49.423-06:00| vcsInstUtil-7037391| I: Leaving function: ParseStatusFile 2018-05-18 23:18:49.423-06:00| vcsInstUtil-7037391| I: MonitorStatusFile: Parse callback gave final result: 0 2018-05-18 23:18:49.423-06:00| vcsInstUtil-7037391| I: MonitorStatusFile: called parse callback 10 times 2018-05-18 23:18:49.423-06:00| vcsInstUtil-7037391| I: MonitorStatusFile: Process still hasn't terminated, waiting 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: MonitorStatusFile: Wait on process has completed: 0 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: MonitorStatusFile: Process's job tree still hasn't terminated, waiting 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: MonitorStatusFile: Wait on process's job tree has completed: 0 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: Leaving function: MonitorStatusFile 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| E: LaunchProcAndMonitorStatus: Failure detected while monitoring status file 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| E: LaunchProcAndMonitorStatus: Job still alive, terminating 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: Leaving function: LaunchProcAndMonitorStatus 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: Leaving function: LaunchProcAndMonitorCommonStatusFile 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| E: RunFirstLastUpdateboot: Failed to run boot script: "C:\Windows\system32\cmd.exe /S /C ""C:\Program Files\VMware\vCenter Server\bin\run-uninstall-scripts.bat" --operation ROLLBACK"" 2018-05-18 23:42:03.177-06:00| vcsInstUtil-7037391| I: Leaving function: VM_RunLastBoot 2018-05-18 23:42:03.520-06:00| vcsInstUtil-7037391| E: wWinMain: MSI result of install of "Z:\vCenter-Server\Packages\vcsservicemanager.msi" may have failed: 1603 (0x00000643) 2018-05-18 23:42:03.520-06:00| vcsInstUtil-7037391| E: LaunchPkgMgr: Operation on vcsservicemanager.msi appears to have failed: 1603 (0x00000643) 2018-05-18 23:42:03.520-06:00| vcsInstUtil-7037391| I: PitCA_MessageBox: Displaying message: "Installation of component VCSServiceManager failed with error code '1603'. Check the logs for more details." 2018-05-18 23:42:20.306-06:00| vcsInstUtil-7037391| I: LaunchPkgMgr: Telling child to revert transaction 2018-05-18 23:42:20.306-06:00| vcsInstUtil-7037391| I: InstallStatus_SetStage: install stage: install-packages / revert-transaction 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: EndTransaction: Chain transaction 1 rollback result 3010 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: wWinMain: We've been told our work is done, terminating 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: wWinMain: Releasing install mutex 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: Leaving function: wWinMain 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: LaunchPkgMgr: DLL got exe done: 3010 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: LaunchPkgMgr: disconnected pipe 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: LaunchPkgMgr: Starting services on update rollback. 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: Entering function: VM_StartVcsServices 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: PitCA_RefreshVMEnvironmentVars: Updating PATH environment variable. 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: PitCA_RefreshVMEnvironmentVars: Var: Path, Val: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MIT\Kerberos\bin;D:\Program Files\VMware\vCenter Server\openSSL;C:\Program Files\VMware\vCenter Server\openSSL 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: StartStopVCSServices: Running command '"C:\Windows\system32\cmd.exe" /S /C ""C:\Program Files\VMware\vCenter Server\bin\service-control.bat"" --start --all'... 2018-05-18 23:46:04.104-06:00| vcsInstUtil-7037391| I: StartStopVCSServices: Waiting for VC services to start... 2018-05-18 23:46:09.002-06:00| vcsInstUtil-7037391| E: StartStopVCSServices: Unable to start VC services 2018-05-18 23:46:09.002-06:00| vcsInstUtil-7037391| I: Leaving function: VM_StartVcsServices 2018-05-18 23:46:09.049-06:00| vcsInstUtil-7037391| E: LaunchPkgMgr: Overall operation has failed
Thank you. It worked.
Both the command works first list the host and second list the vcenter server.
just replaced the ip with x here. $dnsServers = 'x.x.x.x','1x.x.x.x','x.x.x.x '   Get-VMHost | %{     $esxci = Get-EsxCli -VMHost $_ -V2     $esxcli.network.ip.dns.server.list... See more...
just replaced the ip with x here. $dnsServers = 'x.x.x.x','1x.x.x.x','x.x.x.x '   Get-VMHost | %{     $esxci = Get-EsxCli -VMHost $_ -V2     $esxcli.network.ip.dns.server.list.Invoke() | select -ExpandProperty DNSServers | %{         $sOldDns = @{             server = $_         }         $esxcli.network.ip.dns.server.remove.Invoke($sOldDns)     }     $dnsServers | %{         $sDns = @{             server = $_         }         $esxcli.network.ip.dns.server.add.Invoke($sDns)     } }
yes it is .ps1 script.
getting error message : You cannot call a method on a null-valued expression. At C:\denverdns.ps1:9 char:5 +     $esxcli.network.ip.dns.server.list.Invoke() | select -ExpandProperty DNSS... See more...
getting error message : You cannot call a method on a null-valued expression. At C:\denverdns.ps1:9 char:5 +     $esxcli.network.ip.dns.server.list.Invoke() | select -ExpandProperty DNSServ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~     + CategoryInfo          : InvalidOperation: (:) [], RuntimeException     + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At C:\denverdns.ps1:29 char:9 +         $esxcli.network.ip.dns.server.add.Invoke($sDns) +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidOperation: (:) [], RuntimeException     + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression.
Hi, Need help with script to update/add DNS ip of all esxi host in vcenter. Need to configure three DNS IP's. Best Regards, Deepak Koshal
You can try below VMware kb article to re-create missing descriptor file for Flat and delta vmdk. Recreating a missing virtual machine disk descriptor file (for corresponding Flat.vmdk) VM... See more...
You can try below VMware kb article to re-create missing descriptor file for Flat and delta vmdk. Recreating a missing virtual machine disk descriptor file (for corresponding Flat.vmdk) VMware Knowledge Base Recreating a missing virtual disk (VMDK) descriptor file for delta disks VMware Knowledge Base NOTE:Make sure you take a backup of the VM  folder before try above mentioned KB article. This is to make sure you have the original file (VM file like vmx, vmdk, etc)and we do not make it worse by following the above procedure. If you found this or any other answer helpful, please consider the use of the Correct or Helpful to award points. Best Regards, Deepak Koshal CNE|CLA|CWMA|VCP4|VCP5|CCAH
Thanks. You are right CIP is  not required in 6.5  for file upload and download. just now checked this KB to confirm that. VMware Knowledge Base I have not suggested to take backup of virtual m... See more...
Thanks. You are right CIP is  not required in 6.5  for file upload and download. just now checked this KB to confirm that. VMware Knowledge Base I have not suggested to take backup of virtual machine by downloading VM folder from datastore browser and i agree that its not at all a good way of backing a virtual machine as it may loose its consistency.  I would say why not clone the VM or export it as OVF.
You should see download plugin option on the bottom of web-client login screen. If you found this or any other answer helpful, please consider the use of the Correct or Helpful to award ... See more...
You should see download plugin option on the bottom of web-client login screen. If you found this or any other answer helpful, please consider the use of the Correct or Helpful to award points. Best Regards, Deepak Koshal CNE|CLA|CWMA|VCP4|VCP5|CCAH https://hackhands.com/dkoshal/