Difference between revisions of "Virsh destroy"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
{{lowercase}}
 
<code>[[virsh]] destroy</code> ungraceful [[shutdown]]/stop your virtual machine.  
 
<code>[[virsh]] destroy</code> ungraceful [[shutdown]]/stop your virtual machine.  
  
Line 39: Line 40:
 
* <code>[[virsh undefine]] VM_NAME</code>
 
* <code>[[virsh undefine]] VM_NAME</code>
 
* <code>[[virt-install]]</code>
 
* <code>[[virt-install]]</code>
 +
* [[virsh reset]]
  
 
== See also ==
 
== See also ==

Latest revision as of 06:35, 18 October 2021

virsh destroy ungraceful shutdown/stop your virtual machine.

virsh destroy YOUR_VMwill not destroy or delete your VM or data but you can corrupt guest file systems. --graceful 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 virsh undefine command.

virsh destroy VM_MACHINE_NAME
Domain infrastructure destroyed


Errors[edit]

  • Error while destroying VM_MACHINE:
virsh destroy VM_MACHINE_NAME
error: Failed to destroy domain VM_MACHINE_NAME
error: Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainBlockJobAbort)

virsh destroy VM_MACHINE_NAME-3
error: Disconnected from qemu:///system due to keepalive timeout
error: Failed to destroy domain VM_MACHINE_NAME-3
error: internal error: connection closed due to keepalive timeout


Logs[edit]


  • Logs: /var/log/libvirt/qemu
VM_MACHINE.log:2019-04-18 07:53:30.584+0000: shutting down, reason=shutdown
VM_MACHINE.log:2018-11-20 07:58:56.193+0000: shutting down, reason=crashed
VM_MACHINE.log:2018-11-20 08:00:38.835+0000: shutting down, reason=destroyed

Related terms[edit]

See also[edit]

Advertising: