JAEN

Virtualization

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

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store