Skip to main content

Posts

Enable root permission and sudo for debain

 Error When you try sudo for root permision 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
Recent posts

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 not listing. Solution: Login 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

  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 a 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 vCenter server create Datastore and provide share path and NFS server name:

ESXi command to put maintenance mode

  Use below command to put an esxi host to maintenance mode: [root@Esxi-1] esxcli system maintenanceMode set --enable true verify its snabled [root@Esxi-1] esxcli system maintenanceMode get Enabled 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 installaing VCSA from windows server:  Error:A problem occurred while logging in. Verify the connection details Solution: Disable windows proxy and re-try.

How to convert VMware vmdk VM to KVM qcow2

 Below steps will allow to convert VMware VMs to KVM VMs: Install qemu-img:           apt-get install qemu-img To Convert VMware vmdk to qcow2                qemu-img convert -f vmdk <Source VM .vmdk file path>  -O qcow2 <Target test.qcow2> To convert qcow2 to .vmdk           qemu-img convert -O vmdk < source test.qcow2> <Target test.vmdk>