Edit NIC on vSphere using PowerCli

If you need to edit the VM’s NIC after you deploy the VM using vCenter, it’s grayed out. I wanted to change it from E100E to VMXNET3.

E100E

 

In order to make this change, you need to utilize PowerCli. Make sure you connect to vCenter using:
Connect-VIServer VCSA

After being connected, run:
Get-VM VM | Get-NetworkAdapter

To set the NIC to VMXNET3 run:
Get-VM Server | Get-NetworkAdapter | Set-NetworkAdapter -Type VMXNET3
Then confirm the selection by entering ‘Y’

Done

 

Once that is done, run the following command again:
Get-VM VM | Get-NetworkAdapter
As you can see, the Type is now Vmxnet3.

VMXNET3

 

Now, if you check the GUI, you’ll notice it has changed.

Final GUI

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s