Retrieve OVA OVF config objects using Get-OvfConfiguration

Use below scripts to extract ova/ovf config


 $VIServer = "Vcenterserver1.local.com"

$VIUsername = "administrator@vsphere.local"

$VIPassword = "Password1"

$viConnection = Connect-VIServer $VIServer -User $VIUsername -Password $VIPassword

$ovfPath ="C:\Users\Administrator\Downloads\Test-1-vcenter.ova"

$ovfconfig = Get-OvfConfiguration -Server $viConnection $ovfPath

$ovfconfigHashTable = $ovfconfig.ToHashTable()

how to delete all lines in a file using VI

 

  • Make sure you are in the command mode in Vim by pressing the Esc key.
  • You need to be at the beginning of the file. Press gg for that. This means pressing the g key in quick succession.
  • Now press dG. This means pressing the key d and then hold Shift and press g. Yes, G is uppercase and you'll have to use shift key here the same way you type G.

In short: Esc+gg+dG is what you need to do for deleting all the lines of the file in Vim.

downgrade vmware tools | Uninstall VMware tools

 

For downgrade: 


Link for downloading VMware tools offline:

Index of /45848/tools/releases (vmware.com)

Like any other Guest OS application, one can uninstall/re-install 






MSR diskpart in windows

 


Command to create:

CMD>diskpart

diskpart>select disk 0

diskpart>create partition msr size=1000

Unable to create virtual machine snapshot in vCenter for virtual machine I The VVol target encountered a vendor specific error.

 

VMvware VM snapshot creation fails for vVOL VM with:

Failed to create virtual machine snapshot.. Details: Unable to create virtual machine snapshot in vCenter for virtual machine 'VVOL-VM'. Reason: An error occurred while saving the snapshot: The VVol target encountered a vendor specific error.


Solution:

Update VM disk "VM Storage Policy " to vVOL policy.



Remove installed windows feature "Failover cluster"

 


PowerShell Command:

Remove-WindowsFeature Failover-Clustering -Restart




An error occurred while taking a snapshot: Failed to quiesce the virtual machine

 Error:

VMware snapshot creation fails with below error on "Windows Server 2019"

An error occurred while taking a snapshot: Failed to quiesce the virtual machine.


Solution:

This issue is resolved in Windows Server version 1809 and all versions of Windows Server 2019 OS Build 17763.1012. 

 January 23, 2020—KB4534321 (OS Build 17763.1012).

Download KB from:

Microsoft Update Catalog


VMware KB:

Taking a quiesce snapshot of Windows Server 2019 virtual machine fails (60395) (vmware.com)

Ubuntu change Network config using netplan

 1. Open file and edit:  /etc/netplan/00-installer-config.yaml


 example:

root@ran:~# cat /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'

network:

  ethernets:

    ens160:

      dhcp4: no

      addresses: [169.7.33.52/16]

      routes :

       - to: default

         via: 169.7.33.1

      nameservers:

        addresses: [172.1.1.1]

  version: 2

  renderer: networkd


root@ran:~#


2)verify the yaml format and apply with below command:

#netplan apply

above command gives error if any format issues.


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