Difference between revisions of "Virsh dumpxml"
Jump to navigation
Jump to search
↑ https://libvirt.org/sources/virshcmdref/html-single/#sect-dumpxml
↑ https://linux.die.net/man/1/virsh
↑ https://linux.die.net/man/1/virsh
↑ https://serverfault.com/questions/434064/correct-way-to-move-kvm-vm
↑ https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
:<code>virsh dumpxml MACHINE_NAME > /path/to/savefile.xml</code> | :<code>virsh dumpxml MACHINE_NAME > /path/to/savefile.xml</code> | ||
− | :<code>virsh dumpxml | + | :<code>virsh dumpxml --migrateable MACHINE_NAME > /path/to/savefile.xml</code> |
== Activities == | == Activities == | ||
Line 25: | Line 25: | ||
==See also== | ==See also== | ||
+ | * {{virsh information}} | ||
* {{virt}} | * {{virt}} | ||
− | *{{KVM}} | + | * {{KVM}} |
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:KVM]] | [[Category:KVM]] |
Latest revision as of 12:10, 31 March 2021
virsh dumpxml[1] {guest-id, VM_MACHINE_NAME or uuid}
[--inactive] [--security-info] [--update-cpu] [--migratable] [2]
--migratable
with --migratable one can request an XML that is suitable for migrations, i.e., compatible with older libvirt releases and possibly amended with internal run-time options. This option may automatically enable other options (--update-cpu, --security-info, ...) as necessary[3]
virsh dumpxml MACHINE_NAME > /path/to/savefile.xml
virsh dumpxml --migrateable MACHINE_NAME > /path/to/savefile.xml
Activities[edit]
- Offline Migrate or move a virtual machine between two KVM servers without shared storage[4]:
virsh dumpxml
andvirsh define
- Create Live backups with active virsh blockcommit[5]
- Dump config for all running machines:
for NAME in `virsh list --name`; do virsh dumpxml $NAME > $NAME.xml; done
Related commands[edit]
virsh define YOU_VM_NAME.xml
virsh dominfo
virsh domrename
virsh snapshot-create-as
virsh domblklist VM_NAME
virtinst
package
See also[edit]
- virsh Info:
virsh list
,virsh version
,virsh dominfo
,virsh pool-info
,virsh domstats
,virsh vol-info
,virsh net-info
,virsh dumpxml
libguestfs-tools
:virt-sysprep
,virt-clone
,virt-builder
,virt-customize
,virt-resize
,virt-rescue
,virt-sparsify
,guestmount
,guestfish
,virt-inspector
,virt-cat
,virt-log
,virt-df
,virt-ls
,virt-filesystems
,virt-list-filesystems
,virt-edit
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM
Advertising: