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 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.