VMware Cloud Community
controller456
Contributor
Contributor
Jump to solution

Unable to push configuration to Distributionswitch Capability.DvsOperationSupported is false

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

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
controller456
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
Varoon_p
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos