Automation

 View Only
  • 1.  Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 25, 2018 01:36 PM

    I can no longer get the Get-PassthroughDevice -VMHost $vmhost cmdlet to work at all. Regardless of what parameters I send it I always get the following error:

    VERBOSE: 25/09/2018 14:23:55Get-PassthroughDeviceStarted execution
    Get-PassthroughDevice : 25/09/2018 14:23:59Get-PassthroughDeviceAn item with the same key has already been added.

    At line:13 char:1

    + Get-PassthroughDevice -VMHost $vmhost -Debug

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : NotSpecified: (:) [Get-PassthroughDevice], VimException

        + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetPassthroughDevice

    VERBOSE: 25/09/2018 14:24:02Get-PassthroughDeviceFinished execution
    DEBUG: 25/09/2018 14:24:02Get-PassthroughDevice

    It seem that 'An item with the same key has already been added' is a common error. I've tried removing all the PowerCLI packages and re-installing with no difference.

    VMware.DeployAutomation                   6.7.0.8250345

    VMware.ImageBuilder                       6.7.0.8250345

    VMware.PowerCLI                           10.2.0.9372002

    VMware.Vim                                6.7.0.9288211

    VMware.VimAutomation.Cis.Core             10.1.0.8377811

    VMware.VimAutomation.Cloud                10.0.0.7893901

    VMware.VimAutomation.Common               10.1.0.8342134

    VMware.VimAutomation.Core                 10.1.0.8344055

    VMware.VimAutomation.HA                   6.5.4.7567193

    VMware.VimAutomation.HorizonView          7.5.0.8827468

    VMware.VimAutomation.License              10.0.0.7893904

    VMware.VimAutomation.Nsxt                 10.2.0.9296602

    VMware.VimAutomation.PCloud               10.0.0.7893924

    VMware.VimAutomation.Sdk                  10.1.0.8342078

    VMware.VimAutomation.Srm                  10.0.0.7893900

    VMware.VimAutomation.Storage              10.1.0.8313015

    VMware.VimAutomation.StorageUtility       1.2.0.0

    VMware.VimAutomation.Vds                  10.1.0.8344219

    VMware.VimAutomation.Vmc                  10.0.0.7893902

    VMware.VimAutomation.vROps                10.0.0.7893921

    VMware.VumAutomation                      6.5.1.7862888



  • 2.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 25, 2018 01:46 PM

    Did you also try by using a specific VM?

    Do you have multiple vCenters? Can you try on another vCenter?

    Do you have another station where you can install PowerCLI from scratch?



  • 3.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 25, 2018 02:15 PM

    I've targeted a specific VM and using a wildcard '*', only have one vCenter in this instance but tried specifying that as well. Have also tried from 2 different Windows clients both with new installs of PowerCLI. Same result in all cases. Other commands seem fine.



  • 4.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 25, 2018 03:25 PM

    Then I suggest you open a SR.

    And PowerCLI is supported, you don't need Developer Support for bugs.
    Refer to PowerCLI Support Breakdown



  • 5.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 25, 2018 04:04 PM

    Indeed, I've had another PowerCLI issue open for a month though now with no PowerCLI expertise from VMware. It just keeps getting deferred waiting for a PowerCLI engineer with no response.



  • 6.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 25, 2018 04:07 PM

    Can you send me the SR# in a PM?
    Perhaps I can forward it to someone who could trigger some action



  • 7.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 26, 2018 12:42 PM

    Have been able to test against a second vCenter. Works on 6.7.0.11000, does not work on 6.5.0.22000. I'm not able to upgrade to 6.7.x on that vCenter as yet due to other support issues.



  • 8.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 26, 2018 12:52 PM

    Could you eventually consider going back to an older PowerCLI version for testing with vSphere 6.5?

    Might be an issue in 10.2.0.



  • 9.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 26, 2018 12:54 PM

    I have a different issue with the previous release of PowerCLI which is what I have a ticket open with VMware for unfortunately! So currently I cannot fix either way.



  • 10.  RE: Get-PassthroughDevice -VMHost $vmhost no longer works....

    Posted Sep 26, 2018 01:02 PM

    A real catch-22 :smileygrin: