<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 23, 2017 at 10:57 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Nov 21, 2017 at 11:43:54PM +0200, Yaniv Kaul wrote:<br>
> Since I upgrading to FC27, I *sometimes* fail to virt-sysprep.<br>
> The debug messages:<br>
> libguestfs: trace: set_verbose true<br>
> libguestfs: trace: set_verbose = 0<br>
> libguestfs: create: flags = 0, handle = 0x7f4600005dd0, program = python2<br>
> libguestfs: trace: set_program "lago"<br>
> libguestfs: trace: set_program = 0<br>
> libguestfs: trace: add_drive_ro<br>
> "/home/ykaul/ovirt-system-<wbr>tests/deployment-basic-suite-<wbr>master/default/images/lago-<wbr>basic-suite-master-host-0_<wbr>root.qcow2"<br>
> libguestfs: trace: add_drive<br>
> "/home/ykaul/ovirt-system-<wbr>tests/deployment-basic-suite-<wbr>master/default/images/lago-<wbr>basic-suite-master-host-0_<wbr>root.qcow2"<br>
> "readonly:true"<br>
> libguestfs: creating COW overlay to protect original drive content<br>
> libguestfs: trace: disk_format<br>
> "/home/ykaul/ovirt-system-<wbr>tests/deployment-basic-suite-<wbr>master/default/images/lago-<wbr>basic-suite-master-host-0_<wbr>root.qcow2"<br>
> libguestfs: command: run: qemu-img<br>
> libguestfs: command: run: \ info<br>
> libguestfs: command: run: \ --output json<br>
> libguestfs: command: run: \ /dev/fd/7<br>
> qemu-img: Could not open '/dev/fd/7': Failed to get shared "write" lock<br>
> Is another process using the image?<br>
<br>
</span>Is something else using the lago-basic-suite-master-host-<wbr>0_root.qcow2<br>
image at the same time?<br></blockquote><div><br></div><div>Not that I know of...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm not clear if the backend is libvirt or direct.  For libvirt we<br>
don't have a solution to this yet, although there is a patch series<br>
you can try:<br></blockquote><div><br></div><div>I think we use direct by default.</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="https://www.redhat.com/archives/libvir-list/2017-November/msg00617.html" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>archives/libvir-list/2017-<wbr>November/msg00617.html</a><br>
<br>
Rich.<br>
<span class=""><br>
> libguestfs: trace: disk_format = NULL (error)<br>
> libguestfs: trace: add_drive = -1 (error)<br>
> libguestfs: trace: add_drive_ro = -1 (error)<br>
><br>
><br>
> Any ideas?<br>
> TIA,<br>
> Y.<br>
<br>
</span>> ______________________________<wbr>_________________<br>
> Libguestfs mailing list<br>
> <a href="mailto:Libguestfs@redhat.com">Libguestfs@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libguestfs" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/libguestfs</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~<wbr>rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" rel="noreferrer" target="_blank">http://libguestfs.org</a><br>
</font></span></blockquote></div><br></div></div>