VMware Cloud Community
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Unable to change Network Adaptor from VMXNET3 to E1000E

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

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

4 Replies
LucD
Leadership
Leadership
Jump to solution

Is that vNIC connected to a VDS?
Is the VM powered on?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Hi LucD,

No, it is connected to local vSwitch and it is in Powered Off state

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

ganapa2000
Hot Shot
Hot Shot
Jump to solution

Thank you LucD, That worked after disabling the DirectI/O

Tags (1)
Reply
0 Kudos