Search

14.5.22. Creating a Dump File of a Domain's Core

download PDF
Sometimes it is necessary (especially in the cases of troubleshooting), to create a dump file containing the core of the domain so that it can be analyzed. In this case, running virsh dump domain corefilepath --bypass-cache --live |--crash |--reset --verbose --memory-only dumps the domain core to a file specified by the corefilepath Note that some hypervisors may gave restrictions on this action and may require the user to manually ensure proper permissions on the file and path specified in the corefilepath parameter. This command is supported with SR-IOV devices as well as other passthrough devices. The following options are supported and have the following effect:
  • --bypass-cache the file saved will not contain the file system cache. Note that selecting this option may slow down dump operation.
  • --live will save the file as the domain continues to run and will not pause or stop the domain.
  • --crash puts the domain in a crashed status rather than leaving it in a paused state while the dump file is saved.
  • --reset once the dump file is successfully saved, the domain will reset.
  • --verbose displays the progress of the dump process
  • --memory-only the only information that will be saved in the dump file will be the domain's memory and CPU common register file.
Note that the entire process can be monitored using the domjobinfo command and can be canceled using the domjobabort command.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.