1

I accidentally wrote the wrong command, as the VM is still running it is not yet removed. Is it possible to undo this action?

1 Answers1

2

If the VM is still running you should be able to use virsh dumpxml to recover the running configuration.

virsh dumpxml <vm_name> > vm_name.xml && \
virsh define vm_name.xml

Otherwise you should restore from your backup.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972