3 Replies Latest reply on Feb 1, 2019 4:27 PM by 26cf863c-e7a6-4325-b5f0-b4c939771759

    Error while install solaris 10 zone under solaris 11

    User13400679-Oracle

      Hello,

       

      has any of you met with such error during branded zone installation on solaris11

       

      My solaris11 has such kernel:

      root@solaris-11:/# uname -a

      SunOS solaris-11 5.11 11.4.0.15.0 i86pc i386 i86pc

       

       

      root@solaris-11:/INSTALKI# ./solaris-10u11-x86.bin -p /zone_pool/my-zone -a 10.172.200.251 -i net0 -z marcin

       

             This is an Oracle VM Template for Oracle Solaris Zones.

      Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

       

       

      This software and related documentation are provided under a license

      agreement  containing  restrictions  on use  and  disclosure and are

      protected  by  intellectual  property  laws.   Except  as  expressly

      permitted in  your license agreement  or allowed by law, you may not

      use,  copy,   reproduce,   translate,  broadcast,  modify,  license,

      transmit,  distribute,  exhibit,  perform,  publish,  or display any

      part,   in  any  form,   or  by  any  means.   Reverse  engineering,

      disassembly,  or decompilation of this software,  unless required by

      law for interoperability, is prohibited.

       

       

      IMAGE:      ./solaris-10u11-x86.bin

      ZONE:       marcin

      ZONEPATH:   /zone_pool/my-zone/marcin

      VNIC:       net0

      IP ADDR:    10.152.200.251

      NETMASK:    255.255.255.0

      DEFROUTER:  10.152.200.1

      TIMEZONE:   Europe/Warsaw

       

      Checking disk-space for extraction

        Ok

       

      Extracting in /INSTALKI/bootimage.C2gKnb ...

      100% [===============================>]

       

      Checking data integrity

        Ok

       

      Checking platform compatibility

       

            The host  and  the image  do not have  the same Solaris release:

              host  Solaris release:   5.11

              image Solaris release:   5.10

       

            Will create a Solaris 10 branded zone.

       

      Checking disk-space for installation

        Ok

       

      Installing in /zone_pool/my-zone/marcin ...

      /usr/bin/which: no pigz in ((null))

      /usr/bin/which: no pigz in ((null))

      ./solaris-10u11-x86.bin[2656]: eval: -d: unknown option

      ./solaris-10u11-x86.bin[2656]: eval: -c: unknown option

      ./solaris-10u11-x86.bin[2656]: eval: --stdout: unknown option

      Usage: eval [ options ] [arg...]

      root@solaris-11:/INSTALKI#

       

      There is not much in google about that.

       

      Regards

       

      Marcin

        • 1. Re: Error while install solaris 10 zone under solaris 11
          934560

          same here but in 11.4 SPARC. Seems the vm template is not updated to 11.4. Can someone have a look at the installation script? Thx

           

          Regards,

          Chris

          • 2. Re: Error while install solaris 10 zone under solaris 11
            Nik

            Hi.

            Check and try install pigz - Parallel gzip.

             

            Regards,

            Nik

            • 3. Re: Error while install solaris 10 zone under solaris 11
              26cf863c-e7a6-4325-b5f0-b4c939771759

              Install pigz, and change in script this part:

               

              --------------------------------------------------------------------------------------------

              if /usr/bin/which pigz | /usr/bin/grep 'no' >/dev/null 2>&1 ; then

                 # pigz not found in PATH, let's use gzip

                 ctool='/usr/bin/gzip'

               

                 cmd="$ctool -d --stdout $diskImageFile | /usr/bin/cpio -idm"

               

                 if [[ ! -z $appMntPoint ]] ; then

                   pattern="'!root"$appMntPoint"*'"

                   cmd=$cmd" $pattern"

                 fi

                 cmd=$cmd' >/dev/null 2>&1 &'

               

                 eval $cmd

               

                 _job1=`/usr/bin/ps -a -o 'pid args' | \

                    /usr/bin/grep 'gzip' | \

                    /usr/bin/grep "$_tmpDir" | /usr/bin/awk '{print $1}'`

               

              else

               

                 # pigz found in PATH, let's use it

               

                 ctool=`/usr/bin/which pigz`

                 /usr/bin/mv $_tmpDir/disk-image $_tmpDir/disk-image.gz

                 diskImageFile=$_tmpDir/disk-image.gz

               

                 cmd="$ctool -d -c --stdout $diskImageFile | /usr/bin/cpio -idm"

               

                 if [[ ! -z $appMntPoint ]] ; then

                   pattern="'!root"$appMntPoint"*'"

                   cmd=$cmd" $pattern &"

                 fi

                 cmd=$cmd' >/dev/null 2>&1 &'

               

                 eval $cmd

               

                 #$ctool -d -c $_tmpDir/disk-image.gz | /usr/bin/cpio -idm >/dev/null 2>&1 &

                 _job1=`/usr/bin/ps -a -o 'pid args' | \

                    /usr/bin/grep 'pigz -d -c' |\

                    /usr/bin/grep $0 | /usr/bin/awk '{print $1}'`

              fi

              --------------------------------------------------------------------------------------------

               

              to this one:

              --------------------------------------------------------------------------------------------

                 ctool="/usr/bin/pigz"

                 /usr/bin/mv $_tmpDir/disk-image $_tmpDir/disk-image.gz

                 diskImageFile=$_tmpDir/disk-image.gz

               

                 cmd="$ctool -d -c --stdout $diskImageFile | /usr/bin/cpio -idm"

               

                 if [[ ! -z $appMntPoint ]] ; then

                   pattern="'!root"$appMntPoint"*'"

                   cmd=$cmd" $pattern &"

                 fi

                 cmd=$cmd' >/dev/null 2>&1 &'

               

                 eval $cmd

               

                 #$ctool -d -c $_tmpDir/disk-image.gz | /usr/bin/cpio -idm >/dev/null 2>&1 &

                 _job1=`/usr/bin/ps -a -o 'pid args' | \

                    /usr/bin/grep 'pigz -d -c' |\

                    /usr/bin/grep $0 | /usr/bin/awk '{print $1}'`

              --------------------------------------------------------------------------------------------