The VMware ESXi Dump Collector is packaged with vCenter Server. The configurable options include:
- Directory for storing received coredumps
- Amount of disk space used for storing received coredumps
- Listening network UDP port number
VMware ESXi Dump Collector in the vCenter Server Virtual Appliance
The vCenter Server Virtual Appliance has a pre-configured Netdump service available and running. The directory used for storing received core dumps, the amount of disk space used, and the listening port number are all set to defaults, but can be changed later.
Enabling VMware vSphere ESXi Dump Collector using the VMware vCenter Server Virtual Appliance Web interface
- Open a web browser, and connect to https://vCenterServerVirtualApplianceHostnameOrIP:5480/.
- Log in using root account.
- Click the Services tab.
- Click the VMware vSphere ESXi Dump Collector service and click on start .
- Edit the startup type of VMware vSphere ESXi Dump Collector service to automatic if needed.
Configuring the ESXi Dump Collector using the VMware vCenter Server Virtual Appliance command line
- Open the console of the vCenter Server Virtual Appliance.
- Log in using an administrative account.
- Open the /etc/sysconfig/netdumper configuration file using a text editor. The default configuration appears similar to:
NETDUMPER_DIR="/var/core/netdumps"
NETDUMPER_DIR_MAX_GB=2
NETDUMPER_PORT=6500
- Change the directory used for storing received coredumps.
- Change the listening UDP port number to the desired value.
- Change the maximum amount of disk space used for storing received coredumps to a different value, as required. The value is specified in gigabytes.
- To enable verbose logging, modify the NETDUMPER_OPTIONS line to:
NETDUMPER_OPTIONS="-n -v -d ${NETDUMPER_DIR} -o ${NETDUMPER_PORT}"
- Save the /etc/sysconfig/netdumper configuration file.
- Restart the VMware ESXi Dump Collector service using the command:
service-control --restart vmware-netdumper
- The VMware ESXi Dump Collector service startup type can be changed to automatic depending on the use case as the default startup type is manual.
/usr/lib/vmware-vmon/vmon-cli -U netdumper -S AUTOMATIC
Configure ESXi Dump Collector with ESXCLI
- Set up an ESXi system to use ESXi Dump Collector by running esxcli system coredump in the local ESXi shell.
esxcli system coredump network set --interface-name vmk0 --server-ipv4 xxx.xxx.xxx.xxx --server-port 6500
Note: You must specify a VMkernel NIC and the IP address of the vCenter Server and optional port of the server to which to send the core dumps.
- Enable ESXi Dump Collector:
esxcli system coredump network set --enable true
- Check that ESXi Dump Collector is configured correctly:
esxcli system coredump network get
Note : Ensure that the specified VMkernel interface (vmk0 in this case) has network connectivity to the destination server (e.g., vCenter or the core dump collector) where the core dumps are intended to be stored.
To test network connectivity Use vmkping to test connectivity from a specific VMkernel interface :
vmkping -I vmk0 <destination-IP>
Where destination IP is IP of destination server (e.g., vCenter or the core dump collector)