virsh undefine delete guest configuration file in kvm

Sometimes you may execute “virsh undefine” command .. but if you really didnt meant to delete the guest configuration from disk, please make sure you have a backup of the guest configuraiton file in a location which is NOT default for libvirt ie /etc/libvirt/qemu. Otherwise you may wonder where it went after virsh undefine command.

libvirt code path does do a “unlink” operation on the guest configuration file when you execute virsh undefine” command.

This is the snip from my system::