<div dir="ltr"><div><div><div><div><div><div><div>1,<br>In guestfs.py line 1417<br></div>libguestfsmode.add_driver(XXX, unicode(format), XXX)<br></div>should be modified as:<br></div>if format is not None:<br></div>    format = unicode(foramt)<br>
<br>libguestfsmode.add_driver(XXX, format, XXX)<br>2,<br></div>I use a compiling option to compile the libguestfs.so<br></div>but I have forget it, you can find it by help.<br><br></div>Hope it's useful to you.<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-06 18:42 GMT+08:00 Arindam Choudhury <span dir="ltr"><<a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">Thanks, I used a really bad way of linking qemu-kvm to qemu-system-x86_64, is there any better way or I should change nova-compute codes?<br><br><div><hr>From: <a href="mailto:parthipan@hp.com" target="_blank">parthipan@hp.com</a><br>
To: <a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>; <a href="mailto:lilinguo8212@gmail.com" target="_blank">lilinguo8212@gmail.com</a>; <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><div class="">
<br>Subject: RE: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)<br></div>Date: Thu, 6 Mar 2014 10:19:56 +0000<div><div class="h5"><br><br>






<div>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Arindam,</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you don’t want to see the error in the logs you can configure /etc/nova/nova.conf to</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[libvirt]</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">inject_partition = -2</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The guest can then inject files and metadata after it starts up, which is more preferable.</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">~parthi</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Arindam Choudhury [mailto:<a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>]
<br>
<b>Sent:</b> 06 March 2014 09:48<br>
<b>To:</b> </span><span style="font-size:10.0pt" lang="ZH-CN">黎林果</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">; <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>

<b>Subject:</b> Re: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)</span></p>
</div>
</div>
<p> </p>
<div>
<p><span style="font-family:"Calibri","sans-serif"">Hi,<br>
<br>
It will be very helpful if you can share your procedure. My libguestfs version is libguestfs-1.16.34-2.el6.x86_64</span></p>
<div>
<div style="text-align:center" align="center"><span style="font-family:"Calibri","sans-serif"">
<hr align="center" size="2" width="100%">
</span></div>
<p><span style="font-family:"Calibri","sans-serif"">Date: Thu, 6 Mar 2014 09:24:51 +0800<br>
Subject: Re: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)<br>
From: <a href="mailto:lilinguo8212@gmail.com" target="_blank">lilinguo8212@gmail.com</a><br>
To: <a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a></span></p>
<div>
<div>
<p><span style="font-family:"Calibri","sans-serif"">I've been done. The guestfs's python file has a bug.</span></p>
</div>
<p><span style="font-family:"Calibri","sans-serif"">Bug I forget what is version of the guestfs. If you can't deal the problem, I can find out what I have done.</span></p>
</div>
<div>
<p><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p><span style="font-family:"Calibri","sans-serif"">2014-03-05 23:30 GMT+08:00 Arindam Choudhury <<a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>>:</span></p>
<div>
<div>
<p><span style="font-family:"Calibri","sans-serif""><br>
Thanking a lot for helping me. </span></p>
<div>
<div>
<div style="text-align:center" align="center"><span style="font-family:"Calibri","sans-serif"">
<hr align="center" size="2" width="100%">
</span></div>
<p><span style="font-family:"Calibri","sans-serif"">From: <a href="mailto:parthipan@hp.com" target="_blank">
parthipan@hp.com</a><br>
To: <a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a></span></p>
</div>
<p><span style="font-family:"Calibri","sans-serif"">CC: <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a></span></p>
<div>
<p><span style="font-family:"Calibri","sans-serif""><br>
Subject: RE: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)</span></p>
</div>
<p><span style="font-family:"Calibri","sans-serif"">Date: Wed, 5 Mar 2014 15:16:25 +0000</span></p>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The guestfs error is due to a misconfiguration of guestfs and will only result in not having files injected before booting. Usually this is harmless as cloud-init
 like software will fix it after booting.</span><span style="font-family:"Calibri","sans-serif""><br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""><br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Glad the VM booted
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-family:"Calibri","sans-serif""><br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""><br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Arindam Choudhury [mailto:<a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>]
<br>
<b>Sent:</b> 05 March 2014 15:10</span><span style="font-family:"Calibri","sans-serif""></span></p>
<div>
<p><span style="font-family:"Calibri","sans-serif""><br>
<b>To:</b> Parthipan, Loganathan<br>
<b>Subject:</b> RE: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)</span></p>
</div>
<p><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
</div>
<p><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p><span style="font-family:"Calibri","sans-serif"">changing /etc/libvirt/qemu.conf helped
<span style="border:solid windowtext 1.0pt;padding:0cm"><img src="http://~WRD000.jpg" alt="Image removed by sender. Image removed by sender. Emoji" border="0" height="100" width="100"></span>.
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">clear_emulator_capabilities=0 was already set.<br>
<br>
VM boots up, but it still has the same error in log.<br>
<br>
<a href="http://paste.openstack.org/raw/72621/" target="_blank">log </a><br>
<br>
<a href="http://paste.openstack.org/raw/72622/" target="_blank">instance-log</a><br>
<br>
ls -alh /var/lib/nova/instances/7d79e021-72a9-4e5c-b2e5-312e16355dcd/<br>
total 52M<br>
drwxr-xr-x 2 nova nova 4.0K Mar  5 15:50 .<br>
drwxr-xr-x 5 nova nova 4.0K Mar  5 15:50 ..<br>
-rw-rw---- 1 root root  25K Mar  5 15:51 console.log<br>
-rw-r--r-- 1 root root  52M Mar  5 15:51 disk<br>
-rw-r--r-- 1 nova nova 1.6K Mar  5 15:50 libvirt.xml<br>
<br>
</span><span style="font-family:"Calibri","sans-serif""></span></p>
<div>
<div style="text-align:center" align="center"><span style="font-family:"Calibri","sans-serif"">
<hr align="center" size="2" width="100%">
</span></div>
<p><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p><span style="font-family:"Calibri","sans-serif"">From: <a href="mailto:parthipan@hp.com" target="_blank">
parthipan@hp.com</a><br>
To: <a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>; <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a><br>
Subject: RE: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)</span></p>
</div>
<p><span style="font-family:"Calibri","sans-serif"">Date: Wed, 5 Mar 2014 13:53:25 +0000</span></p>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If that doesn’t work try setting clear_emulator_capabilities=0</span><span style="font-family:"Calibri","sans-serif""><br>

</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Parthipan, Loganathan
<br>
<b>Sent:</b> 05 March 2014 13:37<br>
<b>To:</b> 'Arindam Choudhury'; <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a><br>
<b>Subject:</b> RE: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)</span><span style="font-family:"Calibri","sans-serif""></span></p>
</div>
</div>
<p><span style="font-family:"Calibri","sans-serif""> <br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Try setting user and group to root in /etc/libvirt/qemu.conf</span><span style="font-family:"Calibri","sans-serif""><br>

</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Arindam Choudhury [mailto:<a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>]
<br>
<b>Sent:</b> 05 March 2014 13:36<br>
<b>To:</b> Parthipan, Loganathan; <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a><br>
<b>Subject:</b> RE: [Openstack] Error mounting disk with libguestfs (child process died unexpectedly)</span><span style="font-family:"Calibri","sans-serif""></span></p>
</div>
</div>
<p><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p><span style="font-family:"Calibri","sans-serif""><br>
./configure --enable-trace-backend=ftrace --enable-kvm --enable-vhost-net --enable-virtfs --target-list=x86_64-linux-user,x86_64-softmmu</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p><span style="font-family:"Calibri","sans-serif"">...<br>
<br>
[</span><span lang="ZH-CN">邮件部分隐藏</span><span style="font-family:"Calibri","sans-serif"">]  <br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span></p>
</div>
<p><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
</div>
</div>
</div>
</div></div></div></div>                                          </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>