Olav Grønås Gjerde asked:
I accidentally wrote the wrong command, as the VM is still running it is not yet removed. Is it possible to undo this action?
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.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.