Automation

 View Only
  • 1.  PowerCLI upgrade all e1000 adapters to vmxnet3

    Posted Dec 05, 2013 03:56 AM

    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



  • 2.  RE: PowerCLI upgrade all e1000 adapters to vmxnet3

    Posted Dec 05, 2013 05:44 AM

    Hi,

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

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



  • 3.  RE: PowerCLI upgrade all e1000 adapters to vmxnet3

    Posted Apr 12, 2014 03:28 PM

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



  • 4.  RE: PowerCLI upgrade all e1000 adapters to vmxnet3

    Posted Apr 12, 2014 04:59 PM

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



  • 5.  RE: PowerCLI upgrade all e1000 adapters to vmxnet3

    Posted Apr 12, 2014 05:56 PM

    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



  • 6.  RE: PowerCLI upgrade all e1000 adapters to vmxnet3

    Posted Apr 16, 2014 04:53 PM

    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