Fix – No coredump target has been configured

Once I built my ESXi 5.5 hosts in my test lab and added them to my vCenter environment, they both had a yellow warning prompt stating: “No coredump target has been configured. Host core dumps cannot be saved”

The good news is I was able to fix this, so I thought to document the solution in case anyone else has the same issue. All the details are below…

Situation

In my situation, I was both my hosts have ESXi 5.5 installed on a USB flash drive (each 32GB in size), which may have been the cause of the issue. In any case even though they were install on a USB drive, I was able to solve the problem.

Just so we are all on the same page, the warning message I was seeing on the host was:

No coredump target has been configured

Solution

To resolve the “No coredump target has been configured” error, complete the following steps:

  1. SSH into the ESXi Host

  2. Check the current active diagnostic partition, by running:

    
    esxcli system coredump partition get
    

  3. The result should look something similar to the following:

    
    Active:
    Configured:
    

  4. List all of the partitions available, by running:

    
    esxcli system coredump partition list
    

    Note: If there are no partitions available, then reboot the ESXi host. This seemed to work for me.

  5. Next we need to set and activate one of the partitions. To do this, run the following:

    
    esxcli system coredump partition set --partition="Partition_Name";
    esxcli system coredump partition set --enable true
    

  6. Alternatively, you can get ESXi to automatically set and activate a partition for you, by running:

    
    esxcli system coredump partition set --enable true --smart
    

  7. Now validate that you have successfully activated and configured a coredump partition:

    
    esxcli system coredump partition list
    

  8. You can also confirm this by checking the current active diagnostic partition:

    
    esxcli system coredump partition get
    

  9. You should now see something similar to the following:

    
    Active: mpx.vmhba2:C0:T0:L0:7
    Configured: mpx.vmhba2:C0:T0:L0:7
    

Error: No coredump target has been configured

The solution above was successful for one of my ESXi hosts, however on the second host when I ran step 2 to find the active diagnostic partition, one was already configured… yet I was still getting the No coredump target has been configured error.

To resolve this, I had to remove the active partition, then reboot the host and then re-configure a new partition to be the coredump diagnostic partition. To remove a diagnostic partition, run the following:


esxcli system coredump partition set --unconfigure

Once I removed the partition and rebooted the host I was able to re-configure the active diagnostic partition and the coredump warning was cleared.

More Info

If you would like to look into this further then VMware have created a KB >> Configuring a diagnostic coredump partition on an ESXi 5.x host (KB2004299).

Any questions let me know if the comments below.

Thanks
Luca

Comments

    1. Hi Prakash,

      The smart option is enabled by default and usually ESXi will automatically set and configure a coredump partition if it can find an available partition to do so. In the event that it can’t, you get this error message and hence running through these steps to make a partition available so that ESXi can select a coredump partition.

      Hope this makes it clearer.

      Thanks
      Luca

  1. Turns out there is an easier way, without reboots – have just tried this using the commands from this page.

    Issue “esxcli system coredump partition set –unconfigure”, then “esxcli system coredump partition set –enable true –smart” and the error clears immediately.

    Hope that helps someone and thank you to the author for the commands.

    Denis

    1. Thanks!!!

      esxcli system coredump partition set –-unconfigure
      esxcli system coredump partition set –-enable true –-smart

  2. To view current settings:
    esxcli system coredump partition

    Mostly the following command is sufficient to correct the current setting:
    esxcli system coredump partition set –partition=”Partition_Name”;
    esxcli system coredump partition set –enable true

  3. Thanks for the tip!
    Denis,
    Your commands worked for me but I need double dashes.

    esxcli system coredump partition set –unconfigure
    esxcli system coredump partition set –enable true –smart

    Bill

    1. …sorry entire command string

      esxcli system coredump partition set -u
      esxcli system coredump partition set –e true –s

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.