Technical article 128004

Using virt-manager to shutdown my KVM virtual machine does not work.

OpenServer Definitive 2018UnixWare 7 Definitive 2018OpenServer 6UnixWare 7

Written · Last revised

Problem

When I try to shutdown or restart my KVM Virtual Machine,
the operation is ignored and my VM keeps running.  This is
true for both virt-manager and virsh.
virsh shutdown definitive-vm
Domain definitive-vm is being shutdown

However the VM remains in a 'running' state.

virsh list
Id    Name                           State
----------------------------------------------------
3     definitive-vm                  running

Cause

UW7D and OSR6D does not have the libvirt-client equivalent utilities that enable interaction between the VM and virt-manager (KVM/QEMU).

Solution

To cleanly shutdown or restart your Virtual Machine, login
to the Virtual Machine as root and issue the appropriate
shutdown command, for example:
To restart:
cd /
/sbin/shutdown -y -g0 -i6
To shutdown:
cd /
/sbin/shutdown -y -g0

If you are unable to login to the virtual machine, then your only option is to force a power-off of the VM from virt-manager or virsh.

Log onto your Linux system use the KVM virt-manager and choose "Force Off", alternatively, you can use virsh to power off the VM:

virsh destroy <VM-domain>
-or-
virsh destroy definitve-vm
Domain definitive-vm destroyed
NOTES:    Powering off the VM, without first shutting it down, can
          cause filesystem corruption as the system can not stop and
          close services normally.  This is similar to using a
          power-button on a running system.

From the Xinuos technical article database, record 128004. Reproduced with permission. The original is at www.sco.com/ta/128004, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.