what does "virsh destroy" really ?

Martin Kletzander mkletzan at redhat.com
Tue Oct 6 07:15:57 UTC 2020


On Mon, Oct 05, 2020 at 07:12:34PM -0400, Digimer wrote:
>On 2020-10-05 6:04 p.m., Lentes, Bernd wrote:
>> Hi,
>>
>> what does "virsh destroy" with the domain ? Send a kill -9 to the process ?
>>
>> Bernd
>>
>
>It forces the guest off, like pulling the power on a hardware machine.
>Not sure of the exact mechanism behind the scenes. It does leave the
>server defined and you can reboot it again later (albeit like restoring
>power to a normal machine, so it might need to replay journals, etc).
>

The technical details should not matter, but it tries to send "quit" to QEMU and
falls back to killing it IIRC (firsh with SIGTERM and then with SIGKILL).  Don't
do that if you want to use the machine again ;-)

>--
>Digimer
>Papers and Projects: https://alteeve.com/w/
>"I am, somehow, less interested in the weight and convolutions of
>Einstein’s brain than in the near certainty that people of equal talent
>have lived and died in cotton fields and sweatshops." - Stephen Jay Gould
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20201006/8234c303/attachment.sig>


More information about the libvirt-users mailing list