Skip to main content

Posts

Showing posts from March, 2025

Enable root permission and sudo for debain

 Error When you try sudo for the root permission you will get below error: This account is currently not available Solution 1.Remove nologin from the /etc/passwd file     sudo nano /etc/passwd     Change the "/usr/sbin/nologin" to /bin/bash 2.edit /etc/ssh/sshd_config      PermitRootLogin yes 3. Restart SSH service     systemctl restart ssh

VMFS datastore creating one same LUN not listing in all the shared ESXi hosts

  Issue: Create a Storage LUN/Volume. Share or export this to multiple ESXi hosts. Create Datastore from one of the ESXi host. When you rescan the storage from other ESXi hosts, the existing VMFS datastore is not listed. Solution: Log in to the ESXi host and list the volumes:  >>esxcfg-volume -l Mount the volume in the ESXi host: >>esxcfg-volume -m "DatastoreName"

Create a NFS datastore on an ESXI server using NFS share created on an Ubuntu Server

  The first step is to create an NFS server using an Ubuntu server 1. Install Ubuntu Server 2. Install NFS server package :        apt install nfs-kernel-server 3. Create an NFS Share Folder:      mkdir /nfsshareshare      chown -R nobody:nogroup /nfsshareshare      chmod 777 /nfsshareshare 4. Create exports config file      vi /etc/exports  and add below details:      /nfsshareshare *(rw,sync,no_root_squash,no_subtree_check,insecure) 5.Apply exports config using        exportfs -a  6. verify the share details using:        showmount -e 7. Now, from the vCenter server, create a Datastore and provide the share path and NFS server name:

ESXi command to put maintenance mode

  Use the below command to put an ESXi host into maintenance mode using the command line: ssh to esxi host using root credentials      A)   To enable:      [root@Esxi-1] esxcli system maintenanceMode set --enable true     B)  verify enabled status      [root@Esxi-1] esxcli system maintenanceMode get      Enabled     C) To disable      [root@Esxi-1] esxcli system maintenanceMode set --enable false

vCenter installation fails while connecting to esxi or vcsa "A problem occurred while logging in. Verify the connection details"

  Error while installing VCSA from Windows Server: Error: A problem occurred while logging in. Verify the connection details Solution: Disable the Windows servers proxy and retry.