VMware Cloud Community
Rakesh_098
Contributor
Contributor

Need to upgrade the Vnic adapter from E1000 to Vmxnet3

Hi Friends,

I am looking for a script which will upgrade the old Nic adapter from E1000 to Vmxnet3. I tried few scripts but didn't get succeeded.

Can someone help me out to get me a good script.

Thanks,

Rakesh

0 Kudos
3 Replies
schepp
Leadership
Leadership

Hi,

moved the thread to the PoweCLI forums.

You can do this with a oneliner:

Get-VM YOUR-VM |Get-NetworkAdapter |Set-NetworkAdapter -Type "vmxnet3"

Tim

0 Kudos
LucD
Leadership
Leadership

Perhaps make sure to first save your network settings from inside the guest OS, they will be lost when you change the NIC type


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

0 Kudos
Rakesh_098
Contributor
Contributor

Hey Tim,

Thanks for your reply. I am aware of this one liner command. What i am looking here is after the Nic up-gradation the static IP/subnet mask should  get assigned automatically from old NIc to new Nic.

0 Kudos