转载于http://blog.briannuszkowski.com/post/216354335/applying-traffic-shaping-policies-on-single-or-multiple
总的来说,用Traffic Shaping可以控制一个VM的带宽使用。

I recently ran into a problem where a single Guest virtual machine on a VMWare ESX host was consuming too much bandwidth (70megabits/second!). When I configure a basic ESX host, I usually am working with a server that has two Ethernet Interfaces. I end up using one interface for management and the other as a virtual switch in which one VM Port Group is created that all the guests utilize. Luckily, VMWare has some cool policies that can be applied to Virtual Machine Port Groups. One of these policies: Traffic Shaping. Now, you could very well apply this policy to your standard VM Port Group, but that means all of the guests on that port group would then be impacted by this policy. In my case, I only want to apply Traffic Shaping to one virtual machine. Note that the same steps can be adapted for a single port group.

In vShpere, select the ESX host that you wish to configure. Select the Configuration tab on the top and Networking from the hardware selection on the left hand side. When in the Networking pane, make sure Virtual Switch is selected.

In this view, select Add Networking on the right hand side of the screen.

Choose Virtual Machine

Select the virtual switch that you use for your guest VMs

Give it a cool name. Something like “Shapped_Traffic” (an obvious typo).

Here is a preview of what is about to happen: You are adding an additional VM Port Group to your existing virtual switch/physical adapter.

Cool. So now that we have this VM Port Group created, we need to edit the Traffic Shaping policy for it. Select Properties on the virtual switch that your new Port Group resides on.

Choose your newly created port group and Edit it.

Choose the Traffic Shaping tab, enable the policy, and set your desired bandwidth settings. *NOTE that Average and Peak bandwidth are measured in Kbits/sec VERSUS Kbytes for your Burst size.

When your policy is created and ready to rock, edit the Network Adapter settings on the virtual machine in question and choose your newly created VM Port Group as its Network Connection.

Enjoy your total control!