Category: Troubleshooting (page 2 of 2)

Useful link on performance troubleshooting

Useful link on performance troubleshooting

CPU Performance monitoring on ESX and VMs

How to enable remote connection (ssh) to ESX server

Edit the configuration file for SSH with the command:

vi /etc/ssh/sshd_config

Find the line that starts with PermitRootLogin and change the no to yes. You can find this line about 2 pages down from the top. Save the file by first pressing Ctrl-O and then Enter. Exit with Ctrl-X.
Restart the sshd service with the command:

service sshd restart

Note: Alternatively, use the command:

/etc/init.d/sshd restart

How to convert your dhcp ip address in to static address in your ESX host.

First off take notes of your current DHCP ip details, by passing the command below.

esxcfg-vswif -l

Then remove vswif0 by issuing the below command

esxcfg-vswif -d vswif0

Then type the below command by specifying correct ip details captured in the first step. Remember this is case sensitive ( i = Ip address, n = Subnet mask, b = broadcast )

esxcfg-vswif -a vswif0 -p Service\ Console -i -n -b

How to expand VMDK disk space using vmkfs tools command

First you would need clone take a backup of the current VMDK file. Here is the format on how you can take the backup of the VMDK file.

vmkfstools -i  <source-file>  <destination-file>

Source = /vmfs/volumes/4e1bd456-2f6f018c-dd56-000c2989b6dd/WinXP/WinXP.vmdk
Destination = /vmfs/volumes/4e1bd456-2f6f018c-dd56-000c2989b6dd/WinXP/WinXPnew.vmdk

vmkfstools -X 12G /vmfs/volumes/4e1bd456-2f6f018c-dd56-000c2989b6dd/WinXP/WinXP.vmdk

After extended the disk from VMware you would need to manually login to the operating system and perform the below task, to complete the disk expansion.

  • Start – run – type diskpart
  • type list volume
  • type select volume 1
  • type extend

For more inputs on disk expansion visit VMware KB 1007266

Newer posts


Theme by Anders NorenUp ↑