Re: [virt-manager PATCH] domain: treat VIR_DOMAIN_CRASHED not as runnable but rather as stoppable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 2017-05-01 20:58:47, "Eric Blake" <eblake@xxxxxxxxxx> wrote:

>On 04/30/2017 04:33 PM, Cole Robinson wrote:
>
>>>
>> 
>> Is there an easy way to move a qemu VM into the crashed state? So I can test
>> 
>> IIRC this logic was based on how old xen behaved, crashed was really a shutoff
>> type of state, but my recollection is fuzzy.
>
>I think you can use the pvpanic device to achieve that, although I
>haven't attempted it myself any time recently.
>

Yes, pvpanic device could help:


1) add a pvpanic device
2) change <on_crash> from restart to:
    <on_crash>preserve</on_crash>
3) use  sysrq-trigger to crash the guest.

Regards,
- Chen

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux