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(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org