0 Replies Latest reply on Mar 25, 2013 6:43 PM by tnorth

    Error Creating RHEL 6.2 Image

    tnorth

      Hi everyone,

      I cant seem to make a rhel image from my local repository ( I have the isos mounted) and I keep getting the same error. Info found below, any help would be greatly appreciated.

      Thanks

      Tyler

       

      Version:

      [tyler@hp rhel]$ boxgrinder-build --version

      BoxGrinder Build 0.10.4

       

      Appliance file:rhel-6-x86_64.appl

      name: rhel-64bit

      os:

          name: rhel

          version: 6

          password: password

      hardware:

        partitions:

          "/":

            size: 10

      default_repos: false

      repos:

        - name: "local-repo"

          baseurl: "file:///opt/rhel64"

          ephemeral: true

      post:

        base:

          - "sed -i 's/ro /ro console=ttyS0 /g' /boot/grub/grub.conf "

       

       

      OUTPUT:

      [root@hp boxgrinder]# boxgrinder-build appliances/rhel-6-x86_64.appl --os-config format:qcow2

      I, [2013-03-25T15:22:33.545757 #6061]  INFO -- : Validating appliance definition from appliances/rhel-6-x86_64.appl file...

      I, [2013-03-25T15:22:33.548319 #6061]  INFO -- : Appliance definition is valid.

      I, [2013-03-25T15:22:33.554954 #6061]  INFO -- : Building 'rhel-64bit' appliance for x86_64 architecture.

      I, [2013-03-25T15:22:33.578324 #6061]  INFO -- : Resolving packages added to rhel-64bit appliance definition file...

      I, [2013-03-25T15:22:36.795497 #6061]  INFO -- : All additional packages for rhel-64bit appliance successfully resolved.

      I, [2013-03-25T15:22:36.795889 #6061]  INFO -- : Building rhel-64bit appliance...

      supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)

      supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d

      checking modpath /lib/modules/3.7.9-101.fc17.x86_64 is a directory

      picked vmlinuz-3.7.9-101.fc17.x86_64 because modpath /lib/modules/3.7.9-101.fc17.x86_64 exists

      checking modpath /lib/modules/3.7.9-104.fc17.x86_64 is a directory

      picked vmlinuz-3.7.9-104.fc17.x86_64 because modpath /lib/modules/3.7.9-104.fc17.x86_64 exists

      checking modpath /lib/modules/3.8.3-103.fc17.x86_64 is a directory

      picked vmlinuz-3.8.3-103.fc17.x86_64 because modpath /lib/modules/3.8.3-103.fc17.x86_64 exists

      supermin helper [00059ms] finished creating kernel

      supermin helper [00059ms] visiting /usr/lib64/guestfs/supermin.d

      supermin helper [00060ms] visiting /usr/lib64/guestfs/supermin.d/base.img

      supermin helper [00073ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img

      supermin helper [00096ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles

      supermin helper [01082ms] visiting /usr/lib64/guestfs/supermin.d/init.img

      supermin helper [01089ms] adding kernel modules

      supermin helper [01254ms] finished creating appliance

      supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = /tmp/guestfs.QleRzT/kernel, initrd = /tmp/guestfs.QleRzT/initrd, appliance = /tmp/guestfs.QleRzT/root

      supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d

      checking modpath /lib/modules/3.7.9-101.fc17.x86_64 is a directory

      picked vmlinuz-3.7.9-101.fc17.x86_64 because modpath /lib/modules/3.7.9-101.fc17.x86_64 exists

      checking modpath /lib/modules/3.7.9-104.fc17.x86_64 is a directory

      picked vmlinuz-3.7.9-104.fc17.x86_64 because modpath /lib/modules/3.7.9-104.fc17.x86_64 exists

      checking modpath /lib/modules/3.8.3-103.fc17.x86_64 is a directory

      picked vmlinuz-3.8.3-103.fc17.x86_64 because modpath /lib/modules/3.8.3-103.fc17.x86_64 exists

      supermin helper [00000ms] finished creating kernel

      supermin helper [02386ms] finished mke2fs

      supermin helper [02387ms] visiting /usr/lib64/guestfs/supermin.d

      supermin helper [02387ms] visiting /usr/lib64/guestfs/supermin.d/base.img

      supermin helper [05417ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img

      supermin helper [05506ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles

      supermin helper [22704ms] visiting /usr/lib64/guestfs/supermin.d/init.img

      supermin helper [22705ms] adding kernel modules

      supermin helper [45770ms] closing ext2 filesystem

      supermin helper [45770ms] finished creating appliance

      F, [2013-03-25T15:27:44.558423 #6061] FATAL -- : Guestfs::Error: aug_get: no matching node

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:219:in `aug_get'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:219:in `load_selinux_policy'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:202:in `execute'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:174:in `block in customize'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `block (2 levels) in initialize_guestfs'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:169:in `prepare_guestfs'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `block in initialize_guestfs'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:77:in `log_callback'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/guestfs-helper.rb:173:in `customize'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/helpers/image-helper.rb:129:in `customize'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:76:in `build_with_appliance_creator'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:33:in `build_rhel'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:57:in `execute'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:129:in `block in execute_plugin_chain'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `each'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:164:in `create'

      /usr/share/gems/gems/boxgrinder-build-0.10.4/bin/boxgrinder-build:203:in `<top (required)>'

      /bin/boxgrinder-build:23:in `load'

      /bin/boxgrinder-build:23:in `<main>'