ESXi command to list list of VM and IPs

 In case of all VMs have vmware tools installed, use below command to list all IP address assigned for VM inside a ESXi server


for i in `vim-cmd vmsvc/getallvms | grep -v Vmid | awk '{print $1}'`; do vim-cmd vmsvc/get.guest $i | grep -i 'ipaddress = "'; done




How to connect Azure VMware solution vCenter server

 Azure VMware Solution(AVS) provides a vCenter server with minimum 3 node ESXi hosts while provision.

 But the issue is that AVS will be created with only private cloud networks.

For accessing we need to create a windows jump host .For this follow below step


1.Create AVS.

2.Create a resource "virtual network" on the same region of AVS.

3.Create a resource "virtual network gateway" with "express route" as type.

3.create a express route key  request on AVS. 

     AVS->Connectivity:

   

  Now copy express ID and key.

4.Go to VPN gateway ->Connections->Add connection
     check "redeem authentication" and provide "express key/ID"

5.Now create a windows jump host server on the above create vNet.







Debain root account locked

 If Debian linux console root account locked follow below:



  1. Reboot the debain VM and in console
  2. Press e to reach the GRUB menu.
  3. Change the  boot options
    • Delete console=tty2 quiet loglevel=2 and replace with the boot option
    •  init=/bin/bash as 

scv_ova_grub_menu.png

4. Press Ctrl+X or F10 to enter root@(none):/# prompt.

  1. Run fsck -f -y -v /dev/sdc1 repeatedly until there are no more errors.
  2. Enter the command reboot -f  to reboot the VM.

How to Check Java version in linux

 Using below command:


Server91EF60:~# java -version

openjdk version "1.8.0_232"

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)

OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)

How to check mysql version in Linux

 Use below command in linux:


Server03091EF60:~# mysql --version

mysql  Ver 8.0.27 for Linux on x86_64 (MySQL Community Server - GPL)

root@SCV03091EF60:~#

How to check dot net core version in linux

 


Use  below command to validate .net core SDK version in linux (debian)


Host03091EF60:~# dotnet --info

  It was not possible to find any installed .NET Core SDKs

  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:

      https://aka.ms/dotnet-download

 

Host (useful for support):

  Version: 3.1.2

  Commit:  916b5cba26

Key provider is not compatible with the host . Reason: "The host does not support Native Key Provider.

 Error:

 Key provider scvntp is not compatible with the host . Reason: "The host does not support Native Key Provider.


Solution:

 Below are the two requirement for the above issue.

1. ESXI Host in a cluster.

2.Host licensed for enterprise+.

"vmware backup of native key provide has failed" while backup NKP key provider

 Error:


After enabling Native Key provider (NKP) in vCenter 7.x next steps is to backup the key provider.

while select backup and provider password, we get below error:


vmware backup of native key provide has failed


Solution:

  1. Make sure you connected vCenter from browser using FQDN name while doing backup.
  2. Also check FQDN of the vCenter server is properly configured with connecting https://<VCIP>:5480 using root credentials.

Connect-SsoAdminServer: A positional parameter cannot be found that accepts argument

 Error:


Connect-SsoAdminServer: A positional parameter cannot be found that accepts argument



Solution:


In linux powershell use "-Server" parameter to provide VC_ADDRESS

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