<div class="zcontentRow"> <p><span style="font-size: 12px;">Hi Peter,</span></p><p><span style="font-size: 12px;">Thanks for your reply.</span></p><p><span style="font-size: 12px;">>On Sat, Jul 22, 2017 at 04:55:49 -0400, Yi Wang wrote:</span></p><p><span style="font-size: 12px;">>> Start a domain whilst undefine it, if starting failed duing ProcessLaunch,</span></p><p><span style="font-size: 12px;">>> on which period qemu exited unexpectedly, the operation will lead to failure</span></p><p><span style="font-size: 12px;">>> of undefine the domain until libvirtd restarted. The reason is that libvirtd</span></p><p><span style="font-size: 12px;">>> will unlock vm during qemuProcessStart, qemuDomainUndefineFlags can get the</span></p><p><span style="font-size: 12px;">>> lock and set vm->persistent 0 but not remove the "active" domain.</span></p><p><span style="font-size: 12px;">></span></p><p><span style="font-size: 12px;">>Shouldn't the startup code handle that? It definitely works when</span></p><p><span style="font-size: 12px;">>starting a transient domain, so making it transient while the startup</span></p><p><span style="font-size: 12px;">>code is executed should be the same case.</span></p><p><span style="font-size: 12px;">></span></p><p><span style="font-size: 12px;">>Since we copy the definition prior to startup, there really should not</span></p><p><span style="font-size: 12px;">>be any problem in making the VM transient while it's being started.</span></p><p><br></p><p><span style="font-size: 12px;">Yeah, it is allowed to make VM transient during being started, but the problem</span></p><p><span style="font-size: 12px;">is that if the situation I described above occurs, we can't undefine that VM until</span></p><p><span style="font-size: 12px;">libvirtd restarted.</span></p><p><span style="font-size: 12px;">More details have been introduced in another thread [1], please review that piece :)</span></p><p><span style="font-size: 12px;">As discussed with John in that thread, I suppose a whole new patch instead of a</span></p><p><span style="font-size: 12px;">V2 version is better.</span></p><p><span style="font-size: 12px;">Thanks again :)</span></p><p><br></p><p><br></p><p><span style="font-size: 12px;">[1] https://www.redhat.com/archives/libvir-list/2017-July/msg00762.html</span></p><p><br></p><p><br></p><div class="zMailSign"><div><div><p><span style="font-size: 12px;">---</span></p><p><span style="font-size: 12px;">Best wishes</span></p><p><span style="font-size: 12px;">Yi Wang</span></p></div></div></div><p><br></p></div>