--- title: XML commented description: An XML file describing a virtual machine published: true date: 2021-08-12T10:02:24.355Z tags: editor: markdown dateCreated: 2021-08-12T09:43:20.587Z --- # Libvirt-based XML file commented ## Dumping 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 virtual machine. {.is-info} Any XML configuration associated to the a specific virtual machine can be dumped to a file using the following command : ``` $ virsh dumpxml {VM_NAME} > {VM_NAME}.xml ``` ### Example * List current virtual machines ``` $ virsh list --all Id Name State ------------------------------------------- - phyllome shut off ``` * Dump the XML description of the phyllome machine to a file ``` $ virsh dumpxml phyllome > phyllome.xml ``` ## XML commented This is the description of an XML file associated to a virtio-based virtual machine. Only relevant features to Phyllome are commented. ``` phyllome 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