[libvirt-users] virsh dump

Hi I want to use “virsh dump ”to only get the memory of a domain,but I do not know the image format 。 Questions: How can I get the memory by using “virsh dump” Wen Lee

You can use a tool like xpath to query the xml data. xpath should be available in the repositories of your distro. Van: libvirt-users-bounces@redhat.com [mailto:libvirt-users-bounces@redhat.com] Namens Leekitty Verzonden: zondag 10 april 2016 10:08 Aan: libvirt-users@redhat.com Onderwerp: [libvirt-users] virsh dump Hi I want to use “virsh dump ”to only get the memory of a domain,but I do not know the image format 。 Questions: How can I get the memory by using “virsh dump” Wen Lee

On Sun, Apr 10, 2016 at 08:08:06 +0000, Leekitty wrote:
Hi I want to use “virsh dump ”to only get the memory of a domain,but I do not know the image format 。 Questions:
How can I get the memory by using “virsh dump”
virsh dump --memory-only produces an ELF image of guests memory without any qemu internal data. Without the --memory-only option the dump format is equivalent to the qemu migration stream format. I'd suggest reading the man page for `virsh dump`.
participants (3)
-
Dominique Ramaekers
-
Leekitty
-
Peter Krempa