I'm looking to simulate a 56KB modem connection in a VMware Workstation virtual machine. I remember reading this was possible, but forgot how?
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
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...
In current versions of VMware Workstation, this can also be edited directly via the GUI:
- Click VM in the main menu of WMware Workstation with virtual machine running.
- Click the Preferences menu item. The "Virtual Machine Settings" dialog appears.
- Click the Network Adapter device in the list.
- Click the Advanced button. The "Network Adapter Advanced Settings" dialog appears.
- Configure your desired settings in this dialog.
- Close the dialog by clicking OK.
- 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: