Difference between revisions of "Virsh shutdown"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
  
  
virsh shutdown VM_NAME_1
+
virsh shutdown VM_NAME_1
error: Failed to shutdown domain VM_NAME_1
+
error: Failed to shutdown domain VM_NAME_1
error: Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainBlockJobAbort)
+
error: Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainBlockJobAbort)
Temporary solution:  
+
 +
Temporary solution:  
 
  Try to restart [[libvirtd]] daemon.
 
  Try to restart [[libvirtd]] daemon.
  
Line 29: Line 30:
 
* <code>[[virsh destroy]] VM_NAME</code> (Ungraceful [[shutdown]] but do not destroy data )
 
* <code>[[virsh destroy]] VM_NAME</code> (Ungraceful [[shutdown]] but do not destroy data )
 
* <code>[[virsh autostart]] MY_VM_NAME --disable</code>
 
* <code>[[virsh autostart]] MY_VM_NAME --disable</code>
 +
* <code>[[virsh start]] VM_NAME</code>
 +
* <code>[[multipass stop]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:57, 12 April 2021

virsh shutdown VM_MACHINE_NAME
Domain VM_MACHINE_NAME is being shutdown

Following message will appear on VM_MACHINE_NAME journal:

Nov 12 16:24:25 VM_MACHINE_NAME systemd-logind[1035]: Power key pressed.
Nov 12 16:24:25 VM_MACHINE_NAME systemd-logind[1035]: Powering Off...


shutdown The domain is in the process of shutting down, i.e. the guest operating system has been notified and should be in the process of stopping its operations gracefully
virsh list
 Id    Name                           State
----------------------------------------------------
 25     VM_NAME_2                      in shutdown


virsh shutdown VM_NAME_1
error: Failed to shutdown domain VM_NAME_1
error: Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainBlockJobAbort)

Temporary solution: 
Try to restart libvirtd daemon.


Related commands[edit]

See also[edit]

Advertising: