Hello-- I've been trying to build libguestfs 1.2.14 with the appliance enabled on an older type of system at my company. Getting all the required dependencies installed has been an arduous process, but I've finally hit an obstacle I don't know how to get around. The final output of "make": + febootstrap-run initramfs -- /sbin/depmod -a ABOUT-NLS BUGS COPYING COPYING.LIB ChangeLog GNUmakefile HACKING Makefile Makefile.am Makefile.in README TODO aclocal.m4 appliance bindtests build-aux capitests config.h config.h.in config.log config.status configure configure.ac contrib daemon examples fish fuse gnulib haskell html images initramfs inspector java libguestfs.pc libguestfs.pc.in libtool m4 maint.mk make-recipes.sh ocaml perl po python recipes regressions ruby src stamp-h1 subdir-rules.mktest-tool tools chroot: cannot run command `/sbin/depmod': No such file or directory make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/tmp/libguestfs-1.2.14/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/libguestfs-1.2.14' make: *** [all] Error 2 /sbin/depmod does indeed exist. I suppose that it doesn't exist inside the chroot febootstrap-run is running in, but I couldn't imagine why not. Can anyone offer any suggestions? Thanks in advance for any help.
On Thu, Jun 02, 2011 at 05:22:16PM -0700, Sean McAfee wrote:
Hello--
I've been trying to build libguestfs 1.2.14 with the appliance enabled on an older type of system at my company. Getting all the required dependencies installed has been an arduous process, but I've finally hit an obstacle I don't know how to get around. The final output of "make":
+ febootstrap-run initramfs -- /sbin/depmod -a ABOUT-NLS BUGS COPYING COPYING.LIB ChangeLog GNUmakefile HACKING Makefile Makefile.am Makefile.in README TODO aclocal.m4 appliance bindtests build-aux capitests config.h config.h.in config.log config.status configure configure.ac contrib daemon examples fish fuse gnulib haskell html images initramfs inspector java libguestfs.pc libguestfs.pc.in libtool m4 maint.mk make-recipes.sh ocaml perl po python recipes regressions ruby src stamp-h1 subdir-rules.mktest-tool tools chroot: cannot run command `/sbin/depmod': No such file or directory make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/tmp/libguestfs-1.2.14/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/libguestfs-1.2.14' make: *** [all] Error 2
/sbin/depmod does indeed exist. I suppose that it doesn't exist inside the chroot febootstrap-run is running in, but I couldn't imagine why not.
Can anyone offer any suggestions? Thanks in advance for any help.
Does $PATH contain /sbin? I think you should really try a newer version of libguestfs. The 1.2 series is about 18 months old and contains a (low risk but known) vulnerability. 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
On Thu, Jun 2, 2011 at 5:22 PM, Sean McAfee <eefacm@gmail.com> wrote:
Hello--
I've been trying to build libguestfs 1.2.14 with the appliance enabled on an older type of system at my company. Getting all the required dependencies installed has been an arduous process, but I've finally hit an obstacle I don't know how to get around. The final output of "make":
+ febootstrap-run initramfs -- /sbin/depmod -a ABOUT-NLS BUGS\
...snip...
chroot: cannot run command `/sbin/depmod': No such file or directory make[2]: *** [../initramfs/fakeroot.log] Error 1
Now I'm trying to build libguestfs-1.4.6, but I get a completely different error: ... mkdir -p ../perl/lib/Sys mkdir -p ../ruby/ext/guestfs mkdir -p ../java/com/redhat/et/libguestfs mkdir -p ../csharp cd .. && ocaml -warn-error A src/generator.ml Cannot find file xml-light.cma. File "src/generator.ml", line 11819, characters 4-53: Unbound constructor Xml.Element make[3]: *** [stamp-generator] Error 2 make[3]: Leaving directory `/tmp/libguestfs-1.4.6/src' make[2]: *** [../src/stamp-generator] Error 2 make[2]: Leaving directory `/tmp/libguestfs-1.4.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/libguestfs-1.4.6' make: *** [all] Error 2 Again, any pointers would be much appreciated.
On Fri, Jun 3, 2011 at 3:47 PM, Sean McAfee <eefacm@gmail.com> wrote:
Now I'm trying to build libguestfs-1.4.6, but I get a completely different error:
... mkdir -p ../perl/lib/Sys mkdir -p ../ruby/ext/guestfs mkdir -p ../java/com/redhat/et/libguestfs mkdir -p ../csharp cd .. && ocaml -warn-error A src/generator.ml Cannot find file xml-light.cma. File "src/generator.ml", line 11819, characters 4-53: Unbound constructor Xml.Element make[3]: *** [stamp-generator] Error 2
OK, I was able to solve this by installing the package libxml-light-ocaml-dev. Now I get a little further, but eventually the build stops again with this error: + febootstrap -i augeas-libs -i btrfs-progs -i diffutils -i e2fsprogs -i e4fsprogs -i gfs-utils -i gfs2-utils -i hfsplus-tools -i iputils -i kernel -i MAKEDEV -i nilfs-utils -i ntfsprogs -i ntfs-3g -i reiserfs-utils -i libselinux -i udev -i util-linux-ng -i vim-minimal -i xz -i zfs-fuse -i bash -i binutils -i coreutils -i dosfstools -i file -i grub -i jfsutils -i lsof -i lvm2 -i module-init-tools -i net-tools -i parted -i procps -i scrub -i strace -i xfsprogs -i zerofree -u updates-released-f12 fedora-13 initramfs Warning, could not load sqlite, falling back to pickle Error getting repository data for febootstrap,febootstrap-updates, repository not found chroot: cannot run command `rm': No such file or directory chroot: cannot run command `rm': No such file or directory make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/tmp/libguestfs-1.4.6/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/libguestfs-1.4.6' make: *** [all] Error 2 Any ideas? --Sean
On Fri, Jun 03, 2011 at 04:28:30PM -0700, Sean McAfee wrote:
On Fri, Jun 3, 2011 at 3:47 PM, Sean McAfee <eefacm@gmail.com> wrote:
Now I'm trying to build libguestfs-1.4.6, but I get a completely different error:
... mkdir -p ../perl/lib/Sys mkdir -p ../ruby/ext/guestfs mkdir -p ../java/com/redhat/et/libguestfs mkdir -p ../csharp cd .. && ocaml -warn-error A src/generator.ml Cannot find file xml-light.cma. File "src/generator.ml", line 11819, characters 4-53: Unbound constructor Xml.Element make[3]: *** [stamp-generator] Error 2
OK, I was able to solve this by installing the package libxml-light-ocaml-dev. Now I get a little further, but eventually the build stops again with this error:
+ febootstrap -i augeas-libs -i btrfs-progs -i diffutils -i e2fsprogs -i e4fsprogs -i gfs-utils -i gfs2-utils -i hfsplus-tools -i iputils -i kernel -i MAKEDEV -i nilfs-utils -i ntfsprogs -i ntfs-3g -i reiserfs-utils -i libselinux -i udev -i util-linux-ng -i vim-minimal -i xz -i zfs-fuse -i bash -i binutils -i coreutils -i dosfstools -i file -i grub -i jfsutils -i lsof -i lvm2 -i module-init-tools -i net-tools -i parted -i procps -i scrub -i strace -i xfsprogs -i zerofree -u updates-released-f12 fedora-13 initramfs Warning, could not load sqlite, falling back to pickle
Error getting repository data for febootstrap,febootstrap-updates, repository not found chroot: cannot run command `rm': No such file or directory chroot: cannot run command `rm': No such file or directory make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/tmp/libguestfs-1.4.6/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/libguestfs-1.4.6' make: *** [all] Error 2
Any ideas?
Which version of febootstrap are you pairing with this old libguestfs? libguestfs up to ~ 1.7.something required febootstrap 2.x. After that, febootstrap 3 is required. You need to be really specific about what this "old Ubuntu" is that you're trying to build on. What kernel version? What version of KVM? In general terms we need a very recent version of Debian/Ubuntu, because older versions just didn't support the features we need. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On Fri, Jun 3, 2011 at 11:23 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
Which version of febootstrap are you pairing with this old libguestfs?
libguestfs up to ~ 1.7.something required febootstrap 2.x. After that, febootstrap 3 is required.
Yes, I've made a list of the valid combinations: 1. libguestfs 1.2.14 requires febootstrap >= 2.3 2. libguestfs 1.4.6 requires febootstrap >= 2.7 3. libguestfs 1.6.2 requires febootstrap >= 2.10 4. libguestfs 1.8.7 requires febootstrap >= 3.0 (though 3.3 is recommended) I've tried building each version of libguestfs with the minimum acceptable (or recommended, in the case of #4) version of febootstrap. #1 is the one I originally posted about; it gets up to running febootstrap, then complains about not finding /sbin/depmod. #2 and #3 both get to running febootstrap, then error out with "cannot run command `rm': No such file or directory". I'm trying to build febootstrap 3.3 right now.
You need to be really specific about what this "old Ubuntu" is that you're trying to build on. What kernel version?
2.6.32-29-generic.
What version of KVM?
0.13.0-0ubuntu1.
On Mon, Jun 06, 2011 at 11:36:20AM -0700, Sean McAfee wrote:
2.6.32-29-generic.
I believe this kernel is too old -- it doesn't have virtio-serial which was added in 2.6.35 or 2.6.36. Unless you can at least install a later kernel for guests to use, this is never going to work.
What version of KVM?
0.13.0-0ubuntu1.
This should be OK. Next step is to build febootstrap ideally 3.6. Then install febootstrap (or adjust your $PATH), and build libguestfs. Usually to build Debian binary packages you just have to do: debuild -i -uc -us -b 2>&1 | tee /tmp/log 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
On Mon, Jun 6, 2011 at 12:31 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Mon, Jun 06, 2011 at 11:36:20AM -0700, Sean McAfee wrote:
2.6.32-29-generic.
I believe this kernel is too old -- it doesn't have virtio-serial which was added in 2.6.35 or 2.6.36. Unless you can at least install a later kernel for guests to use, this is never going to work.
Okay, I managed to locate a machine with kernel 2.6.35-7.1.1. I build febootstrap-3.6 without any problems, then tried to build libguestfs-1.10.3, and encountered a different failure mode: rm -f stamp-supermin supermin.d/base.img supermin.d/hostfiles ./make.sh febootstrap -v -o supermin.d --names bsdmainutils btrfs-tools cryptsetup diff e2fsprogs gfs-tools gfs2-tools grub-pc hfsplus iproute libaugeas0 linux-image nilfs-tools ntfs-3g ntfsprogs reiserfsprogs udev ufsutils util-linux vim-tiny xz-utils zfs-fuse acl attr bash binutils coreutils cpio dosfstools file findutils grep gzip jfsutils lsof lvm2 module-init-tools net-tools parted procps scrub strace tar zerofree --exclude ^perl --exclude ^python --exclude ^plymouth --exclude ^systemd --exclude ^linux-firmware --exclude ^kbd-misc --exclude ^file-rc registering package handler: yum-rpm registering package handler: debian registering package handler: pacman febootstrap 3.6 selected package handler: debian W: Unable to locate package btrfs-tools W: Unable to locate package gfs-tools W: Unable to locate package gfs2-tools W: Unable to locate package grub-pc W: Unable to locate package libaugeas0 W: Unable to locate package linux-image W: Unable to locate package nilfs-tools W: Unable to locate package ntfs-3g W: Unable to locate package ufsutils W: Unable to locate package xz-utils W: Unable to locate package zfs-fuse W: Unable to locate package scrub W: Unable to locate package zerofree Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done Following this was 209 lines each of the form "E: No downloadable files for <name> version <version>; perhaps it is a local or obsolete package?" Any suggestions for how to proceed from here? Thanks in advance.
On Mon, Jun 06, 2011 at 02:40:00PM -0700, Sean McAfee wrote:
Following this was 209 lines each of the form "E: No downloadable files for <name> version <version>; perhaps it is a local or obsolete package?"
Any suggestions for how to proceed from here? Thanks in advance.
IIRC you have to do: sudo apt-get update and then rerun the make command (as NON-root). 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
participants (2)
-
Richard W.M. Jones -
Sean McAfee