<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 11:17 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">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;">
<div><div></div><div class="h5">On Thu, Aug 11, 2011 at 07:10:21PM +0100, Richard W.M. Jones wrote:<br>
> On Wed, Aug 10, 2011 at 05:16:13PM -0700, David Konerding wrote:<br>
> > Hi,<br>
> > Still trying to get libguestfs appliance test to work on Ubuntu Lucid.  I<br>
> > figured out my umask was causing problems and fixed that.  now I'm on to a<br>
> > new problem.  libguestfs-test-tool reports the following:<br>
> ><br>
> > febootstrap: mounting new root on /root<br>
> > febootstrap: chroot<br>
> > /proc/uptime: No such file or directory<br>
> > execl: /init: No such file or directory<br>
> > febootstrap: debug: listing directory /<br>
> >     2 d .                040755 4096 88619:5000<br>
> >     2 d ..               040755 4096 88619:5000<br>
> >    11 d lost+found       040700 16384 0:0<br>
> >    12 d bin              040755 4096 23083:5000<br>
> >    13 d boot             040755 4096 23083:5000<br>
> >    14 d etc              040755 4096 23083:5000<br>
> >   109 d lib              040755 4096 23083:5000<br>
> >   156 d sbin             040755 4096 23083:5000<br>
> >   157 d usr              040755 4096 23083:5000<br>
> >   534 d var              040755 4096 23083:5000<br>
> >  3701 - init             100750 3264 23083:5000<br>
> ><br>
> > Note, init is indeed a file (a shell script).  I checked the root and initrd<br>
> > images, and they both have init (the initrd has an init binary, the root has<br>
> > a shell script that starts udev etc).<br>
><br>
> The problem is that the kernel gives the same error "execl: /init: No<br>
> such file or directory" for a whole variety of reasons.  These<br>
> include:<br>
><br>
>  - /init missing (obviously not the case here)<br>
><br>
>  - /bin/sh missing<br>
><br>
>  - any library that /bin/sh needs is missing<br>
><br>
>  - ld-linux missing<br>
><br>
> So you need to make sure /bin/sh is there.  If it's a symlink (eg. to<br>
> dash) then the destination file is there.  Then do 'ldd /bin/sh' and<br>
> make sure all of the required libraries and ld-linux are there.<br>
<br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Additionally, these files are pulled at runtime from the host.<br>
<br>
So say that /bin/sh needs /lib/libc.so.6 which is a symlink to<br>
/lib/<a href="http://libc-2.14.90.so" target="_blank">libc-2.14.90.so</a>, then you would need to check:<br>
<br>
 - /lib/libc.so.6 listed in appliance/supermin.d/hostfiles<br>
<br>
 - /lib/libc-*.so listed in appliance/supermin.d/hostfiles<br>
<br>
 - /lib/libc.so.6 exists on the host filesystem and is readable<br>
   by non-root.<br>
<br>
 - File(s) matching /lib/libc-*.so exist on the host filesystem and<br>
   are readable by non-root.<br>
<br></blockquote><div><br></div><div>So:  /bin/sh is a link to /bin/bash, it dynamic links to libc.so.6, but it appears libc.so.6 is missing from appliance/supermin.d/hostfiles; it looks to me like the libc debian package isn't downloaded during the febootstrap.  There is in libc.so.6 file in the VM image.</div>
<div><div><br></div></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You may need to force the cached appliance to be rebuilt between tests<br>
by doing:<br>
<br>
  rm -rf {/tmp,/var/tmp}/.guestfs-*<br>
<div class="im"><br></div></blockquote><div><br></div><div>Is there a similar way to clear out the files in appliance/supermin.d so i can re-do the package download/unpack/build img process?  I have been making clean, then make, then make install in src/libguestfs-1.12.3.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div>virt-df lists disk usage of guests without needing to install any<br>
software inside the virtual machine.  Supports Linux and Windows.<br>
<a href="http://et.redhat.com/~rjones/virt-df/" target="_blank">http://et.redhat.com/~rjones/virt-df/</a><br>
</blockquote></div><br>