6 Replies Latest reply on May 1, 2013 5:51 PM by Akbar Aziz

    Linux provisioning with Gentoo image

      Hi,

       

      I`m trying to get my HW provisioning to work. Currently, I`m doing this in my test lab in virtual environment, if it matters.

       

      So, I`m trying to create Gentoo linux image file, as per documentation

       

      And here it fails:

       

      [root@bsa01 linux]# pwd

      /tmp/bmc_bl/provisioning/linux

      [root@bsa01 linux]# /bin/sh mkgen2img.sh /tmp/bmc_bl/provisioning/linux/amd64/bmi64 /tmp/bmc_bl/install-amd64-minimal-20130207.iso /tftproot/X86PC/pxelinux

      /lib32

      Bladelogic : Wiring gentoo with bladelogic

      Bladelogic : gentoo image : extracting gentoo image

       

       

      zcat: /tftproot/X86PC/pxelinux/gentoo.igz: not in gzip format

      ERROR: Cannot extract gentoo initrd to /tftproot/X86PC/pxelinux/blJdEje4718

       

      Debugging the script reveals that it tries to zcat the .igz image:

       

      + mount -t iso9660 -o loop /tmp/bmc_bl/install-amd64-minimal-20130207.iso /tmp/blLlZbj4775

      + cp /tmp/blLlZbj4775/isolinux/gentoo.igz /tftproot/X86PC/pxelinux

      ++ mktemp /tftproot/X86PC/pxelinux/blXXXXXXXXX

      + TMPFILE=/tftproot/X86PC/pxelinux/blATJpn4780

      + '[' 0 -ne 0 ']'

      + echo 'Bladelogic : Wiring gentoo with bladelogic'

      Bladelogic : Wiring gentoo with bladelogic

      + echo 'Bladelogic : gentoo image : extracting gentoo image'

      Bladelogic : gentoo image : extracting gentoo image

      + zcat /tftproot/X86PC/pxelinux/gentoo.igz

       

       

      zcat: /tftproot/X86PC/pxelinux/gentoo.igz: not in gzip format

       

       

      So, zcat can`t do anything on .igz file, seems like it`s in lzma format, as per gentoo forums.

       

      Anyway, path mentioned in docs is not working as it should.

       

      Maybe, I`m missing something? Any advice?

       

      Thanks!

        • 1. Re: Linux provisioning with Gentoo image
          Bill Robinson

          Replace the 'zcat' w/ 'xzcat' in the script.

           

          Why are you creating the gentoo image?  do you need to run something in the 'pre-install' section of the system package for linux?

           

          if you already have a winpe image and your drivers work w/ the hardware you are using, you should use that for the auto-discovery. 

           

          unless you need gentoo for auto-discovery, there's no reason to use it.

          1 of 1 people found this helpful
          • 2. Re: Linux provisioning with Gentoo image

            Hi Bill,

             

            Nope, I don`t have any prereqs for the pre-install section. Just following the path mentioned in the docs for the provisioning.

             

            Thanks for pointing in right direction.

             

            Regards,

            Nick

            • 3. Re: Linux provisioning with Gentoo image
              Bill Robinson

              If you are only provisioning Linux then you should use a gentoo image for the auto-registration.  If you are provisioning Windows and Linux yoiu can only have one default boot image per architecture.  So I typically go w/ WinPE and when I provision a Linux target I use the 'skip linux pre-install' boot image which boots the target direct to kickstart.

               

              the other reason (in theory) to use the gentoo image is to do the pre-install actions which typically are RAID and BIOS configuration.  That usually requires vendor tools which won't run under gentoo.  In that case i've been able to inject bmi into the vendor boot images and use that  as the boot image for the pre-install.

               

              the issue you've run into above is due to gentoo changing their image format and our scripts not being updated. 

              1 of 1 people found this helpful
              • 4. Re: Linux provisioning with Gentoo image

                Hi Bill,

                 

                I am facing the exact same problem with gentoo image creation.

                I tried changing zcat with xzcat as you recomended. but i am getting this error.

                Please let me know how to proceed on this

                 

                Earlier:

                 

                [root@localhost linux]# ./mkgen2img.sh /tmp/BMC_BL/provisioning/linux/x86/bmi32 /tmp/BMC_BL/install-x86-minimal-20121213.iso /tmp/BMC_BL/outfile

                /lib

                Bladelogic : Wiring gentoo with bladelogic

                Bladelogic : gentoo image : extracting gentoo image

                 

                zcat: /tmp/BMC_BL/outfile/gentoo.igz: not in gzip format

                ERROR: Cannot extract gentoo initrd to /tmp/BMC_BL/outfile/bluEtU11454

                 

                 

                After changing to xzcat:

                 

                [root@localhost linux]# sh mkgen2img.sh /tmp/BMC_BL/provisioning/linux/x86/bmi32 /tmp/BMC_BL/install-x86-minimal-20121213.iso /tmp/BMC_BL/outfile

                /lib

                Bladelogic : Wiring gentoo with bladelogic

                Bladelogic : gentoo image : extracting gentoo image

                mkgen2img.sh: line 145: xzcat: command not found

                ERROR: Cannot extract gentoo initrd to /tmp/BMC_BL/outfile/blwGvw22248

                • 5. Re: Linux provisioning with Gentoo image
                  Bill Robinson

                  xzcat is part of the lzma or 'xz' tools - i suggest you run a 'yum search xzcat' or 'yum whatprovides xzcat' or something like that and install the appropriate rpm.

                   

                  or use an older version of the gentoo image - eg a 2012 image.

                  • 6. Re: Linux provisioning with Gentoo image
                    Akbar Aziz

                    you can download my gentoo files from here

                     

                    ftp://ftp.bmc.com/pub/akbar