OpenVZ Forum


Home » General » Support » NETEM kernel for OpenVZ Container
NETEM kernel for OpenVZ Container [message #52234] Mon, 12 October 2015 12:14 Go to next message
kuldeep is currently offline  kuldeep
Messages: 2
Registered: October 2015
Location: Frankfurt
Junior Member
Hi Folk,

I have created OpenVZ containers using Proxmox.

Is it possible to apply packet loss or delay on venet0 interface using NETEM (tc qdisc add .....)?

I tried using below command..
tc qdisc change dev venet0 root netem loss 0.1%

I am getting error ..
RTNETLINK answers: No such file or directory

Is that means, NETEM is not compatible with OpenVZ kernel?
Any help will be appreciated. Thanks in advance!!
with Regards, Kuldeep
Re: NETEM kernel for OpenVZ Container [message #52235 is a reply to message #52234] Mon, 12 October 2015 12:56 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

have you loaded the kernel module sch_netem on hardware node?
Re: NETEM kernel for OpenVZ Container [message #52243 is a reply to message #52235] Mon, 19 October 2015 07:17 Go to previous messageGo to next message
MilesWeb
Messages: 3
Registered: May 2015
Location: UK
Junior Member
Did you try using tc qdisc list to see what is in effect? This error sometimes means you are referring to a non-existent entry.

Re: NETEM kernel for OpenVZ Container [message #52244 is a reply to message #52243] Mon, 19 October 2015 11:26 Go to previous message
kuldeep is currently offline  kuldeep
Messages: 2
Registered: October 2015
Location: Frankfurt
Junior Member
Hi,

Thanks Curx and KelvinSmith for the responses. Now I am able configure delay and packet loss using NETEM on the interfaces.

Error was because of non-existent entry. I was trying to change the loss without adding qdisc to the interface so I was getting error.

I applied the below configuration and it works...

tc qdisc add dev venet0 handle 1: root htb
tc class add dev venet0 parent 1: classid 1:1 htb rate 100Mbps
tc class add dev venet0 parent 1:1 classid 1:11 htb rate 100Mbps
tc qdisc add dev venet0 parent 1:11 handle 10: netem delay 100ms 10ms 25%
tc filter add dev venet0 protocol ip prio 1 u32 match ip dst $ destinationIP flowid 1:11

As already stated, I am using ProxMox to create containers. I am not able to install any package on hardware node. I am using below command
apt-get install iperf
I am getting error.....
Not able to locate the package iperf
Can any one know the reason and solution ? Thanks in advance !
Thanks and Regards,
Kuldeep
Previous Topic: Network Issues in VPS domain server
Next Topic: Does OpenVZ work on Ubuntu 14.04 LTS?
Goto Forum:
  


Current Time: Thu Apr 18 07:38:27 GMT 2024

Total time taken to generate the page: 0.01601 seconds