From 1bcbc8c67f9bb401c8f6069bd37619ca721b1eb3 Mon Sep 17 00:00:00 2001 From: lukas Date: Sat, 13 Nov 2021 12:08:24 +0000 Subject: [PATCH] docs: update virt/xml --- virt/xml.md | 239 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 236 insertions(+), 3 deletions(-) diff --git a/virt/xml.md b/virt/xml.md index e593739..d9affda 100644 --- a/virt/xml.md +++ b/virt/xml.md @@ -2,11 +2,244 @@ title: XML description: published: true -date: 2021-11-13T11:58:34.005Z +date: 2021-11-13T12:08:22.579Z tags: editor: markdown dateCreated: 2021-11-13T11:58:34.005Z --- -# Header -Your content here \ No newline at end of file + +# 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 + + + + + + + +
+ + + + +
+ + + + +
+ + + + + + + + + +
+ + + + +
+ + + + +
+ + + + + + + +
+ + + + + +
+ + + + + +
+ + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +