[libvirt-users] quickest way to stop VM

Eric Blake eblake at redhat.com
Mon Aug 13 22:21:00 UTC 2012


On 08/13/2012 04:05 PM, Harish Patil wrote:
> Hello
> Which is the quickest way to stop KVM guest VM. I am not interested in
> saving anything; I just have to make sure that VM apps are ended quickly.
> i) virsh shutdown

Depends on the guest honoring your request, which means it might not
succeed at all.

> ii) virsh suspend

Doesn't actually stop the guest, just pauses it, so the KVM process is
still around.

> iii) virsh destroy

Bingo.  Kills the qemu process, and thus instantly frees the KVM
resources.  Use with care if you plan to restart things later (it is the
same as yanking a power cord), but for a one-shot usage, this is what
you want.

> 
>>From little descriptions I have, looks like destroy is the fastest way and
> acts like a removal of a power plug.
> Pls let me know.

You got it.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120813/98832711/attachment.sig>


More information about the libvirt-users mailing list