Dump guest configuration file

virsh

  • Manage virsh guest domains. (NOTE: 'guest_id' can be the id, name or UUID of the guest).
    Some subcommands such as `virsh list` have their own usage documentation.
    More information: <https://libvirt.org/virshcmdref.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

virsh dumpxml {{guest_id}} > {{path/to/guest.xml}}

click the source code to copy install virsh on any operating system with command-not-found.com