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

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 ]#

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...