2 Replies Latest reply on Nov 15, 2011 1:46 PM by wcmortimore

    Accessing rpmfusion free and nonfree repositories

    wcmortimore

      I need to boxgrind with several packages that are not part of the normal fedora distribution - rather they are part of the free and nonfree repositories.

       

      Following Fedora's instructions, I installed the rpms on my local boxgrinder as follows:

       

      sudo rpm –ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

       

      sudo rpm -ivh

      http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

       

      I then copied these to a convenient directory, and following the instructions in the boxgrinder tutorials, I used createrepo to create a local repository.

       

       

      Here is the directory of my newly created local repository:

       

      ls /appliances/local_repo

      repodata                                  rpmfusion-nonfree-release-stable.noarch.rpm

      rpmfusion-free-release-stable.noarch.rpm

       

       

      I then referred to this local repository in my appliance definition file:

       

      name: f14-AudioConverter
      summary: Just Enough Operating System based on Fedora 14 plus packages for kiAudioConverter
      os:
        name: fedora
        version: 14
      hardware:
        partitions:
          "/":
            size: 2
          "/SpeechMagic":
            size: 1
      appliances:
       - f14-base
      packages:
       - gcc
       - yasm
       - make
       - libtool
       - libtool-ltdl-devel
       - sox-devel
       - ffmpeg
       - ffmpeg-libs
       - ffmpeg-devel
       - faac
       - faac-devel
       - libmad0
       - libmad-devel
       - sshfp
      default_repos: true
      repos:
       - name: "local_repo"
         baseurl: "file:///appliances/local_repo"
      

       

      I then ran boxgrinder-build as follows.

       

      [root@ip-10-112-58-253 appliances]# boxgrinder-build f14-audioconverter.appl -p ec2 -d ebs -b --debug
      D, [2011-11-15T16:35:57.510542 #10742] DEBUG -- : Launching new build...
      D, [2011-11-15T16:35:57.513396 #10742] DEBUG -- : Loading os plugins...
      D, [2011-11-15T16:35:57.513579 #10742] DEBUG -- : We have 4 os plugin(s) registered
      D, [2011-11-15T16:35:57.513699 #10742] DEBUG -- : - fedora plugin for Fedora.
      D, [2011-11-15T16:35:57.513812 #10742] DEBUG -- : - centos plugin for CentOS.
      D, [2011-11-15T16:35:57.514056 #10742] DEBUG -- : - rhel plugin for Red Hat Enterprise Linux.
      D, [2011-11-15T16:35:57.514170 #10742] DEBUG -- : - sl plugin for Scientific Linux.
      D, [2011-11-15T16:35:57.514277 #10742] DEBUG -- : Plugins loaded.
      D, [2011-11-15T16:35:57.514387 #10742] DEBUG -- : Loading platform plugins...
      D, [2011-11-15T16:35:57.514496 #10742] DEBUG -- : We have 3 platform plugin(s) registered
      D, [2011-11-15T16:35:57.514609 #10742] DEBUG -- : - vmware plugin for VMware.
      D, [2011-11-15T16:35:57.514720 #10742] DEBUG -- : - virtualbox plugin for VirtualBox.
      D, [2011-11-15T16:35:57.514830 #10742] DEBUG -- : - ec2 plugin for Amazon Elastic Compute Cloud (Amazon EC2).
      D, [2011-11-15T16:35:57.515065 #10742] DEBUG -- : Plugins loaded.
      D, [2011-11-15T16:35:57.515177 #10742] DEBUG -- : Loading delivery plugins...
      D, [2011-11-15T16:35:57.515287 #10742] DEBUG -- : We have 7 delivery plugin(s) registered
      D, [2011-11-15T16:35:57.515400 #10742] DEBUG -- : - elastichosts plugin for ElasticHosts.
      D, [2011-11-15T16:35:57.515513 #10742] DEBUG -- : - ami plugin for Amazon Simple Storage Service (Amazon S3).
      D, [2011-11-15T16:35:57.515625 #10742] DEBUG -- : - cloudfront plugin for Amazon Simple Storage Service (Amazon S3).
      D, [2011-11-15T16:35:57.515737 #10742] DEBUG -- : - local plugin for Local file system.
      D, [2011-11-15T16:35:57.515847 #10742] DEBUG -- : - ebs plugin for Elastic Block Storage.
      D, [2011-11-15T16:35:57.516084 #10742] DEBUG -- : - sftp plugin for SSH File Transfer Protocol.
      D, [2011-11-15T16:35:57.516197 #10742] DEBUG -- : - s3 plugin for Amazon Simple Storage Service (Amazon S3).
      D, [2011-11-15T16:35:57.516304 #10742] DEBUG -- : Plugins loaded.
      I, [2011-11-15T16:35:57.518067 #10742]  INFO -- : Validating appliance definition from f14-audioconverter.appl file...
      I, [2011-11-15T16:35:57.524452 #10742]  INFO -- : Appliance definition is valid.
      D, [2011-11-15T16:35:57.524680 #10742] DEBUG -- : Adding packages to appliance...
      D, [2011-11-15T16:35:57.524795 #10742] DEBUG -- : 14 package(s) added to appliance.
      I, [2011-11-15T16:35:57.526574 #10742]  INFO -- : Validating appliance definition from ./f14-base.appl file...
      I, [2011-11-15T16:35:57.531485 #10742]  INFO -- : Appliance definition is valid.
      D, [2011-11-15T16:35:57.531684 #10742] DEBUG -- : Adding packages to appliance...
      D, [2011-11-15T16:35:57.531797 #10742] DEBUG -- : 11 package(s) added to appliance.
      I, [2011-11-15T16:35:57.557017 #10742]  INFO -- : Building 'f14-AudioConverter' appliance for i686 architecture.
      D, [2011-11-15T16:35:57.557286 #10742] DEBUG -- : Executing os plugin...
      I, [2011-11-15T16:35:57.576404 #10742]  INFO -- : Resolving packages added to f14-AudioConverter appliance definition file...
      D, [2011-11-15T16:35:57.576821 #10742] DEBUG -- : Querying package database...
      D, [2011-11-15T16:35:57.577193 #10742] DEBUG -- : Executing command: 'repoquery --quiet --disablerepo=* --enablerepo=boxgrinder-local_repo,boxgrinder-updates,boxgrinder-base -c 'build/appliances/i686/fedora/14/f14-AudioConverter/1.0/fedora-plugin/tmp/yum.conf' list available httpd mod_ssl samba php php-pecl-apc php-mcrypt php-bcmath php-pecl-xdebug php-mbstring sox gcc yasm make libtool libtool-ltdl-devel sox-devel ffmpeg ffmpeg-libs ffmpeg-devel faac faac-devel libmad0 libmad-devel sshfp system-config-firewall-base dhclient kernel-PAE --nevra --archlist=i386,i486,i586,i686,noarch'
      D, [2011-11-15T16:36:12.195666 #10742] DEBUG -- : dhclient-12:4.2.0-23.P2.fc14.i686
      D, [2011-11-15T16:36:12.196236 #10742] DEBUG -- : gcc-0:4.5.1-4.fc14.i686
      D, [2011-11-15T16:36:12.196424 #10742] DEBUG -- : httpd-0:2.2.17-1.fc14.i686
      D, [2011-11-15T16:36:12.196597 #10742] DEBUG -- : kernel-PAE-0:2.6.35.14-103.fc14.i686
      D, [2011-11-15T16:36:12.196772 #10742] DEBUG -- : libtool-0:2.2.10-3.fc14.i686
      D, [2011-11-15T16:36:12.197055 #10742] DEBUG -- : libtool-ltdl-devel-0:2.2.10-3.fc14.i686
      D, [2011-11-15T16:36:12.197503 #10742] DEBUG -- : make-1:3.82-3.fc14.i686
      D, [2011-11-15T16:36:12.197704 #10742] DEBUG -- : mod_ssl-1:2.2.17-1.fc14.i686
      D, [2011-11-15T16:36:12.198097 #10742] DEBUG -- : php-0:5.3.8-3.fc14.i686
      D, [2011-11-15T16:36:12.198258 #10742] DEBUG -- : php-bcmath-0:5.3.8-3.fc14.i686
      D, [2011-11-15T16:36:12.198408 #10742] DEBUG -- : php-mbstring-0:5.3.8-3.fc14.i686
      D, [2011-11-15T16:36:12.198558 #10742] DEBUG -- : php-mcrypt-0:5.3.8-3.fc14.i686
      D, [2011-11-15T16:36:12.198687 #10742] DEBUG -- : php-pecl-apc-0:3.1.9-1.fc14.i686
      D, [2011-11-15T16:36:12.198842 #10742] DEBUG -- : php-pecl-xdebug-0:2.1.2-1.fc14.i686
      D, [2011-11-15T16:36:12.200597 #10742] DEBUG -- : samba-0:3.5.11-79.fc14.i686
      D, [2011-11-15T16:36:12.200746 #10742] DEBUG -- : sox-0:14.3.2-1.fc14.i686
      D, [2011-11-15T16:36:12.201055 #10742] DEBUG -- : sox-devel-0:14.3.2-1.fc14.i686
      D, [2011-11-15T16:36:12.201198 #10742] DEBUG -- : sshfp-0:1.1.3-4.fc12.noarch
      D, [2011-11-15T16:36:12.201401 #10742] DEBUG -- : system-config-firewall-base-0:1.2.27-2.fc14.noarch
      D, [2011-11-15T16:36:12.201554 #10742] DEBUG -- : yasm-0:1.0.1-1.fc14.i686
      F, [2011-11-15T16:36:12.232710 #10742] FATAL -- : RuntimeError: Packages ffmpeg, ffmpeg-libs, ffmpeg-devel, faac, faac-devel, libmad0, libmad-devel for f14-AudioConverter appliance not found in repositories. Please check package names in appliance definition file.
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/plugins/os/rpm-based/rpm-dependency-validator.rb:62:in `resolve_packages'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:124:in `build_with_appliance_creator'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb:45:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/plugins/base-plugin.rb:194:in `run'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/appliance.rb:141:in `execute_plugin'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/appliance.rb:105:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/appliance.rb:105:in `each'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/appliance.rb:105:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/appliance.rb:120:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/bin/boxgrinder-build:177
      /usr/bin/boxgrinder-build:19:in `load'
      

       

      What am I missing here?

       

       

      Thanks in advance for help!

       

      Message was edited by: Marek Goldmann

        • 1. Re: Accessing Fedora free and nonfree repositories
          goldmann

          William,

           

          You don't need to install anything on the host. You can make things way easier, jsut specify the correct repository paths, like this:

           

          name: f14-AudioConverter
          summary: Just Enough Operating System based on Fedora 14 plus packages for kiAudioConverter
          os:
            name: fedora
            version: 14
          hardware:
            partitions:
              "/":
                size: 2
              "/SpeechMagic":
                size: 1
          appliances:
           - f14-base
          packages:
           - gcc
           - yasm
           - make
           - libtool
           - libtool-ltdl-devel
           - sox-devel
           - ffmpeg
           - ffmpeg-libs
           - ffmpeg-devel
           - faac
           - faac-devel
           - libmad0
           - libmad-devel
           - sshfp
          repos:
           - name: "rpmfusion-free"
             mirrorlist: "http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-#OS_VERSION#&arch=#BASE_ARCH#"
           - name: "rpmfusion-free-updates"
             mirrorlist: "http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-#OS_VERSION#&arch=#BASE_ARCH#"
           - name: "rpmfusion-nonfree"
             mirrorlist: "http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-#OS_VERSION#&arch=#BASE_ARCH#"
           - name: "rpmfusion-nonfree-updates"
             mirrorlist: "http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-#OS_VERSION#&arch=#BASE_ARCH#"
          
          • 2. Re: Accessing rpmfusion free and nonfree repositories
            wcmortimore

            Thanks for the prompt, accurate help. This tool is great!