VMware Linux Virtual machine Hang on Boot ([sda] Assuming drive cache: write through)
ESXCLI command to check vasaprovider and storagecontainer list
Use the below command to check whether the VASA provider and storage container available on esx
1:vasaprovider
[root@localhost:~] esxcli storage vvol vasaprovider list
NetApp-VP
VP Name: NetApp-VP
URL:
Status: online
Arrays:
Array Id: NetApp.clustered.Data.ONTAP.
Is Active: true
Priority: 255
2:storagecontainer
[root@localhost:~] esxcli storage vvol storagecontainer list
SRM1
StorageContainer Name: SRM1
UUID: vvol:b897e0bdfbb94f75-950000000098a0a8
Array: NetApp.clustered.Data.ONTAP.VP:b897e0bdfbb94f7595000000009897af
Size(MB): 16384
Free(MB): 9342
Accessible: false
Default Policy:
Debian linux enable ssh service permanantly
root@VM:~# systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2021-10-13 23:41:35 UTC; 10min ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 4671 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 4672 (sshd)
Tasks: 5 (limit: 4915)
Memory: 45.6M
CGroup: /system.slice/ssh.service
├─4672 /usr/sbin/sshd -D
├─4682 sshd: root@pts/0
├─4697 -bash
├─7082 systemctl status ssh
└─7083 pager
Oct 13 23:41:35 SCV031290C74 systemd[1]: Starting OpenBSD Secure Shell server...
Oct 13 23:41:35 SCV031290C74 sshd[4672]: Server listening on 0.0.0.0 port 22.
Oct 13 23:41:35 SCV031290C74 sshd[4672]: Server listening on :: port 22.
Oct 13 23:41:35 SCV031290C74 systemd[1]: Started OpenBSD Secure Shell server.
Oct 13 23:41:48 SCV031290C74 sshd[4682]: Accepted keyboard-interactive/pam for root from 10.74.13.56 port 56080 ssh2
Oct 13 23:41:48 SCV031290C74 sshd[4682]: pam_unix(sshd:session): session opened for user root by (uid=0)
root@VM1:~# systemctl enable ssh
OTV/VSC service optimization for better performance
OTV/VSC service resource optimization should be done for better performance.
on OTV:
vi /etc/init.d/vpservice
and increase JAVA memory to desired value (example: start_vpservice->$JAVA_Options Xmx4096m
systemctl deamon-reload
service vpservice stop
service vpservice start
the vCenter service username specified doesnot have the Log on as a service privilege
Error:
the vCenter service username specified does not have the Log on as a service privilege
Solution:
Go to Local security policy and enable "log on as a service " permission.
1.Logon to the computer with administrative privileges.
2.Open the ‘Administrative Tools’ and open the ‘Local Security Policy’
3.Expand ‘Local Policy’ and click on ‘User Rights Assignment’
4.In the right pane, right-click ‘Log on as a service’ and select properties.
5.Click on the ‘Add User or Group…’ button to add the new user.
6.In the ‘Select Users or Groups’ dialogue, find the user you wish to enter and click ‘OK’
7.Click ‘OK’ in the ‘Log on as a service Properties’ to save changes.
How to Change Vcenter server hostname easily
To change hostname:
login via ssh root to vCenter server
then run below command:
root@vcsa70u2 [ ~ ]# /opt/vmware/share/vami/vami_config_net
Main Menu
0) Show Current Configuration (scroll with Shift-PgUp/PgDown)
1) Exit this program
2) Default Gateway
3) Hostname
4) DNS
5) Proxy Server
6) IP Address Allocation for eth0
Enter a menu number [0]: 3
Warning: if any of the interfaces for this VM use DHCP,
the Hostname, DNS, and Gateway parameters will be
overwritten by information from the DHCP server.
Type Ctrl-C to go back to the Main Menu
Installing Powershell on RHEL 7
# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo # Install PowerShell sudo yum install -y powershell # Start PowerShell pwshSelenium 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...
-
Error: While deploy using OVF file ,getting error as : Issues detected with selected template. Details: - -1:-1:VALUE_ILLEGAL: No supported...
-
How to enable sftp copy in VCSA (vcenter server Appliance) ssh to VCSA server shell.set --enable Tr...
-
When you enable Vcenter HA on vsphere7.0 esxi cluster if you see any of the below error: vSphere HA agent for this host has an error: The vS...