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

David Konerding dek at konerding.com
Fri Aug 12 20:03:06 UTC 2011


OK, for completion's sake,
  let pkgs = pkgs @ [ "libc6" ] in
  let pkgs = pkgs @ [ "libncurses5" ] in
  let pkgs = pkgs @ [ "libselinux1" ] in
  let pkgs = pkgs @ [ "libblkid1" ] in
  let pkgs = pkgs @ [ "module-init-tools" ] in
  let pkgs = pkgs @ [ "libuuid1" ] in
  let pkgs = pkgs @ [ "libreadline6" ] in
  let pkgs = pkgs @ [ "libacl1" ] in

was sufficient to boot into userspace.  Now I'm hitting a bunch of
interesting problems:
/proc/uptime: No such file or directory
Starting /init script ...
warning: can't open /etc/fstab: No such file or directory
mount: mount point /sys does not exist
cannot open /dev/null
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access
method.
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCADDRT: No such process
  Failed to find sysfs mount point
  read_urandom: /dev/urandom: open failed: No such file or directory
  Failed to find sysfs mount point
  read_urandom: /dev/urandom: open failed: No such file or directory
/init: line 73: /sys/block/vd*/queue/rotational: No such file or directory
ls: error while loading shared libraries: libacl.so.1: cannot open shared
object file: No such file or directory
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
/dev/root / ext2 rw,noatime,errors=continue 0 0
/proc /proc proc rw,relatime 0 0
  Failed to find sysfs mount point
  read_urandom: /dev/urandom: open failed: No such file or directory
  Failed to find sysfs mount point
  read_urandom: /dev/urandom: open failed: No such file or directory
  Failed to find sysfs mount point
  read_urandom: /dev/urandom: open failed: No such file or directory

On Fri, Aug 12, 2011 at 11:46 AM, Richard W.M. Jones <rjones at redhat.com>wrote:

> On Fri, Aug 12, 2011 at 11:22:01AM -0700, David Konerding wrote:
> > On Fri, Aug 12, 2011 at 11:03 AM, Richard W.M. Jones <rjones at redhat.com
> >wrote:
> >
> > > On Fri, Aug 12, 2011 at 10:45:48AM -0700, David Konerding wrote:
> > > > I see, so you're suggesting I just manually add a package to pkgs
> right
> > > > after
> > > >
> > >
> http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap_debian.ml;h=4aa7389657aedf281a6aa908984a02891de801be;hb=HEAD#l47
> > >
> > > Yup, something like:
> > >
> > >  let pkgs = pkgs @ [ "libc6" ] in
> > >
> > >
> > Thanks for all the help.  I can confirm that shoehorning libc6 in allows
> > invoking init.  The next step is /bin/sh failing to run because
> > libncurses.so.5 can't be loaded.
>
> Another thing to do would be to modify the grep command here:
>
>
> http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap_debian.ml;h=4aa7389657aedf281a6aa908984a02891de801be;hb=HEAD#l37
>
> in order to make it include all the Depends and Pre-Depends packages
> (assuming that ncurses is amongst those).
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming blog: http://rwmj.wordpress.com
> Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
> http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20110812/47e05593/attachment.htm>


More information about the Libguestfs mailing list