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.