Installing PowerShell(PWSH) and VMware Power CLI on redhat Linux

 

Install PWSH:

On RHEL 7.x:

 # Register the Microsoft RedHat repository

curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo

On RHEL 8.x:

# Register the Microsoft RedHat repository curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo


# Install PowerShell

sudo yum install -y powershell

# Start PowerShell

pwsh



Installing VMware Power CLI:

install-module -name VMware.PowerCLI


    

VASA provider and SRA service not starting | Failed to start LDB control vpserver netapp

 Error:

VASA provider and SRA service not starting.

Failed to start LDB control vpserver netapp


Solution:

ssh login to OTV Server with root.

1. search for the vpserver session service.

    ps -eaf |grep vpserver

2.Kill the process with <PID>

  kill -9 <PID>


now restart OTV VM

Power off VM failed ""Detected an invalid snapshot configuration" error creating a snapshot"

 Error :

Power off VM failed with:

"Detected an invalid snapshot configuration" error creating a snapshot


Solution:


This happens when VM have inaccessible snapshot disks.

1)Note down the inaccessible datastore ID and disk details from the edit settings of VM.
2)remove VM from inventory
3)Download .vmx file from datastore browse.
4)Edit the .VMX file and remove the scsi.1 with these inaccessible disks
5)upload .VMX file to datastore file path
6)delete .vmsd file from datastore.
7)register the VM from the new .vmx file
8)Power off and Power on VM

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...