Hi i get this problem when execute the following command :
Note : This issue not happened with ESX GA
Hi,
If you use the -name parameter rather than using 'where', does it work?
e.g.
Get-VMHost 10.136.22.1 | Get-VirtualSwitch -name "vSwitch1" | Set-VirtualSwitch -nic "vmnic_ib0"
No the same thing "An error occured during host configuration"
Is the name of vnic correct ?
Do you see it when you do
Get-VMHost 10.136.22.1 | Get-VMHostNetworkAdapter | Select Name
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yes i saw the network adapter "
just reminder : this issue not happened with ESX GA
Are you connected to the ESXi host or to a vCenter ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
am connected to vcenter
Update : i connect directly to the ESX , retry the same command working fine .
what should i do , if i connected to vcenter not no ESX vsphere clinent
Try adding the Server parameter.
Update: that is wrong, it assumes there is a connection to the ESXi server through Connect-VIServer
Are you sure
Get-VMHost 10.136.22.1 | Get-VirtualSwitch | where {$_.Name -eq "vSwitch1"} | Select Name
only returns 1 vSwitch
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you very much
working fine now
Long time passed over this issue
again i have the same problem
Even if connect to ESX directly i get the same error
"
Set-VirtualSwitch : 2/23/2014 11:22:47 AM | Set-VirtualSwitch | An error occurred during host configuration. |
At line:1 char:1
+ Set-VirtualSwitch -VirtualSwitch (Get-VMHost 10.136.209.1 | Get-VirtualSwitch | ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo | : NotSpecified: (:) [Set-VirtualSwitch], ViError | |
+ FullyQualifiedErrorId : Client20_VirtualNetworkService_SetVirtualSwitch25_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVirtualSwitch |