There are many ways to find this but quick and widely used method will be using top or ps command. Find the top memory consuming process using top command top -o +%MEM | head -n 20 Similarly, if we have to find top CPU consuming process, command will be top -o +%CPU | head -nContinue reading “How to find top memory or CPU consuming process in linux”
Category Archives: Uncategorized
How to find which vmnic is VM connected to in ESXi
Sometimes there is a need to find which physical NIC is VM connected to in ESXi server. Below i am listing two quick methods to find these. There may be other ways also. First method using esxtop. SSH into Esxi server. Then type “esxtop”. Then press ‘n’ to get networking view. In the third columnContinue reading “How to find which vmnic is VM connected to in ESXi”
vmfsfilelockinfo – tool to check which host is holding locks on vm files.
vmfsfilelockinfo is inbuilt tool on ESX server to check which host is holding the lock on VM files. To prevent concurrent changes to virtual machine files, ESXi host establish locks on virtual machine files. Once we vmotion virtual machine from ESX host A to ESX host B, then that host B holds the lock ofContinue reading “vmfsfilelockinfo – tool to check which host is holding locks on vm files.”
How to calculate VM growth rate using vRealize
Often times we need to calculate VM growth rate over a period of time.There are many ways to do this and couple ways to do it in vrealize itself. Below are the steps. Open up vRealize operations manager. First we will start by creating a new view. Go to Dashboard – > View -> CreateContinue reading “How to calculate VM growth rate using vRealize”
How Mac address leaning works in physical switch v/s VMware vSwitch
Physical Switch: When a switch is first powered on, the MAC address table is empty. The switch will build MAC address table and only learn from source mac address. Lets say there is switch with 3 servers connected to it. All the servers will have real mac address but for sake of explanation lets assumeContinue reading “How Mac address leaning works in physical switch v/s VMware vSwitch”
How to replace SSL certificate on Horizon Connection server
Below process only outline how to replace/change certificate on Horizon View Connection Server. For process of generating request for certificate, we can refer to this KB article. https://kb.vmware.com/s/article/2068666 RDP into connection server. Open up mmc.exe Click on File->Add/Remove Snap-in. Select Certificate->Add. In the pop up window, select Computer Account. In the next screen, keep selectingContinue reading “How to replace SSL certificate on Horizon Connection server”
Why we started using Virtual volumes ?
With traditional virtual machines, a datastore is either a LUN (VMFS) or a volume (NFS). VMDK is sitting on top of other file system ( VMFS or NFS ). VVOLs can be considered as individual LUNs and VMDK are not sitting on any file system. Only file system is of guest operating system. There areContinue reading “Why we started using Virtual volumes ?”
Basics of VM cpu cycle
A VM CPU is on one of these 4 states: Run, Ready, Co-Stop and Wait. Run – Run means VM is consuming CPU cycle. In other words, VMkernel has enough physical CPU cycle to give it to VM. We can see this counter from esxtop , under %run and also from vCenter GUI. Ready– ReadyContinue reading “Basics of VM cpu cycle”
Will HA and DRS work if vCenter goes down ?
DRS ( Distributed Resource Scheduler) does initial placement and balance VMs in a cluster based on the load. This feature is enabled at the cluster level. DRS runs its algorithm once every 5 minutes ( by default) to study imbalance in the cluster . In each round, if it needs to balance the load, DRSContinue reading “Will HA and DRS work if vCenter goes down ?”
Powershell script
Long time back, had to delete tmp files recursively in folders and subfolders as it was taking lot of space. This simple one liner powershell script will do the job. As always, good to run in the test environment before running in production box. There should be many other ways to do same task. get-childitemContinue reading “Powershell script”