3 Replies Latest reply on Nov 18, 2014 11:55 AM by LucD

    Something Wrong with create a customized ESXi Installer Image online depot (help!!)

    ddkxiaobai Lurker

      hello everyone

      I study create a customized ESXi intertaller Image  for two weeks ago

      I fall in some trubles

       

      here is my method :

       

      1. install the PowerCLi5.5 

       

      Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

      Depot Url

      ---------

      https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

       

      PowerCLI D:\Program Files\VMware\Infrastructure\vSphere PowerCLI>Get-EsxImageProfile

      Get-EsxImageProfile : 参数“name”不能是空字符串。

      参数名: name

      At line:1 char:20

      + Get-EsxImageProfile <<<<

          + CategoryInfo          : NotSpecified: (:) [Get-EsxImageProfile], Argumen

         tException

          + FullyQualifiedErrorId : System.ArgumentException,VMware.ImageBuilder.Com

         mands.GetProfiles

       

       

      PowerCLI D:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-EsxImageProfile -name "ESXi 5.5*"

      Get-EsxImageProfile : Cannot convert length string (PkgVibPa) to a number

      At line:1 char:20

      + Get-EsxImageProfile <<<<  -name "ESXi 5.5*"

          + CategoryInfo          : NotSpecified: (:) [Get-EsxImageProfile], Protoco

         lViolationException

          + FullyQualifiedErrorId : System.Net.ProtocolViolationException,VMware.Ima

         geBuilder.Commands.GetProfiles

       

      PowerCLI D:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-EsxSoftwarePackage

      Get-EsxSoftwarePackage : Cannot convert length string (-1.0</ve) to a number

      At line:1 char:23

      + Get-EsxSoftwarePackage <<<<

          + CategoryInfo          : NotSpecified: (:) [Get-EsxSoftwarePackage], Prot

         ocolViolationException

          + FullyQualifiedErrorId : System.Net.ProtocolViolationException,VMware.Ima

         geBuilder.Commands.GetPackages

       

       

       

      i just want to know how many version of the online Depot  and home many softpackages support

       

      why the command were errors ?  my PowerCLI version is 5.5 Release 1

       

      please help me !   thanks

        • 1. Re: Something Wrong with create a customized ESXi Installer Image online depot (help!!)
          LucD Guru
          Community WarriorsUser ModeratorsvExpert

          Which locale are you using ?

          Can you do a

           

          Get-Culture


          If you are currently not using EN-US (or EN-GB), can you try setting the culture to one of these ?

           

           

          • 2. Re: Something Wrong with create a customized ESXi Installer Image online depot (help!!)
            ddkxiaobai Lurker

            OK  let me show you something

            my locate is china zh-cn  with XP

            so , i install a english version with WIN7 on a vitural host

            1.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> get-culture

            LCID             Name             DisplayName
            ----             ----             -----------
            1033             en-US            English (United States)


            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            2.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depohttps://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xmlt-index.xml

            Depot Url
            ---------
            https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml


            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            3.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-EsxSoftwarePackage | more

            Name                     Version                        Vendor     Creation Dat
                                                                               e
            ----                     -------                        ------     ------------
            esx-base                 5.5.0-0.14.1598313             VMware     2/11/2014...
            esx-base                 5.0.0-1.18.768111              VMware     6/29/2012...
            scsi-megaraid-sas        5.34-4vmw.510.0.0.799733       VMware     8/2/2012 ...
            ipmi-ipmi-si-drv         39.1-4vmw.500.2.26.914586      VMware     11/18/201...
            net-igb                  2.1.11.1-4vmw.550.0.0.1331820  VMware     9/19/2013...
            net-e1000e               1.1.2-3vmw.500.0.0.469512      VMware     8/19/2011...
            esx-base                 5.1.0-2.29.1900470             VMware     6/14/2014...
            scsi-adp94xx             1.0.8.12-6vmw.500.0.0.469512   VMware     8/19/2011...
            scsi-mptsas              4.23.01.00-6vmw.510.2.44.21... VMware     10/7/2014...
            tools-light              5.1.0-2.44.2191751             VMware     10/7/2014...
            scsi-aacraid             1.1.5.1-9vmw.510.0.0.799733    VMware     8/2/2012 ...
            tools-light              5.0.0-0.3.474610               VMware     9/13/2011...
            sata-ahci                3.0-18vmw.550.1.15.1623387     VMware     2/22/2014...
            ata-pata-cmd64x          0.2.5-3vmw.510.0.0.799733      VMware     8/2/2012 ...
            scsi-fnic                1.5.0.3-1vmw.510.0.0.799733    VMware     8/2/2012 ...
            esx-base                 5.0.0-2.35.1254542             VMware     8/1/2013 ...
            misc-drivers             5.1.0-0.0.799733               VMware     8/2/2012 ...
            scsi-megaraid-mbox       2.20.5.1-6vmw.510.0.0.799733   VMware     8/2/2012 ...
            mtip32xx-native          3.3.4-1vmw.550.1.15.1623387    VMware     2/22/2014...
            misc-cnic-register       1.1-1vmw.510.0.0.799733        VMware     8/2/2012 ...
            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            everything is ok

             

            but when i type below command   it's show something wrong

             

            4.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-EsxImageProfile
            Get-EsxImageProfile : The parameter 'name' cannot be an empty string.
            Parameter name: name
            At line:1 char:20
            + Get-EsxImageProfile <<<<
                + CategoryInfo          : NotSpecified: (:) [Get-EsxImageProfile], Argumen
               tException
                + FullyQualifiedErrorId : System.ArgumentException,VMware.ImageBuilder.Com
               mands.GetProfiles

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            I just want to view the version of  ESXI  and find a version to use

             

            now  when i  retry type  Get-EsxSoftwarePackage  it's bad

             

            5.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-EsxSoftwarePackage
            Get-EsxSoftwarePackage : Cannot convert length string (PkgVibPa) to a number
            At line:1 char:23
            + Get-EsxSoftwarePackage <<<<
                + CategoryInfo          : NotSpecified: (:) [Get-EsxSoftwarePackage], Prot
               ocolViolationException
                + FullyQualifiedErrorId : System.Net.ProtocolViolationException,VMware.Ima
               geBuilder.Commands.GetPackages

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            so  close the PowerCLI windows   open a new shell

             

            i try another thing

            1.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depohttps://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xmlt-index.xml

            Depot Url
            ---------
            https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml


            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            2.

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-EsxImageProfile | Sort-Object "ModifiedTime" -Descending | format-table -property Name,CreationTime
            Get-EsxImageProfile : The parameter 'name' cannot be an empty string.
            Parameter name: name
            At line:1 char:20
            + Get-EsxImageProfile <<<<  | Sort-Object "ModifiedTime" -Descending | format-t
            able -property Name,CreationTime
                + CategoryInfo          : NotSpecified: (:) [Get-EsxImageProfile], Argumen
               tException
                + FullyQualifiedErrorId : System.ArgumentException,VMware.ImageBuilder.Com
               mands.GetProfiles

            PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

             

            once I type Get-EsxImageProfile  command  there is something error  , the same error

             

            would you help me  to fix this problem ?

            • 3. Re: Something Wrong with create a customized ESXi Installer Image online depot (help!!)
              LucD Guru
              Community WarriorsUser ModeratorsvExpert

              Have a look at KB2089217, it describes the issue and provides a bypass.