[Libguestfs] supermin: failed to find a suitable kernel

Tomáš Golembiovský tgolembi at redhat.com
Tue Nov 5 08:57:38 UTC 2019


On Mon, Nov 04, 2019 at 08:26:08PM +0000, Klaas Schulze-Dieckhoff wrote:
> As requested this is the output inside my container:
> root at ead989650980:/# ls /boot
> androidboot  efi  grubinitrd.img-core  initrd.img-core-0.7.43+ppa27  uboot
> root at ead989650980:/# ls /lib/modules
> 4.15.0-66-generic
> 
> I know, that there is no kernel inside /boot, but to my understanding this is a normal behavior of docker and I can not just install a kernel inside the container.
> 

You can either download fixed appliance from [1] or build your own fixed
appliance on the host using libguestfs-make-fixed-appliance [2]. You can
then provide the same fixed appliance to all your containers as
a volume. Set LIBGUESTFS_PATH env. variable to configure the location.

    Tomas

[1] http://download.libguestfs.org/binaries/appliance/
[2] http://libguestfs.org/libguestfs-make-fixed-appliance.1.html


> /dev/kvm is already mounted inside this container.
> 
> Thanks
> Klaas
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Tomáš Golembiovský <tgolembi at redhat.com>
> > Gesendet: Montag, 4. November 2019 18:11
> > An: Klaas Schulze-Dieckhoff <K.Schulze-Dieckhoff at sonnen.de>
> > Cc: libguestfs at redhat.com
> > Betreff: Re: [Libguestfs] supermin: failed to find a suitable kernel
> >
> > What is the content of /boot and /lib/modules inside the container?
> >
> > Also you may want to expose /dev/kvm into the container to get proper
> > virtualization. Otherwise you're stuck with software emulation (TCG) which is
> > much slower.
> >
> >     Tomas
> >
> > On Sat, Nov 02, 2019 at 09:36:21AM +0000, Klaas Schulze-Dieckhoff wrote:
> > > Hi all
> > >
> > > I am trying to run the dockerized version of linaro lava. Unfortunately it is
> > not possible to start libguetsfs inside one of the containers.
> > > My settings are: Ubuntu Server 18.04.3, Docker version 18.09.7 running
> > > a Debian:stretch based contianer
> > >
> > > Running libguestfs-test-tool gives me the following output:
> > >
> > >
> > > root at e91c89e0874d:/# libguestfs-test-tool
> > >
> > **********************************************************
> > **
> > >      *                    IMPORTANT NOTICE
> > >      *
> > >      * When reporting bugs, include the COMPLETE, UNEDITED
> > >      * output below in your bug report.
> > >      *
> > >
> > **********************************************************
> > **
> > > libguestfs: trace: set_verbose true
> > > libguestfs: trace: set_verbose = 0
> > > libguestfs: trace: set_backend "direct"
> > > libguestfs: trace: set_backend = 0
> > > libguestfs: trace: set_verbose true
> > > libguestfs: trace: set_verbose = 0
> > > LIBGUESTFS_BACKEND=direct
> > > LIBGUESTFS_TRACE=1
> > > LIBGUESTFS_DEBUG=1
> > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> > > SELinux: sh: 1: getenforce: not found
> > > libguestfs: trace: add_drive_scratch 104857600
> > > libguestfs: trace: get_tmpdir
> > > libguestfs: trace: get_tmpdir = "/tmp"
> > > libguestfs: trace: disk_create "/tmp/libguestfspqGts5/scratch.1" "raw"
> > > 104857600
> > > libguestfs: trace: disk_create = 0
> > > libguestfs: trace: add_drive "/tmp/libguestfspqGts5/scratch.1"
> > "format:raw" "cachemode:unsafe"
> > > libguestfs: trace: add_drive = 0
> > > libguestfs: trace: add_drive_scratch = 0
> > > libguestfs: trace: get_append
> > > libguestfs: trace: get_append = "NULL"
> > > guestfs_get_append: (null)
> > > libguestfs: trace: get_autosync
> > > libguestfs: trace: get_autosync = 1
> > > guestfs_get_autosync: 1
> > > libguestfs: trace: get_backend
> > > libguestfs: trace: get_backend = "direct"
> > > guestfs_get_backend: direct
> > > libguestfs: trace: get_backend_settings
> > > libguestfs: trace: get_backend_settings = []
> > > guestfs_get_backend_settings: []
> > > libguestfs: trace: get_cachedir
> > > libguestfs: trace: get_cachedir = "/var/tmp"
> > > guestfs_get_cachedir: /var/tmp
> > > libguestfs: trace: get_direct
> > > libguestfs: trace: get_direct = 0
> > > guestfs_get_direct: 0
> > > libguestfs: trace: get_hv
> > > libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
> > > guestfs_get_hv: /usr/bin/qemu-system-x86_64
> > > libguestfs: trace: get_memsize
> > > libguestfs: trace: get_memsize = 500
> > > guestfs_get_memsize: 500
> > > libguestfs: trace: get_network
> > > libguestfs: trace: get_network = 0
> > > guestfs_get_network: 0
> > > libguestfs: trace: get_path
> > > libguestfs: trace: get_path = "/usr/lib/x86_64-linux-gnu/guestfs"
> > > guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
> > > libguestfs: trace: get_pgroup
> > > libguestfs: trace: get_pgroup = 0
> > > guestfs_get_pgroup: 0
> > > libguestfs: trace: get_program
> > > libguestfs: trace: get_program = "libguestfs-test-tool"
> > > guestfs_get_program: libguestfs-test-tool
> > > libguestfs: trace: get_recovery_proc
> > > libguestfs: trace: get_recovery_proc = 1
> > > guestfs_get_recovery_proc: 1
> > > libguestfs: trace: get_smp
> > > libguestfs: trace: get_smp = 1
> > > guestfs_get_smp: 1
> > > libguestfs: trace: get_sockdir
> > > libguestfs: trace: get_sockdir = "/tmp"
> > > guestfs_get_sockdir: /tmp
> > > libguestfs: trace: get_tmpdir
> > > libguestfs: trace: get_tmpdir = "/tmp"
> > > guestfs_get_tmpdir: /tmp
> > > libguestfs: trace: get_trace
> > > libguestfs: trace: get_trace = 1
> > > guestfs_get_trace: 1
> > > libguestfs: trace: get_verbose
> > > libguestfs: trace: get_verbose = 1
> > > guestfs_get_verbose: 1
> > > host_cpu: x86_64
> > > Launching appliance, timeout set to 600 seconds.
> > > libguestfs: trace: launch
> > > libguestfs: trace: version
> > > libguestfs: trace: version = <struct guestfs_version = major: 1,
> > > minor: 34, release: 6, extra: , >
> > > libguestfs: trace: get_backend
> > > libguestfs: trace: get_backend = "direct"
> > > libguestfs: launch: program=libguestfs-test-tool
> > > libguestfs: launch: version=1.34.6
> > > libguestfs: launch: backend registered: unix
> > > libguestfs: launch: backend registered: uml
> > > libguestfs: launch: backend registered: libvirt
> > > libguestfs: launch: backend registered: direct
> > > libguestfs: launch: backend=direct
> > > libguestfs: launch: tmpdir=/tmp/libguestfspqGts5
> > > libguestfs: launch: umask=0022
> > > libguestfs: launch: euid=0
> > > libguestfs: trace: get_backend_setting "force_tcg"
> > > libguestfs: trace: get_backend_setting = NULL (error)
> > > libguestfs: trace: get_cachedir
> > > libguestfs: trace: get_cachedir = "/var/tmp"
> > > libguestfs: begin building supermin appliance
> > > libguestfs: run supermin
> > > libguestfs: command: run: /usr/bin/supermin
> > > libguestfs: command: run: \ --build
> > > libguestfs: command: run: \ --verbose
> > > libguestfs: command: run: \ --if-newer
> > > libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock
> > > libguestfs: command: run: \ --copy-kernel
> > > libguestfs: command: run: \ -f ext2
> > > libguestfs: command: run: \ --host-cpu x86_64
> > > libguestfs: command: run: \
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
> > > libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
> > > supermin: version: 5.1.17
> > > supermin: package handler: debian/dpkg
> > > supermin: acquiring lock on /var/tmp/.guestfs-0/lock
> > > supermin: build: /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
> > > supermin: reading the supermin appliance
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/base.tar.gz type gzip
> > > base image (tar)
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/daemon.tar.gz type gzip
> > > base image (tar)
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/excludefiles type
> > > uncompressed excludefiles
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/hostfiles type
> > > uncompressed hostfiles
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/init.tar.gz type gzip
> > > base image (tar)
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages type
> > > uncompressed packages
> > > supermin: build: visiting
> > > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/udev-rules.tar.gz type
> > > gzip base image (tar)
> > > supermin: mapping package names to installed packages
> > > supermin: resolving full list of package dependencies
> > > supermin: build: 188 packages, including dependencies
> > > supermin: build: 10647 files
> > > supermin: build: 6483 files, after matching excludefiles
> > > supermin: build: 6486 files, after adding hostfiles
> > > supermin: build: 6486 files, after removing unreadable files
> > > supermin: build: 6489 files, after munging
> > > supermin: failed to find a suitable kernel (host_cpu=x86_64).
> > >
> > > I looked for kernels in /boot and modules in /lib/modules.
> > >
> > > If this is a Xen guest, and you only have Xen domU kernels installed,
> > > try installing a fullvirt kernel (only for supermin use, you shouldn't
> > > boot the Xen guest with it).
> > > libguestfs: error: /usr/bin/supermin exited with error status 1, see
> > > debug messages above
> > > libguestfs: trace: launch = -1 (error)
> > > libguestfs: trace: close
> > > libguestfs: closing guestfs handle 0x5627c93af260 (state 0)
> > > libguestfs: command: run: rm
> > > libguestfs: command: run: \ -rf /tmp/libguestfspqGts5
> > >
> > > Can anybody point me the right direction to fix this?
> > >
> > > Thanks a lot
> > > Klaas
> > > Geschäftsführer: Christoph Ostermann (CEO), Oliver Koch, Steffen
> > Schneider, Hermann Schweizer, Tim Ulbricht.
> > > Amtsgericht Kempten/Allgäu, Registernummer: 10655, Steuernummer
> > > 127/137/50792, USt.-IdNr. DE272208908
> > >
> > > _______________________________________________
> > > Libguestfs mailing list
> > > Libguestfs at redhat.com
> > > https://www.redhat.com/mailman/listinfo/libguestfs
> >
> > --
> > Tomáš Golembiovský <tgolembi at redhat.com>
> Geschäftsführer: Christoph Ostermann (CEO), Oliver Koch, Steffen Schneider, Hermann Schweizer, Tim Ulbricht.
> Amtsgericht Kempten/Allgäu, Registernummer: 10655, Steuernummer 127/137/50792, USt.-IdNr. DE272208908

-- 
Tomáš Golembiovský <tgolembi at redhat.com>




More information about the Libguestfs mailing list