Change Network Adapter Type “Vmxnet3″

I deployed several VMs with incompatible network adapter type and need to change them to different type.
There is an easy way and a hard way.

The hard way:

Edit the VM and remove the NIC and re-add back with correct network adapter type.

The easy way:

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-VM

Name                 PowerState Num CPUs MemoryGB
----                 ---------- -------- --------
testesx01            PoweredOn  2        2.000
testesx02            PoweredOn  2        2.000

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-VM testesx01

Name                 PowerState Num CPUs MemoryGB
----                 ---------- -------- --------
testesx01            PoweredOn  2        2.000

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-VM testesx01 | Get-NetworkAdapter

Name                 Type       NetworkName  MacAddress         WakeOnLan
Enabled
----                 ----       -----------  ----------         ---------
Network adapter 1    e1000      VM Network   00:50:56:b7:12:37       True
Network adapter 2    e1000      VM Network   00:50:56:b7:14:c4       True
Network adapter 3    e1000      VM Network   00:50:56:b7:08:41       True
Network adapter 4    e1000      VM Network   00:50:56:b7:6c:81       True

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-VM testesx01 | Get-NetworkAdapter | Set-NetworkAdapter -Type "Vmxnet3"

Confirm
Are you sure you want to perform this action?
Performing operation "Setting Type: Vmxnet3" on Target "Network adapter 1".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Confirm
Are you sure you want to perform this action?
Performing operation "Setting Type: Vmxnet3" on Target "Network adapter 2".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Confirm
Are you sure you want to perform this action?
Performing operation "Setting Type: Vmxnet3" on Target "Network adapter 3".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Confirm
Are you sure you want to perform this action?
Performing operation "Setting Type: Vmxnet3" on Target "Network adapter 4".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Name                 Type       NetworkName  MacAddress         WakeOnLan
Enabled
----                 ----       -----------  ----------         ---------
Network adapter 1    Vmxnet3    VM Network   00:50:56:b7:12:37       True
Network adapter 2    Vmxnet3    VM Network   00:50:56:b7:14:c4       True
Network adapter 3    Vmxnet3    VM Network   00:50:56:b7:08:41       True
Network adapter 4    Vmxnet3    VM Network   00:50:56:b7:6c:81       True

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

Leave a comment

Your email address will not be published. Required fields are marked *


*