Tag Archives: OpenVZ

dnsmasq: setting capabilities failed: Operation not permitted on OpenVZ

Many articles says you hosting administrator should to do this:

vzctl set CTID –capability setuid:on –save
vzctl set CTID –capability net_admin:on –save
vzctl set CTID –capability net_raw:on –save

where CTID is your server ID number

but if you provider don’t want to do this, you can try this:

nohup /usr/sbin/dnsmasq &

tc limit incoming bandwidth openvz

DEV=venet0
tc qdisc del dev $DEV root
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate 256kbit allot 1500 prio 5 bounded isolated
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst X.X.X.X flowid 1:1
tc qdisc add dev $DEV parent 1:1 sfq perturb 10