I'm trying to find the corresponding command to the buttons in virt-manager,
I read about virsh help domain and I found start, shutdown and reset etc. But the one for Force Off is missing.
Anyone know what that is?
I'm trying to find the corresponding command to the buttons in virt-manager,
I read about virsh help domain and I found start, shutdown and reset etc. But the one for Force Off is missing.
Anyone know what that is?
virsh destroy, from man virsh
Immediately terminate the domain domain.
This doesn't give the domain OS any chance to react,
and it's the equivalent of ripping the power cord out on a physical machine.
virsh reset domain is what you need,
$ man virsh|grep "reset domain" -A5 -B4
reset
Syntax:
reset domain
Reset a domain immediately without any guest shutdown. reset emulates the power reset button on a machine, where all guest hardware sees the RST line set and reinitializes inter‐nal state.
Note: Reset without any guest OS shutdown risks data loss.