Limit VMware Virtual Ethernet bandwidth

I'm looking to simulate a 56KB modem connection in a VMware Workstation virtual machine. I remember reading this was possible, but forgot how?


Solution 1:

I figured this out -- add to the vmx file:

ethernetX.rxbw.limit = 56
ethernetX.txbw.limit = 34

where ethernetX is the adaptor to limit, i.e. ethernet0 or ethernet1

Thanks to http://www.sanbarrow.com/vmx/vmx-network-advanced.html

Solution 2:

I am using ESX 3.5i - not sure what you are using. I don't know of a way to do it per machine, but you can edit either the VM Port Group or the virtual switch properties and use traffic shaping to limit it for all machines in the port group or on the whole virtual switch. Click on the Host>Configuration tab>Networking>Properties for the Virtual Switch>Edit button for the switch or port group...>Traffic Shaping tab. You can create a new port group on the same vswitch or make a new vswitch and just put the one test machine on it so your other VMs aren't affected. I personally have never done it, but it looks like that would be the way to do it...

Solution 3:

In current versions of VMware Workstation, this can also be edited directly via the GUI:

  1. Click VM in the main menu of WMware Workstation with virtual machine running.
  2. Click the Preferences menu item. The "Virtual Machine Settings" dialog appears.
  3. Click the Network Adapter device in the list.
  4. Click the Advanced button. The "Network Adapter Advanced Settings" dialog appears.
  5. Configure your desired settings in this dialog.
  6. Close the dialog by clicking OK.
  7. Close the parent dialog by clicking OK, too.

You now have a throttled network connection for your virtual machine. No need to reboot or anything else.

To ensure that the settings are applied, try a web-based speed test of your choice from within the virtual machine.


This is how the dialog looks like:

enter image description here