Editing Virsh destroy
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
<code>[[virsh]] destroy</code> ungraceful [[shutdown]]/stop your virtual machine. | <code>[[virsh]] destroy</code> ungraceful [[shutdown]]/stop your virtual machine. | ||
<code>virsh destroy YOUR_VM</code>will not [[destroy]] or delete your VM or data but you can corrupt guest file systems. <code>[[--graceful]]</code> flag attempts to flush the [[cache]] for the disk image file before powering off the virtual machine. To delete your virtual machine you will have to use <code>[[virsh undefine]]</code> command. | <code>virsh destroy YOUR_VM</code>will not [[destroy]] or delete your VM or data but you can corrupt guest file systems. <code>[[--graceful]]</code> flag attempts to flush the [[cache]] for the disk image file before powering off the virtual machine. To delete your virtual machine you will have to use <code>[[virsh undefine]]</code> command. | ||
− | + | virsh destroy [[--graceful]] VM_MACHINE_NAME | |
virsh destroy VM_MACHINE_NAME | virsh destroy VM_MACHINE_NAME | ||
Domain infrastructure destroyed | Domain infrastructure destroyed | ||
− | |||
− | |||
* Error while destroying VM_MACHINE: | * Error while destroying VM_MACHINE: | ||
Line 24: | Line 21: | ||
− | + | ||
* Review your log files: <code>/var/log/libvirt/qemu/</code>, <code>[[virsh domblklist]]</code> output and try to restart [[libvirtd]]: <code>systemctl restart [[libvirtd]]</code> | * Review your log files: <code>/var/log/libvirt/qemu/</code>, <code>[[virsh domblklist]]</code> output and try to restart [[libvirtd]]: <code>systemctl restart [[libvirtd]]</code> | ||
Line 40: | Line 37: | ||
* <code>[[virsh undefine]] VM_NAME</code> | * <code>[[virsh undefine]] VM_NAME</code> | ||
* <code>[[virt-install]]</code> | * <code>[[virt-install]]</code> | ||
− | |||
== See also == | == See also == |
Advertising: