The libvirt version I'm using is 0.6.2.<div>The domains I'm using are fedora 11 netboot images. The images don't ever complete their netboot because they get stuck due to some error in detecting hardware. Because my experiments solely involve swapping machines, and I don't really actually care about running anything, this is fine for me.</div>


<div>I'm using qemu-kvm version 0.10.6.<br><br>I attached the log I received in <br></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 2:47 AM, Daniel Veillard <span dir="ltr"><<a href="mailto:veillard@redhat.com" target="_blank">veillard@redhat.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Sat, Nov 07, 2009 at 10:24:30AM -0500, David Wilcox wrote:<br>
> Hi,<br>
><br>
> I've encountered some concurrency issues when calling virsh in a script. If<br>
> I try to restore a VM too soon after it's been saved, libvirtd will stop<br>
> responding. As well, if I try to save a VM too soon after it's been<br>
> restored, libvirtd will stop responding.<br>
<br>
</div>  First what version are you using ? What kind of domains, what versions<br>
of the hypervisor etc ...<br>
<br>
Second assuming something recent, could you run /usr/sbin/libvirtd under<br>
gdb, then reproduce the problem and provide a stack trace ? See the end<br>
of<br>
  <a href="https://fedoraproject.org/wiki/How_to_debug_Libvirt_problems" target="_blank">https://fedoraproject.org/wiki/How_to_debug_Libvirt_problems</a><br>
<br>
  for detailed informations<br>
If libvirtd is not responding it's very probably crashed, and we need to<br>
fix the crash.<br>
<div><br>
> At the moment, I am not using any type of wait in my program for virsh to<br>
> come back. I merely let the system call run its course and I assume that<br>
> virsh will return when it's done waiting.<br>
><br>
> Is there any type of wait that needs to occur in order to avoid these<br>
> concurrency issues?<br>
<br>
</div>  The operation should be synchronous, so no wait should be needed<br>
  something is behaving.<br>
<br>
Daniel<br>
<font color="#888888"><br>
--<br>
Daniel Veillard      | libxml Gnome XML XSLT toolkit  <a href="http://xmlsoft.org/" target="_blank">http://xmlsoft.org/</a><br>
<a href="mailto:daniel@veillard.com" target="_blank">daniel@veillard.com</a>  | Rpmfind RPM search engine <a href="http://rpmfind.net/" target="_blank">http://rpmfind.net/</a><br>
<a href="http://veillard.com/" target="_blank">http://veillard.com/</a> | virtualization library  <a href="http://libvirt.org/" target="_blank">http://libvirt.org/</a><br>
</font></blockquote></div><br></div>