2 Replies Latest reply on Jun 8, 2011 1:34 PM by Javier Rocca

    Cannot build Fedora 14 with meta appliance for EC2 with EBS delivery

    Javier Rocca Newbie

      Hi,
      I've been trying BoxGrinder for the last two weeks as I need to create CentOS servers to run on Amazon EC2. I already tried with different Fedora and CentOS public AMIs with no success.
      Now I'm trying with an instance based on Fedora 14 BoxGrinder meta appliance and still getting errors about guestfs. BoxGrinder build was executed like this:
      # sudo boxgrinder-build jeos.appl -p ec2 -d ebs -b --debug
      Configuration files and logs are copied below. Can anyone please help me with this?
      Thank you in advance.

      Appliance definition file
      name: fedora-14
      summary: Base for EC2
      os:
        name: fedora
        version: 14
      hardware:
        partitions:
          "/":
            size: 8
            type: ext3
      packages:
        - @core

      .boxgrinder/config

      plugins:

        ebs:

          access_key: XXXXXXXXXXXXXXXXXXX

          secret_access_key: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

          account_number: ZZZZ-ZZZZ-ZZZZ

          delete_on_termination: false

       

      Boxgrinder log
      D, [2011-06-05T02:35:35.399150 #2496] DEBUG -- : Preparing guestfs...

      T, [2011-06-05T02:35:35.399331 #2496] TRACE -- : Setting libguestfs temporary directory to '/tmp'...

      T, [2011-06-05T02:35:35.449624 #2496] TRACE -- : We don't have event callbacks available Falling back to proxy.

      T, [2011-06-05T02:35:35.463669 #2496] TRACE -- : Setting debug + trace...

      T, [2011-06-05T02:35:35.464064 #2496] TRACE -- : Enabling SElinux support in guestfs...

      T, [2011-06-05T02:35:35.464173 #2496] TRACE -- : Checking if HW virtualization is available...

      T, [2011-06-05T02:35:35.464942 #8576] TRACE -- : GFS: set_append "noapic" = 0

      T, [2011-06-05T02:35:35.465201 #8576] TRACE -- : GFS: set_selinux true = 0

      T, [2011-06-05T02:35:35.731377 #2496] TRACE -- : HW acceleration not available.

      T, [2011-06-05T02:35:35.731667 #2496] TRACE -- : Setting QEMU wrapper to /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/qemu.wrapper...

      T, [2011-06-05T02:35:35.731800 #2496] TRACE -- : QEMU wrapper set.

      T, [2011-06-05T02:35:35.731882 #2496] TRACE -- : Adding drive 'build/appliances/x86_64/fedora/14/fedora-14/fedora-plugin/tmp/fedora-14-sda.raw'...

      T, [2011-06-05T02:35:35.732101 #8576] TRACE -- : GFS: set_qemu "/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/qemu.wrapper" = 0

      T, [2011-06-05T02:35:35.733477 #2496] TRACE -- : Drive added.

      D, [2011-06-05T02:35:35.733569 #2496] DEBUG -- : Enabling networking for GuestFS...

      D, [2011-06-05T02:35:35.733696 #2496] DEBUG -- : Launching guestfs...

      T, [2011-06-05T02:35:35.733847 #8576] TRACE -- : GFS: add_drive "build/appliances/x86_64/fedora/14/fedora-14/fedora-plugin/tmp/fedora-14-sda.raw" = 0

      T, [2011-06-05T02:35:35.733941 #8576] TRACE -- : GFS: set_network true = 0

      T, [2011-06-05T02:35:35.753213 #8576] TRACE -- : GFS: launch[00010ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib64/guestfs/supermin.d' x86_64

      T, [2011-06-05T02:35:35.815653 #8576] TRACE -- : GFS: supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)

      T, [2011-06-05T02:35:35.815892 #8576] TRACE -- : GFS: supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d

      T, [2011-06-05T02:35:35.817335 #8576] TRACE -- : GFS: checking modpath /lib/modules/2.6.35.13-91.fc14.x86_64 is a directory

      T, [2011-06-05T02:35:35.829514 #8576] TRACE -- : GFS: picked vmlinuz-2.6.35.13-91.fc14.x86_64 because modpath /lib/modules/2.6.35.13-91.fc14.x86_64 exists

      T, [2011-06-05T02:35:35.829635 #8576] TRACE -- : GFS: checking modpath /lib/modules/2.6.35.12-88.fc14.x86_64 is a directory

      T, [2011-06-05T02:35:35.829769 #8576] TRACE -- : GFS: picked vmlinuz-2.6.35.12-88.fc14.x86_64 because modpath /lib/modules/2.6.35.12-88.fc14.x86_64 exists

      T, [2011-06-05T02:35:35.829885 #8576] TRACE -- : GFS: supermin helper [00014ms] finished creating kernel

      T, [2011-06-05T02:35:35.830370 #8576] TRACE -- : GFS: supermin helper [00014ms] visiting /usr/lib64/guestfs/supermin.d

      T, [2011-06-05T02:35:35.831485 #8576] TRACE -- : GFS: supermin helper [00015ms] visiting /usr/lib64/guestfs/supermin.d/base.img

      T, [2011-06-05T02:35:35.834835 #8576] TRACE -- : GFS: supermin helper [00019ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img

      T, [2011-06-05T02:35:35.844445 #8576] TRACE -- : GFS: supermin helper [00028ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles

      T, [2011-06-05T02:35:36.266234 #8576] TRACE -- : GFS: supermin helper [00451ms] visiting /usr/lib64/guestfs/supermin.d/init.img

      T, [2011-06-05T02:35:36.754428 #8576] TRACE -- : GFS: supermin helper [00939ms] finished creating appliance

      T, [2011-06-05T02:35:36.770966 #8576] TRACE -- : GFS: [01025ms] begin testing qemu features

      T, [2011-06-05T02:35:37.324593 #8576] TRACE -- : GFS: [01582ms] finished testing qemu features

      T, [2011-06-05T02:35:37.342979 #8576] TRACE -- : GFS: [01600ms] /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/qemu.wrapper \

      T, [2011-06-05T02:35:37.343250 #8576] TRACE -- : GFS: -drive file=build/appliances/x86_64/fedora/14/fedora-14/fedora-plugin/tmp/fedora-14-sda.raw,cache=off,if=virtio \

      T, [2011-06-05T02:35:37.343391 #8576] TRACE -- : GFS: -nodefconfig \

      T, [2011-06-05T02:35:37.343519 #8576] TRACE -- : GFS: -enable-kvm \

      T, [2011-06-05T02:35:37.343647 #8576] TRACE -- : GFS: -nodefaults \

      T, [2011-06-05T02:35:37.343781 #8576] TRACE -- : GFS: -nographic \

      T, [2011-06-05T02:35:37.343952 #8576] TRACE -- : GFS: -m 500 \

      T, [2011-06-05T02:35:37.344080 #8576] TRACE -- : GFS: -no-reboot \

      T, [2011-06-05T02:35:37.344214 #8576] TRACE -- : GFS: -no-hpet \

      T, [2011-06-05T02:35:37.344379 #8576] TRACE -- : GFS: -device virtio-serial \

      T, [2011-06-05T02:35:37.344538 #8576] TRACE -- : GFS: -serial stdio \

      T, [2011-06-05T02:35:37.344698 #8576] TRACE -- : GFS: -chardev socket,path=/tmp/libguestfsBU4yiM/guestfsd.sock,id=channel0 \

      T, [2011-06-05T02:35:37.344864 #8576] TRACE -- : GFS: -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \

      T, [2011-06-05T02:35:37.345199 #8576] TRACE -- : GFS: -netdev user,id=usernet,net=169.254.0.0/16 \

      T, [2011-06-05T02:35:37.345529 #8576] TRACE -- : GFS: -device virtio-net-pci,netdev=usernet \

      T, [2011-06-05T02:35:37.345703 #8576] TRACE -- : GFS: -kernel /tmp/.guestfs-0/kernel.2496 \

      T, [2011-06-05T02:35:37.345870 #8576] TRACE -- : GFS: -initrd /tmp/.guestfs-0/initrd.2496 \

      T, [2011-06-05T02:35:37.346105 #8576] 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 noapic' \

      T, [2011-06-05T02:35:37.351270 #8576] TRACE -- : GFS: -drive file=/tmp/.guestfs-0/root.2496,snapshot=on,if=virtio,cache=unsafe

      T, [2011-06-05T02:35:37.353466 #8576] TRACE -- : GFS: accept_from_daemon: 0x3105ba0 g->state = 1

      T, [2011-06-05T02:35:37.388290 #8576] TRACE -- : GFS: recv_from_daemon: 0x3105ba0 g->state = 1, size_rtn = 0x7fff1ab6c6ec, buf_rtn = 0x7fff1ab6c6b0

      T, [2011-06-05T02:35:37.406280 #8576] TRACE -- : GFS: Failed to allocate 524288000 B: Unknown error 18446744073709551615

      T, [2011-06-05T02:35:37.408196 #8576] TRACE -- : GFS: child_cleanup: 0x3105ba0: child process died

      F, [2011-06-05T02:35:37.413522 #2496] FATAL -- : Guestfs::Error: unexpected end of file when reading from daemon

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:184:in `launch'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:184:in `execute'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:167:in `customize'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:162:in `prepare_guestfs'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:98:in `log_hack'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:166:in `customize'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/helpers/image-helper.rb:128:in `customize'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:106:in `build_with_appliance_creator'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb:44:in `execute'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/base-plugin.rb:132:in `run'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/appliance.rb:105:in `execute_os_plugin'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/appliance.rb:79:in `execute_plugin_chain'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/appliance.rb:90:in `create'

      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/bin/boxgrinder-build:177

      /usr/bin/boxgrinder-build:19:in `load'

      /usr/bin/boxgrinder-build:19

      T, [2011-06-05T02:35:37.414198 #8576] TRACE -- : GFS: = -1 (error)