I have a KVM virtual machine running Windows, and when I try to shutdown, it never stopped.
root@sok:~# virsh list Id Name State -------------------------- 1 iredmail running 3 win10 running root@sok:~# virsh shutdown win10 Domain win10 is being shutdown root@sok:~# virsh list Id Name State -------------------------- 1 iredmail running 3 win10 running root@sok:~#
To force shutdown a KVM virtual machine using virsh, you can use the command
virsh destroy VM_NAME
Example
root@sok:~# virsh destroy win10 Domain win10 destroyed root@sok:~# virsh list Id Name State -------------------------- 1 iredmail running root@sok:~# virsh start win10 Domain win10 started root@sok:~# virsh list Id Name State -------------------------- 1 iredmail running 4 win10 running root@sok:~#
Back to virsh
Leave a Reply