Hi,
I am unable to change Network Adaptor from VMXNET3 to E1000E, but I am able to change from E1000E to VMXNET3.
Get-VM MyVMrt | get-networkAdapter | Where { $_.Type -like "*Vmxnet*"} | set-NetworkAdapter -Type "e1000e" -confirm:$false
Please assist.
Below is the error while changing from VMXNET3 to E1000E
set-NetworkAdapter : 09/28/2021 9:58:55 AM Set-NetworkAdapter The operation for the entity "MyVMrt" failed with the following message: "Invalid configuration for device '0'."
At line:1 char:77
+ ... -like "*Vmxnet*"} | set-NetworkAdapter -Type "e1000e" -confirm:$false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-NetworkAdapter], InvalidDeviceSpec
+ FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.SetNetworkAdapter
I suspect that DirectPath IO is selected for the vNIC, you will first have to disable that.
See Solved: Re: How to Disable / Enable a VM's Network Adapter... - VMware Technology Network VMTN
When done, you should be able to change the vNIC type
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is that vNIC connected to a VDS?
Is the VM powered on?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
No, it is connected to local vSwitch and it is in Powered Off state
I suspect that DirectPath IO is selected for the vNIC, you will first have to disable that.
See Solved: Re: How to Disable / Enable a VM's Network Adapter... - VMware Technology Network VMTN
When done, you should be able to change the vNIC type
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you LucD, That worked after disabling the DirectI/O
