qemu no-shutdown behavior in libvirt

Luna Xu Yamada xuluna at ibm.com
Mon Nov 30 19:02:11 UTC 2020


Hi Peter,

Sorry for the HTML format. I’m now sending from a different client not sure
it solves the problem... Thanks for replying and confirming the feature is
not there. I’ll be happy to help or contribute in anyway.

Sent from my iPad

> On Nov 30, 2020, at 1:15 PM, Peter Krempa <pkrempa at redhat.com> wrote:
>
> On Mon, Nov 30, 2020 at 15:49:06 +0000, Luna Xu Yamada wrote:
>
> Firstly, please don't use HTML-only mails on this mailing list.
>
>> <div class="socmaildefaultfont" dir="ltr" style="font-family:Arial,
Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Hi libvirt
maintainers,</div>
>> <div dir="ltr" > </div>
>> <div dir="ltr" >Thank you for maintaining such a great tool. I'm new to
this area and I have a question when using libvirt with qemu. </div>
>> <div dir="ltr" > </div>
>> <div dir="ltr" >When I start a VM with qemu process I can specify
-no-shutdown flag so that my qemu process is not shutdown even if I
shutdown the VM from the inside (issue shutdown or halt command inside VM).
The reason I want to do this is I can continue my jobs for example backup
(drive-backup) after VM gets shutdown by the user, and I'm able to check
the status of the job through qmp commands. I'm moving to libvirt from qemu
to manage my VM, and I'm struggling with how to do the same thing through
virsh. I'm able to pass the -no-shutdown flag into qemu but it behaves
differently in virsh when I shutdown the VM. Much appreciated if someone
could give me a hint.</div>
>
> What you want to achieve would be the equivalent if the
> <on_poweroff>pause</on_poweroff> option existed. Unfortunately it does
> not exist, and thus it's not possible to achieve what you want.
>
> You are welcome to implement the feature and/or submit an issue in the
> issue tracker with a justification of how it would be useful. Note that
> submitting the issue doesn't necessarily guarantee that anybody will
> pick up the work though.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20201130/885a37ff/attachment.htm>


More information about the libvirt-users mailing list