I accidentally wrote the wrong command, as the VM is still running it is not yet removed. Is it possible to undo this action?
Asked
Active
Viewed 553 times
1 Answers
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