0 Replies Latest reply on May 23, 2013 4:10 AM by groentebroer

    Receiving GuestFS error: Guestfs::Error: sh: /bin/sh: yum: command not found when creating Centos5 applicance

    groentebroer Newbie

      Hi All,


      When building my CentOS5 appliance which worked before, I now get the following error which I am not able to solve.

      Does this have to do anything with configuring a path or something?

       

      Below the log from the error I get. It would be great if someone could help me out.

       

       

      D, [2013-05-22T16:46:32.193359 #15716] DEBUG -- : GFS: sh "yum -y remove kernel"
      T, [2013-05-22T16:46:32.196592 #15716] TRACE -- : GFS: guestfsd: main_loop: proc 66 (upload) took 0.07 seconds
      guestfsd: main_loop: new request, l
      T, [2013-05-22T16:46:32.197917 #15716] TRACE -- : GFS: en 0x40
      T, [2013-05-22T16:46:32.207709 #15716] TRACE -- : GFS: mount --bind /dev /sysroot/dev
      T, [2013-05-22T16:46:32.591259 #15716] TRACE -- : GFS: mount --bind /dev/pts /sysroot/dev/pts
      T, [2013-05-22T16:46:32.983534 #15716] TRACE -- : GFS: mount --bind /proc /sysroot/proc
      T, [2013-05-22T16:46:33.379745 #15716] TRACE -- : GFS: mount --bind /selinux /sysroot/selinux
      T, [2013-05-22T16:46:33.775269 #15716] TRACE -- : GFS: mount --bind /sys /sysroot/sys
      T, [2013-05-22T16:46:33.978818 #15716] TRACE -- : GFS: /bin/sh -c yum -y remove kernel
      T, [2013-05-22T16:46:34.275895 #15716] TRACE -- : GFS: /bin/sh: yum: command not found
      T, [2013-05-22T16:46:34.282902 #15716] TRACE -- : GFS: umount /sysroot/sys
      T, [2013-05-22T16:46:34.461508 #15716] TRACE -- : GFS: umount /sysroot/selinux
      T, [2013-05-22T16:46:34.642291 #15716] TRACE -- : GFS: umount /sysroot/proc
      T, [2013-05-22T16:46:34.818127 #15716] TRACE -- : GFS: umount /sysroot/dev/pts
      T, [2013-05-22T16:46:34.995890 #15716] TRACE -- : GFS: umount /sysroot/dev
      T, [2013-05-22T16:46:35.178363 #15716] TRACE -- : GFS: guestfsd: error: /bin/sh: yum: command not found
      D, [2013-05-22T16:46:35.179187 #15716] DEBUG -- : GFS: sh = NULL (error)
      F, [2013-05-22T16:46:35.180051 #15716] FATAL -- : Guestfs::Error: sh: /bin/sh: yum: command not found
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb:53:in `sh'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb:53:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/image-helper.rb:130:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:176:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:169:in `prepare_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:77:in `log_callback'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/guestfs-helper.rb:173:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/helpers/image-helper.rb:129:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb:43:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/appliance.rb:129:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/appliance.rb:125:in `each'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/lib/boxgrinder-build/appliance.rb:164:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.2/bin/boxgrinder-build:203
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19
      
      

       

      Kind regards,

      Groentebroer