virsh edit / dumpxml
CautionEdit KVM domain XML
virsh edit <domain>
Edits domain XML with validation; dumpxml exports it. Use edit, not raw files, to keep libvirt consistent.
Examples
virsh dumpxml web01 > web01.xmlBack up the definition
Syntax
virsh edit <dom>(検証付き編集) / virsh dumpxml <dom> > vm.xml
Before you run it
Bad XML bricks the domain — keep a copy.
Related commands
- virsh listList KVM domains
- virsh snapshotKVM snapshots
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store