[Users] Re: Traffic shaping *inside* OpenVZ containers

Razvan Deaconescu razvan at rosedu.org
Thu Sep 2 09:08:37 EDT 2010


On 07/27/2010 05:30 PM, Benny Amorsen wrote:
> Razvan Deaconescu <razvan-Z8229FDUryEdnm+yROfE0A at public.gmane.org>
> writes:
> 
>> Is it possible to use tc inside an OpenVZ container? 
> 
> Yes that is definitely possible, at least with physical (VLAN)
> interfaces in the guest, but I bet it can be done with venet too.
> 
>> I've tried using tc against the virtual network interface (venet) and
>> a virtual Ethernet interface, but with no success:
> 
> Have you loaded the relevant modules in the host? tc can't force
> autoload of modules if you run it in the guest. Which kernel do you use?

What are the relevant modules? There's no hint from the tc command when
trying to add a rule, just an "Invalid argument" message.

---
# tc qdisc add dev venet0 root handle 1: htb default 90
RTNETLINK answers: Invalid argument
---

Razvan


More information about the Users mailing list