Skip to main content

Posts

Showing posts from December, 2021

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     

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