Routing the world

Routing & IT System Administration

Archive for the ‘VMWare’ Category

VMWare ESX Diagnosis

leave a comment »

If you want to get Diag Info from VMWare ESX and its storage:

esxcfg-info -s

This gives detailed information about this.


Written by Root

December 11, 2011 at 13:43

Posted in VMWare

Tagged with , ,

ESX Management Agent Restart Process

leave a comment »

Today one ESX 3.5 Server connected to a VSphere 4 Virtual Center has lost the connection to it.

The SSH access to the server was active and all the VMs on it was working too.

I tried to restart vmware-vpxa but the system remains unconnected although I tried several times manually reconnect.

Finally I found a KB Article in VMWare where explains how to restart the Management Agents involved in the Virtual Center Connections.

[root@server]# service mgmt-vmware restart

This command restarts the Management Agents and allows you to reconnect the ESX 3.5 Host to the VSphere Virtual Center.

The link to the knowledge base article is here:

I hope it will be helpful for you, leave a comment if it is the case. Thanks

Written by Root

October 5, 2011 at 09:02

Posted in VMWare

Tagged with , , , ,

VMWare ESX/ESXi iSCSI Management via console

leave a comment »

The VMWare iSCSI configuracion file on ESX and ESXi is:

The command to manage the iSCSI initiator services is esxcfg-swiscsi

So you can use it to make the administration tasks you need, for example;

Disable using the command:
esxcfg-swiscsi -d

Enable using the command:
esxcfg-swiscsi -e

Verify the initiator is running using the command:
esxcfg-swiscsi -q

Scan for new targets using the command:
esxcfg-swiscsi -s

Written by Root

February 22, 2011 at 12:00

Posted in Linux, VMWare

Tagged with , ,

VMWare ESX 3.5 Detect iSCSI reservation conflicts

leave a comment »

To obtain information about the reservation conflicts that may hang a iSCSI LUN:

esxcfg-info | egrep -B5 "s Reserved|Pending"

If you need to reset the LUN:

vmkfstools -L lunreset /vmfs/devices/disks/vmhbaXX\:YY\:Z\:N

Written by Root

February 4, 2011 at 13:23

Posted in VMWare

Tagged with ,

VMWare VCenter 4.1 64Bit crash with no logs

leave a comment »

I have installed VC4.1 64Bit and after a couple days of use the service crash when you open a VM Settings or creating a new VM.

In the windows machine there is no log information that helps to know the problem.

After some research, and 3 failed new installations, I could see some information in the VPX Log about a service kernel panic.

In the VMWare Communities says the service sometimes fails with no information when there is multiple access to one VM vmdk files. (What happends with Multipath?)

The solution:

  1. Go to C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter
  2. Edit vpxd.cfg
  3. add to the end of the file just before the </config> the next sentence:

<vmomi> <panicOnLinkErrors>false</panicOnLinkErrors>  </vmomi>

After configure, restart de VCenter Server and the problems will stop.


Written by Root

February 4, 2011 at 10:48

Posted in VMWare

Tagged with

VMWare ESX/ESXi view snapshot in all datastores of all VMs

leave a comment »

This command is usefull if you want to see all the snapshots you have in all the datastores at where the Host is connected:

find /vmfs/volumes -name *-0000[0-9][0-9]*.vmdk

This is usefull to see its size and locate “lost ones”.

Written by Root

August 11, 2010 at 13:04

Posted in VMWare

Tagged with , ,

Ubuntu Server remove MAC bind after VMWare Clone o Copy

with one comment

If you have a VMWare with Ubuntu and you clone or copy the VM, the network fails to work on the new VM.

The reason is that MAC address continues linked to the ethX interface and it has changed.

To reset the MAC address bind, you have to edit the file /etc/udev/rules.d/70-persistent-net.rules and comment the lines about ethX configuration with “#”.

Reboot and network will become alive.

Written by Root

June 1, 2010 at 11:34

Posted in Linux, VMWare

Tagged with , ,

%d bloggers like this: