<div dir="ltr"><div>Hello Richard,</div><div><br></div><div>Sahara uses python3.6, so I am using libguestfs 1.40.2. I downloaded guestfs library with this command "pip3.6 install <a href="http://download.libguestfs.org/python/guestfs-1.40.2.tar.gz">http://download.libguestfs.org/python/guestfs-1.40.2.tar.gz</a>". <br></div><div>The output of libguestfs-test-tool

"===== TEST FINISHED OK ====="</div><div><br></div><div>This is the sahara-image-pack code file which gives error when calls the object of guestfs, <a href="https://github.com/openstack/sahara/blob/stable/ussuri/sahara/cli/image_pack/api.py#L77">https://github.com/openstack/sahara/blob/stable/ussuri/sahara/cli/image_pack/api.py#L77</a></div><div><br></div><div>Thanks,</div><div>İzzettin<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>>, 28 Kas 2020 Cmt, 12:50 tarihinde şunu yazdı:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Nov 28, 2020 at 02:56:12AM +0300, İzzettin Erdem wrote:<br>
> Hello Richard,<br>
> <br>
> I am working on OpenStack Sahara for a year and Sahara uses libguestfs for<br>
> creating images according to the given .yaml file (sahara-image-pack bianry). I<br>
> used this binary -and it worked- 6 months ago and after some version upgrades<br>
> I've needed it again. When I try to create images I am taking errors from<br>
> libguestfs.<br>
> <br>
> I did some research and in I found "sh" function in the guestfs.py file.<br>
> Sahara-image-pack is using this function and sends it some commands but this<br>
> function throws errors below. I tried to solve and did some tries to execute sh<br>
> function with guestfs object but still the same.<br>
> <br>
> Main error is "guestfsd: error: /bin/sh: Exec format error". There is detailed<br>
> logs below.<br>
> <br>
> I am kind of newbie, can you help me, please?<br>
> <br>
> <a href="http://paste.openstack.org/show/800516/" rel="noreferrer" target="_blank">http://paste.openstack.org/show/800516/</a><br>
> <a href="http://paste.openstack.org/show/800517/" rel="noreferrer" target="_blank">http://paste.openstack.org/show/800517/</a><br>
<br>
What version of libguestfs?  Where did you get it from?<br>
What is the output of "libguestfs-test-tool"?<br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~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>
virt-p2v converts physical machines to virtual machines.  Boot with a<br>
live CD or over the network (PXE) and turn machines into KVM guests.<br>
<a href="http://libguestfs.org/virt-v2v" rel="noreferrer" target="_blank">http://libguestfs.org/virt-v2v</a><br>
<br>
</blockquote></div>