[libvirt-users] SIGTERM signal to qemu-kvm process

Hi I am using QEMU 0.12.1 as the hypervisor in my RHEL installation of 6.5. I wanted to know if there are any side-effects with respect to VM image corruption when i use SIGTERM signal to kill a qemu-kvm process which effectively stops my VM running on the host. Appreciate if you can provide me some valuable information in this regard. Thanks Jatin

Hi Jatin, Your guest will have a dirty shutdown… Probably not the best way to shutdown a guest… For the host and other guests, no worries. Greetings, Dominique. Van: Jatin Davey [mailto:jashokda@cisco.com] Verzonden: woensdag 8 april 2015 10:25 Aan: libvirt-users@redhat.com Onderwerp: [libvirt-users] SIGTERM signal to qemu-kvm process Hi I am using QEMU 0.12.1 as the hypervisor in my RHEL installation of 6.5. I wanted to know if there are any side-effects with respect to VM image corruption when i use SIGTERM signal to kill a qemu-kvm process which effectively stops my VM running on the host. Appreciate if you can provide me some valuable information in this regard. Thanks Jatin

Thank you for the response Dominique. Thanks Jatin On 4/8/2015 2:04 PM, Dominique Ramaekers wrote:
Hi Jatin,
Your guest will have a dirty shutdown… Probably not the best way to shutdown a guest… For the host and other guests, no worries.
Greetings,
Dominique.
*Van:*Jatin Davey [mailto:jashokda@cisco.com] *Verzonden:* woensdag 8 april 2015 10:25 *Aan:* libvirt-users@redhat.com *Onderwerp:* [libvirt-users] SIGTERM signal to qemu-kvm process
Hi
I am using QEMU 0.12.1 as the hypervisor in my RHEL installation of 6.5.
I wanted to know if there are any side-effects with respect to VM image corruption when i use SIGTERM signal to kill a qemu-kvm process which effectively stops my VM running on the host.
Appreciate if you can provide me some valuable information in this regard.
Thanks Jatin

On 08.04.2015 10:24, Jatin Davey wrote:
Hi
I am using QEMU 0.12.1 as the hypervisor in my RHEL installation of 6.5.
I wanted to know if there are any side-effects with respect to VM image corruption when i use SIGTERM signal to kill a qemu-kvm process which effectively stops my VM running on the host.
It's equivalent to plugging the power cord from a computer. If you're using journaled FS, disks should be in consistent state, however you still may experience data loss. Moreover, I'd advice you to use virDomainDestroy() API (or 'virsh destroy'). Michal

On 4/9/2015 1:54 PM, Michal Privoznik wrote:
On 08.04.2015 10:24, Jatin Davey wrote:
Hi
I am using QEMU 0.12.1 as the hypervisor in my RHEL installation of 6.5.
I wanted to know if there are any side-effects with respect to VM image corruption when i use SIGTERM signal to kill a qemu-kvm process which effectively stops my VM running on the host. It's equivalent to plugging the power cord from a computer. If you're using journaled FS, disks should be in consistent state, however you still may experience data loss. Moreover, I'd advice you to use virDomainDestroy() API (or 'virsh destroy').
Michal
Thank you for the response Michal. Thanks Jatin
participants (3)
-
Dominique Ramaekers
-
Jatin Davey
-
Michal Privoznik