Permanently disable ESXi coredump file
search cancel

Permanently disable ESXi coredump file

book

Article ID: 340049

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vSphere ESXi 7.0 VMware vSphere ESXi 8.0 VMware vSphere ESXi 6.0

Issue/Introduction

This article provides steps to configure a network coredump collector and permanently disable coredump file.

Symptoms:
This procedure is useful for any of these symptoms:
  • No supported storage is available to ESXi for core dump location (software iSCSI and software FCoE are not supported).
  • A datastore fills up due to the automatic creation of core dump file. This happens when no suitable dump file or dump partition exists.
  • Even after deletion of the core dump file, once the ESXi is rebooted, the file is recreated.


Environment

VMware vSphere ESXi 8.0
VMware vSphere ESXi 7.0
VMware vSphere ESXi 6.7
VMware vSphere ESXi 6.5
VMware vSphere ESXi 6.0

Cause

The new core dump file feature introduced in VMware vSphere ESXi 5.5 automatically creates a file to extend the core dump partition when no suitable dump file or dump partition exists. This core dump is created on a random VMFS datastore using a smart selection algorithm.

Resolution

1. Configure ESXi host to use a network coredump collector by running these commands:
 
# esxcli system coredump network set --interface-name vmkX --server-ipv4 X.X.X.X --server-port 6500
# esxcli system coredump network set --enable true

2. Disable and delete the currently configured coredump file:
 
# esxcli system coredump file set --enable false
# esxcli system coredump file remove --force

3. Disable autoCreateDumpFile:
 
# esxcli system settings kernel set -s autoCreateDumpFile -v FALSE

You can check the setting with the following command:
 
# esxcli system settings kernel list -o autoCreateDumpFile

4. Reboot the ESXi host.


Additional Information

Configure ESXi Dump Collector with ESXCLI
Set Up a File as Core Dump Location

Impact/Risks:
A core dump is the state of working memory in the event of host failure. It is needed in the investigation of an issue. If the core dump file is disabled, a network coredump collector should be configured.