Creating Datastore using vsphere powercli



1: Create NFS datastore:
    New-Datastore -Nfs -VMHost 10.1.1.22 -Name NFSDatastore -Path /mynfs -NfsHost 10.1.1.34


2:Create VMFS datastore:
Connect to vCenter:
     Connect-VIServer -Server “vcenter_IP” -User UserName -Password Password
Get canonical names:
    Get-SCSILun -VMhost 192.168.1.103 -LunType Disk | Select CanonicalName,Capacity
Create datastore:
New-Datastore -VMHost Host -Name Datastore -Path CanonicalName -VMFS

How to exit from VI editor Visual Mode




run the below command and open the VI editor again:


echo "set mouse-=a" >> ~/.vimrc 

VCSA change root password

Login to ssh VCSA using administrator@vsphere.local


Command> shell.set --enable True
Command> shell
    ---------- !!!! WARNING WARNING WARNING !!!! ----------

Your use of "pi shell" has been logged!

The "pi shell" is intended for advanced troubleshooting operations and while
supported in this release, is a deprecated interface, and may be removed in a
future version of the product.  For alternative commands, exit the "pi shell"
and run the "help" command.

The "pi shell" command launches a root bash shell.  Commands within the shell
are not audited, and improper use of this command can severely harm the
system.

Help us improve the product!  If your scenario requires "pi shell," please
submit a Service Request, or post your scenario to the
https://communities.vmware.com/community/vmtn/vcenter/vc forum and add
"appliance" tag.

sso-user@vcsa67u1 [ ~ ]$

root [ /var/lib/sso-user ]# sudo passwd root
New password:
BAD PASSWORD: it is based on a (reversed) dictionary word
Retype new password:
passwd: password updated successfully
root [ /var/lib/sso-user ]#

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