1 Reply Latest reply on Dec 1, 2012 5:29 PM by seandarcy

    i386 ec2 build on x86_64 installs x86_64 kernel

    seandarcy

      I'm trying to build an i386 ec2 image on fedora 17 x86_64. It's not going well. The x86_64 kernel is installed.

       

      Maybe the problem in that the arch is not passed to supermin in host_cpu??

       

      .appl:

       

      name: f17-i386

      summary: Just Enough Operating System based on Fedora 17

      os:

         name: fedora

         version: 17

      hardware:

         partitions:     "/":

             size: 2

      default_repos: false # default is true

      repos:

         - name: "fedora"

           mirrorlist: "http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-17&arch=i386"

         - name: "fedora-17-updates"

           mirrorlist: "http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f17&arch=i386"

      packages:

         - @core

         - kernel-PAE

       

      I've set default_repos to false, since I only want the i386 repos.

       

      But when I create the appliance, boxgrinder/supermin installs the x86_64 kernel and modules:

       

      setarch i386 boxgrinder-build f17-i386.appl -p ec2 -d local --force

       

      I, [2012-12-01T12:06:12.252790 #908]  INFO -- : Validating appliance definition from f17-i386.appl file...

      I, [2012-12-01T12:06:12.254478 #908]  INFO -- : Appliance definition is valid.

      I, [2012-12-01T12:06:12.265459 #908]  INFO -- : Removing previous builds for f17-i386 appliance...

      I, [2012-12-01T12:06:13.004962 #908]  INFO -- : Building 'f17-i386' appliance for i686 architecture.

      I, [2012-12-01T12:06:13.007786 #908]  INFO -- : Resolving packages added to f17-i386 appliance definition file...

      I, [2012-12-01T12:06:43.788282 #908]  INFO -- : All additional packages for f17-i386 appliance successfully resolved.

      I, [2012-12-01T12:06:43.788584 #908]  INFO -- : Building f17-i386 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.6.8-2.fc17.x86_64 is a directory

      picked vmlinuz-3.6.8-2.fc17.x86_64 because modpath /lib/modules/3.6.8-2.fc17.x86_64 exists

      checking modpath /lib/modules/3.6.6-1.fc17.x86_64 is a directory

      picked vmlinuz-3.6.6-1.fc17.x86_64 because modpath /lib/modules/3.6.6-1.fc17.x86_64 exists

      checking modpath /lib/modules/3.6.7-4.fc17.x86_64 is a directory

      picked vmlinuz-3.6.7-4.fc17.x86_64 because modpath /lib/modules/3.6.7-4.fc17.x86_64 exists

      supermin helper [00000ms] finished creating kernel

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

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

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

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

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

      supermin helper [00044ms] adding kernel modules

      supermin helper [00138ms] finished creating appliance

      supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = /tmp/guestfs.AhEqbp/kernel, initrd = /tmp/guestfs.AhEqbp/initrd, appliance = /tmp/guestfs.AhEqbp/root supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d

      checking modpath /lib/modules/3.6.8-2.fc17.x86_64 is a directory

      picked vmlinuz-3.6.8-2.fc17.x86_64 because modpath /lib/modules/3.6.8-2.fc17.x86_64 exists

      checking modpath /lib/modules/3.6.6-1.fc17.x86_64 is a directory

      picked vmlinuz-3.6.6-1.fc17.x86_64 because modpath /lib/modules/3.6.6-1.fc17.x86_64 exists

      checking modpath /lib/modules/3.6.7-4.fc17.x86_64 is a directory

      picked vmlinuz-3.6.7-4.fc17.x86_64 because modpath /lib/modules/3.6.7-4.fc17.x86_64 exists

      supermin helper [00000ms] finished creating kernel

       

      sean