[Libguestfs] appliance VM won't start, can't find /init, but /init is in the image.

Richard W.M. Jones rjones at redhat.com
Fri Aug 12 07:32:18 UTC 2011


On Thu, Aug 11, 2011 at 04:06:10PM -0700, David Konerding wrote:
> 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.

[...]

> BTW, as a quick check I did:
> febootstrap --verbose --names bash libc6
> I never see the libc6 package being downloaded
> if I do
> febootstrap --verbose --names libc6
> then libc6 *is* downloaded.

(This works for me in 11.04)

febootstrap does:

  apt-cache depends --recurse -i %list-of-pkgs% | grep -v '^[<[:space:]]'

eg:

  apt-cache depends --recurse -i bash libc6 | grep -v '^[<[:space:]]'

It then downloads each one using 'aptitude download'.

Each is then unpacked using:

  dpkg-deb --fsys-tarfile %filename% | (cd %tmpdir% && tar xf -)

Does that list contain libc6?

Does 'aptitude download libc6' work?

If downloaded, does the unpacked deb contain the expected symlink?

http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap_debian.ml;h=4aa7389657aedf281a6aa908984a02891de801be;hb=HEAD#l35

> You may need to force the cached appliance to be rebuilt between tests
> > by doing:
> >
> >  rm -rf {/tmp,/var/tmp}/.guestfs-*
> >
> >
> 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.

Just:

  make -C appliance clean all

should be sufficient.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw




More information about the Libguestfs mailing list