I’m updating my certifiactions at the moment and to help with my VCP I’m in the process of building a vSphere 6 home lab. I’m using VMware workstation and within it I’m setting up two ESXi 6.0 hosts, a vCSA and a single DC. Each ESXi host has ten NICs with will be distributed and teamed onto five different networks, Management, Storage, vMotion, and two sudo VLANs for VMs. The problem is only the first Network Adpater which was bridged has been detected correctly.
At first i didn’t notice it, as in VM Workstation everything looks ok. The Network Adapters were added in VMware Workstation with out an issue, and assigned to the correct custom virtial networks.
But when I tried to create a new vSwitch in ESXi 6, i got the warning message:
“There are no free network adapters to add to the switch.”
After a fair bit of Googling I cam across a suggestion for a similar issue in ESXi 5.1 on Spiceworks by Eduardo Mayers.
The issue seems to be that the VMware Workstation vmx configuration file for the ESXi 6.0 host has the first Network Adapter described correctly but the subsequent ones are not.
I connected to ESXi-1 via SSH to take a look. First I typed the command: esxcfg-nics -l
This will list the NICs in the system. As you can see vmnic0 is detected as an Intel 82545EM. But no other NICs are listed.
Next I typed the command: lspci
This lists detailed information about the PCI buses. Interestingly you can see the one Intel 82545EM network adapter, and nine AMD PCNet adapters.
So next I shutdown the ESXi-1 host and took a look at the vmx configuration file. As you can see in the image below the NIC that is working has an extra line of configuration:
ethernet0.virtualDev = “e1000”
I added ethernetX.virtualDev = “e1000” for each of the other ethernet adapters and restarted the ESXi-1 host.
All of the adpaters now appear in vCSA!
And a quick double check with Putty using esxcfg-nics -l shows ten Intel 82545EM adapters.
Now I can carry on and get some networking setup on my ESXi hosts. Thanks to Eduardo Mayers and Spiceworks for the tip.