System Management

A guest named db01 is defined on host kvm1. Its disk image sits on shared storage at the same path on host kvm2. The administrator wants db01 defined on kvm2 so that the definition persists across libvirtd and host restarts. Which procedure achieves this?

Show the answer

Correct answerA. Run virsh dumpxml on kvm1, copy the XML file to kvm2, then run virsh define on kvm2

virsh dumpxml exports the domain definition, and virsh define on the new host stores it as a persistent domain. virsh create starts the guest as a transient domain, so its definition disappears once it stops.