vSwitch: Change Number Of Ports

You can change the number of ports available for VMs for any vSwitch. The predefined values are 8, 24, 56, 120, …, 4088 maximum ports for VMs
You may have noticed that the values are always 2 to the power of x minus 8. i.e.56 = 2 to the power of 6 – 8. This is because the VMKernel always reserves 8 ports for uplinks. They are the ports you connect to the physical NICs for instance.

But what if you want to set your own number of ports?
You can edit /etc/vmware/esx.conf file of your ESXi and change the following line: /net/vswitch/child[0000]/numPorts = “72”
In this case you will have 64 ports for VMs and 8 reserved uplinks as usual.
N.B. A reboot is required.

For ESX4.0, edit the file /etc/vmware/init/init.d/00.vmnix

Disclaimer! As usual those kind of hacks are not supported by VMware, so test it in a lab environment only!


About PiroNet

Didier Pironet is an independent blogger and freelancer with +15 years of IT industry experience. Didier is also a former VMware inc. employee where he specialised in Datacenter and Cloud Infrastructure products as well as Infrastructure, Operations and IT Business Management products. Didier is passionate about technologies and he is found to be a creative and a visionary thinker, expressing with passion and excitement, hopefully inspiring and enrolling people to innovation and change.
This entry was posted in Uncategorized. Bookmark the permalink.

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s