connect-VIServer : Could not load file or assembly 'VMware.Vim, Version=7.0.3.3992, Culture=neutral

Error:

while connect vCenter server

connect-VIServer : Could not load file or assembly 'VMware.Vim, Version=7.0.3.3992, Culture=neutral


Solution:

 The issue is becuase of old version of vmware PowerCLI. update using:

UnInstall-Module VMware.PowerCLI

Install-Module VMware.PowerCLI

How to flush DNS cache on Debian Linux

 1. Enable systemd-resolved.service by:

     #systemctl enable systemd-resolved.service


2.Flush the  DNS cache using:

   #resolvectl flush-caches

Photon OS change NTP server time sync

 1.verify the time server

systemctl status systemd-timesyncd


2.Start the service if its not started:

systemctl start systemd-timesyncd


3.Update the NTP server ip in the config:

 vi /etc/systemd/timesyncd.conf

add ntp server : NTP=<IP of ntp server>


4.restart the service

systemctl stop systemd-timesyncd

systemctl start systemd-timesyncd

How to install windows terminal on windows 10

 1.Upgrade your windows to latest version of windows 10 or windows 11


2.Install Chocolatey


   Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))


3.Install Microsoft.VCLibs.Desktop package


   download the package from : https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx


   install using(from powershell):  


                Add-AppxPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx


4.Install windows-terminal


    choco install microsoft-windows-terminal


Delete vCLS Virtual machine from vcenter server

 

We can delete vCLS VMs from vCenter server for maintenance activity by:


1.Find the CLS ID 

  a.Vcenter server webclient.->Developer Center->Clusters -Get API




2.Inverntory->select vCenter server->Config->Advanced settings->Edit settings and add below variable with value "False"
config.vcls.clusters.domain-<CID>.enabled  
     =>here CID =c8 from step1




3. Wait for 1 minutes all the vCLS VM will get deleted automatically.
   you can enable again by changing the value to "TRUE"








Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...