Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

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...

share|improve this answer
2  
This will allow you to throttle the bandwidth to get it in the right range but it wont allow you to replicate the latency and other characteristics that have a significant impact on 56k modem "performance". To give a realistic emulation of the 56k modem experience you'll need to add in about 60ms of round trip latency. It's also worth noting that a 56k modem can deliver at most about 63kbps aggregate uplink and downlink and they never deliver better than 33.6kbps uplink. –  Helvick Jul 10 '09 at 20:46
    
@August: Good point, I didn't mention I was using VMware Workstation. –  Josh Jul 12 '09 at 12:54
    
@Helvick: I have options to limit the bandwidth of a LAN segment to modem speeds including generating packet loss. I wonder if this is also adding latency as you mentioned? Problem is, it only affects LAN segments, not the main ethernet connection. –  Josh Jul 12 '09 at 12:57

Check out Shunra VE Desktop. Its a WAN emulator, works really well.

share|improve this answer
    
While that's a neat tool, it doesn't help me limit bandwidth under VMware on linux. –  Josh Jul 12 '09 at 12:53
up vote 7 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.