VMware Cloud Community
wreedlbz
Contributor
Contributor

PowerCLI upgrade all e1000 adapters to vmxnet3

Hello,

I have about 100 2008 R2 servers all running the E1000 nic. I would like to script moving them all to vmxnet3 but keeping the IP config. How can this be accomplished?

I am on ESX 5.1 and Vcenter 5.1

Reply
0 Kudos
5 Replies
sivagndl
Enthusiast
Enthusiast

Hi,

Keep all vm's  Vmtools is updated, the use below script.

Get-VM <VM Name> | Get-NetworkAdapter | Set-NetworkAdapter -type "vmxnet3"

wreedlbz
Contributor
Contributor

Will this keep the IP config in Windows or will it install a new NIC?

Reply
0 Kudos
LucD
Leadership
Leadership

Your IP config will be lost, see also Re: PowerCli Migration from E1000 to vmxnet3 issues


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

Reply
0 Kudos
kunaludapi
Expert
Expert

Use below kb to backup and restore IP configuration in the vm.

VMware KB: Virtual NIC settings on a Windows guest are lost after a virtual hardware upgrade

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
ephillips3
Contributor
Contributor

You can use the Get-VMGuestNetworkInterface to get the IP info from the e1000 and use Set-VMGuestNetworkInterface to set this address on the vnxnet3. The vmtools need to be running as this operates through eh tools

Reply
0 Kudos