Uploaded image for project: 'BoxGrinder Build'
  1. BoxGrinder Build
  2. BGBUILD-207

Guestfs dies on Fedora 15 with 'KVM not supported for this target' message

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Core
    • Labels:

      Description

      It seems we need to use guestfs_config call to disable kvm on hosts without virt support: http://libguestfs.org/guestfs.3.html#guestfs_config

      It can be also a libguestfs bug.

      T, [2011-04-28T07:37:06.633223 #7905] TRACE -- : Checking if HW virtualization is available...
      T, [2011-04-28T07:37:06.633986 #14573] TRACE -- : GFS: libguestfs: trace: set_selinux true
      T, [2011-04-28T07:37:06.639103 #14573] TRACE -- : GFS: libguestfs: trace: set_selinux = 0
      T, [2011-04-28T07:37:06.668907 #7905] TRACE -- : HW acceleration not available.
      T, [2011-04-28T07:37:06.669775 #7905] TRACE -- : Setting QEMU wrapper to /usr/bin/qemu-system-x86_64...
      T, [2011-04-28T07:37:06.670156 #7905] TRACE -- : QEMU wrapper set.
      T, [2011-04-28T07:37:06.670364 #7905] TRACE -- : Adding drive 'build/appliances/x86_64/fedora/14/f14-jeos/fedora-plugin/tmp/f14-jeos-sda.raw'...
      T, [2011-04-28T07:37:06.670611 #14573] TRACE -- : GFS: libguestfs: trace: set_qemu "/usr/bin/qemu-system-x86_64"
      T, [2011-04-28T07:37:06.670850 #14573] TRACE -- : GFS: libguestfs: trace: set_qemu = 0
      T, [2011-04-28T07:37:06.678754 #14573] TRACE -- : GFS: libguestfs: trace: add_drive "build/appliances/x86_64/fedora/14/f14-jeos/fedora-plugin/tmp/f14-jeos-sda.raw"
      T, [2011-04-28T07:37:06.679057 #14573] TRACE -- : GFS: libguestfs: trace: add_drive = 0
      T, [2011-04-28T07:37:06.671240 #7905] TRACE -- : Drive added.
      D, [2011-04-28T07:37:06.681554 #7905] DEBUG -- : Enabling networking for GuestFS...
      T, [2011-04-28T07:37:06.681894 #14573] TRACE -- : GFS: libguestfs: trace: set_network true
      D, [2011-04-28T07:37:06.681896 #7905] DEBUG -- : Launching guestfs...
      T, [2011-04-28T07:37:06.682084 #14573] TRACE -- : GFS: libguestfs: trace: set_network = 0
      T, [2011-04-28T07:37:06.682286 #14573] TRACE -- : GFS: libguestfs: trace: launch
      T, [2011-04-28T07:37:06.683285 #14573] TRACE -- : GFS: libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib64/guestfs/supermin.d' x86_64
      T, [2011-04-28T07:37:06.721234 #14573] TRACE -- : GFS: supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
      T, [2011-04-28T07:37:06.721617 #14573] TRACE -- : GFS: supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
      T, [2011-04-28T07:37:06.722296 #14573] TRACE -- : GFS: checking modpath /lib/modules/2.6.38.2-9.fc15.x86_64 is a directory
      T, [2011-04-28T07:37:06.722778 #14573] TRACE -- : GFS: picked vmlinuz-2.6.38.2-9.fc15.x86_64 because modpath /lib/modules/2.6.38.2-9.fc15.x86_64 exists
      T, [2011-04-28T07:37:06.723026 #14573] TRACE -- : GFS: supermin helper [00002ms] finished creating kernel
      T, [2011-04-28T07:37:06.723719 #14573] TRACE -- : GFS: supermin helper [00002ms] visiting /usr/lib64/guestfs/supermin.d
      T, [2011-04-28T07:37:06.724915 #14573] TRACE -- : GFS: supermin helper [00003ms] visiting /usr/lib64/guestfs/supermin.d/base.img
      T, [2011-04-28T07:37:06.744366 #14573] TRACE -- : GFS: supermin helper [00023ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
      T, [2011-04-28T07:37:06.774229 #14573] TRACE -- : GFS: supermin helper [00053ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
      T, [2011-04-28T07:37:07.054369 #14573] TRACE -- : GFS: supermin helper [00334ms] visiting /usr/lib64/guestfs/supermin.d/init.img
      T, [2011-04-28T07:37:07.606272 #14573] TRACE -- : GFS: supermin helper [00885ms] finished creating appliance
      T, [2011-04-28T07:37:07.612621 #14573] TRACE -- : GFS: libguestfs: [00925ms] begin building supermin appliance
      T, [2011-04-28T07:37:07.612814 #14573] TRACE -- : GFS: libguestfs: [00925ms] run febootstrap-supermin-helper
      T, [2011-04-28T07:37:07.615720 #14573] TRACE -- : GFS: libguestfs: [00934ms] febootstrap-supermin-helper \
      T, [2011-04-28T07:37:07.615933 #14573] TRACE -- : GFS: --verbose \
      T, [2011-04-28T07:37:07.616150 #14573] TRACE -- : GFS: -f ext2 /usr/lib64/guestfs/supermin.d x86_64 /tmp/guestfs.UNTnfG/kernel /tmp/guestfs.UNTnfG/initrd /tmp/guestfs.UNTnfG/root
      T, [2011-04-28T07:37:07.620322 #14573] TRACE -- : GFS: supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = /tmp/guestfs.UNTnfG/kernel, initrd = /tmp/guestfs.UNTnfG/initrd, appliance = /tmp/guestfs.UNTnfG/root
      T, [2011-04-28T07:37:07.620684 #14573] TRACE -- : GFS: supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
      T, [2011-04-28T07:37:07.621078 #14573] TRACE -- : GFS: checking modpath /lib/modules/2.6.38.2-9.fc15.x86_64 is a directory
      T, [2011-04-28T07:37:07.621303 #14573] TRACE -- : GFS: picked vmlinuz-2.6.38.2-9.fc15.x86_64 because modpath /lib/modules/2.6.38.2-9.fc15.x86_64 exists
      T, [2011-04-28T07:37:07.621962 #14573] TRACE -- : GFS: supermin helper [00001ms] finished creating kernel
      T, [2011-04-28T07:37:08.700677 #14573] TRACE -- : GFS: supermin helper [01080ms] finished mke2fs
      T, [2011-04-28T07:37:08.701007 #14573] TRACE -- : GFS: supermin helper [01080ms] visiting /usr/lib64/guestfs/supermin.d
      T, [2011-04-28T07:37:08.701216 #14573] TRACE -- : GFS: supermin helper [01080ms] visiting /usr/lib64/guestfs/supermin.d/base.img
      T, [2011-04-28T07:37:12.201781 #14573] TRACE -- : GFS: supermin helper [04582ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
      T, [2011-04-28T07:37:12.227122 #14573] TRACE -- : GFS: supermin helper [04607ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
      T, [2011-04-28T07:37:18.623347 #14573] TRACE -- : GFS: supermin helper [11003ms] visiting /usr/lib64/guestfs/supermin.d/init.img
      T, [2011-04-28T07:37:33.381458 #14573] TRACE -- : GFS: supermin helper [25762ms] finished creating appliance
      T, [2011-04-28T07:37:33.388555 #14573] TRACE -- : GFS: libguestfs: [26701ms] finished building supermin appliance
      T, [2011-04-28T07:37:33.388762 #14573] TRACE -- : GFS: libguestfs: [26702ms] begin testing qemu features
      T, [2011-04-28T07:37:33.881621 #14573] TRACE -- : GFS: libguestfs: [27199ms] finished testing qemu features
      T, [2011-04-28T07:37:33.891789 #14573] TRACE -- : GFS: libguestfs: [27209ms] /usr/bin/qemu-system-x86_64 \
      T, [2011-04-28T07:37:33.892136 #14573] TRACE -- : GFS: -drive file=build/appliances/x86_64/fedora/14/f14-jeos/fedora-plugin/tmp/f14-jeos-sda.raw,cache=off,if=virtio \
      T, [2011-04-28T07:37:33.892325 #14573] TRACE -- : GFS: -nodefconfig \
      T, [2011-04-28T07:37:33.892566 #14573] TRACE -- : GFS: -enable-kvm \
      T, [2011-04-28T07:37:33.892751 #14573] TRACE -- : GFS: -nodefaults \
      T, [2011-04-28T07:37:33.892955 #14573] TRACE -- : GFS: -nographic \
      T, [2011-04-28T07:37:33.893135 #14573] TRACE -- : GFS: -m 500 \
      T, [2011-04-28T07:37:33.893334 #14573] TRACE -- : GFS: -no-reboot \
      T, [2011-04-28T07:37:33.893554 #14573] TRACE -- : GFS: -no-hpet \
      T, [2011-04-28T07:37:33.893742 #14573] TRACE -- : GFS: -device virtio-serial \
      T, [2011-04-28T07:37:33.893924 #14573] TRACE -- : GFS: -serial stdio \
      T, [2011-04-28T07:37:33.894119 #14573] TRACE -- : GFS: -chardev socket,path=/tmp/libguestfs7ofFDM/guestfsd.sock,id=channel0 \
      T, [2011-04-28T07:37:33.894334 #14573] TRACE -- : GFS: -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
      T, [2011-04-28T07:37:33.894504 #14573] TRACE -- : GFS: -netdev user,id=usernet,net=169.254.0.0/16 \
      T, [2011-04-28T07:37:33.894739 #14573] TRACE -- : GFS: -device virtio-net-pci,netdev=usernet \
      T, [2011-04-28T07:37:33.894922 #14573] TRACE -- : GFS: -kernel /tmp/.guestfs-0/kernel.7905 \
      T, [2011-04-28T07:37:33.895125 #14573] TRACE -- : GFS: -initrd /tmp/.guestfs-0/initrd.7905 \
      T, [2011-04-28T07:37:33.895343 #14573] TRACE -- : GFS: -append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=1 enforcing=0 guestfs_verbose=1 TERM=xterm-color noapic' \
      T, [2011-04-28T07:37:33.895597 #14573] TRACE -- : GFS: -drive file=/tmp/.guestfs-0/root.7905,snapshot=on,if=virtio,cache=unsafe
      T, [2011-04-28T07:37:33.900298 #14573] TRACE -- : GFS: libguestfs: accept_from_daemon: 0xf34760 g->state = 1
      T, [2011-04-28T07:37:33.933639 #14573] TRACE -- : GFS: KVM not supported for this target
      T, [2011-04-28T07:37:33.935418 #14573] TRACE -- : GFS: libguestfs: child_cleanup: 0xf34760: child process died
      F, [2011-04-28T07:37:33.937756 #7905] FATAL -- : Guestfs::Error: unexpected end of file when reading from daemon
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:35:in `launch'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:35:in `send'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:35:in `method_missing'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:56:in `redirect_streams'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:34:in `method_missing'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:195:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:129:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/helpers/image-helper.rb:128:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:83:in `build_with_appliance_creator'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb:44:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/plugins/base-plugin.rb:132:in `run'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/appliance.rb:105:in `execute_os_plugin'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/appliance.rb:79:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/lib/boxgrinder-build/appliance.rb:90:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.1/bin/boxgrinder-build:177
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19
      T, [2011-04-28T07:37:33.938683 #14573] TRACE -- : GFS: libguestfs: trace: launch = -1 (error)
      libguestfs: closing guestfs handle 0xf34760 (state 0)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                goldmann Marek Goldmann
                Reporter:
                goldmann Marek Goldmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: