How to extract ELF cores from 'gcore' generated qemu core files for use with the 'crash' utility

Solution In Progress - Updated -

Issue

  • Core dumps of running programs can be obtained for qemu-kvm guest processes as follows:
# ps -ef | grep <VM name>  # To obtain a virtual guest's PID.
# gcore <PID>
  • What steps are required in order to extract ELF cores from resultant gcore output files for use with the crash utility?

  • As of RHEL 7.4 with libvirt-3.2.0, the default setting for dump-guest-core is off.

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • qemu-kvm-[rhev] on RHEL 7 KVM based hosts.
  • gcore on RHEL 7 KVM based hosts.

Note: In the RHEL 7.4 time-frame, with an upgrade to libvirt-3.2.0, the default setting for dump-guest-core has been changed from on to off. This means that when a process core file is generated by/from qemu-kvm-[rhev], it will not include any guest memory pages.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In