--- title: XML description: published: true date: 2021-11-13T12:08:22.579Z tags: editor: markdown dateCreated: 2021-11-13T11:58:34.005Z --- # Anatomy of a XML file ## Dump XML description > **Requirements**: To dump the XML configuration of an existing virtual machine to a file, make sure your current user is part of the *libvirt* group and has access to the said virtual machine. {.is-info} * List virtual machines ``` virsh list --all ``` ``` Id Name State ------------------------------------------- - phyllomeos shut off ``` Any XML configuration associated to a specific virtual machine can be dumped to a file using the following command: * Dump the XML description of phyllomeos to a file ``` $ virsh dumpxml phyllomeos > phyllomeos.xml ``` ## Description This is the description of an XML file associated to a virtio-based virtual machine. Only relevant features to Phyllome OS are commented. ``` phyllomeos 12345678-1234-1234-1234-12345678912 4145152 4145152 2 hvm /usr/share/edk2/ovmf/OVMF_CODE.fd /var/lib/libvirt/qemu/nvram/phyllome.fd destroy restart destroy /usr/bin/qemu-system-x86_64