When I execute the script mentioned below, I see a task is created in the DistributionSwitch. However when I login to Vsphere I notice the following Error
<<<< Error Stack. Non-extension user session cannot create a vDS with Capability.DvsOperationSupported is false>>>
As distributionswitch we use Cisco Nexus 1000V. I am stuck now. Anybody know how to fix this?
<<<<<<<My script>>>> Some items cut out due to security
$dvSwitchName = "<Switchnamehere>"
$dvs = Get-VirtualSwitch -Distributed -Name $dvSwitchName | Get-View
$cfg = New-Object -TypeName VMware.Vim.DVSConfigSpec
# New
$cfg.<configitemhere> =
$cfg.configVersion = $dvs.config.configVersion
$dvs.ReconfigureDvs_Task( $cfg )
# Report new configuration
$dvs = Get-VirtualSwitch -Distributed -Name $dvSwitchName | Get-View
Write-Host "The new configuration = $($dvs.<ConfigItem>)" -for Green
0
In the DVSCapability object that flag indicates "...whether this switch allows vCenter users to modify the switch configuration at the switch level, except for host member, policy, and scope operations.".
So it looks as if the Nexus switch doesn't allow that reconfiguration.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
In the DVSCapability object that flag indicates "...whether this switch allows vCenter users to modify the switch configuration at the switch level, except for host member, policy, and scope operations.".
So it looks as if the Nexus switch doesn't allow that reconfiguration.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for the reply. I figured that out. Any idea how to configure the 1000V to enable DVScapability. Searched the net for 2 hours but havent found anything on this.
I'm afraid that the API to manage and configure the Nexus are not public.
You can use some of the regular dvSwitch methods, but that will not allow you to configure all the Nexus features.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi ,
Could you help me what remediation you applied?
I am facing serious issue in our production environment with same exact symptom.
Thanks in advance.