Skip to contentSkip to conversation

How to limit upload bandwidth for a guest server?

DISCUSSION Neil Aggarwal 2 participants 2 messages Feb 4, 2013 – Feb 5, 2013 KVM

lore
Share & tools
lore
#0 lore raw

Hello all:

I have a CentOS server using KVM to host guest servers. I am trying to limit the bandwidth usable by a guest server.

I tried to use tc, but that is only limiting the download bandwidth to a server. It does not seem to filter packets uploaded by the server.

Is there a tool to limit upload traffic for a guest server?

Thanks,
Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges

#1 lore raw
Quoted 8 lines · Neil Aggarwal

I have a CentOS server using KVM to host guest servers. I am trying to limit the bandwidth usable by a guest server.

I tried to use tc, but that is only limiting the download bandwidth to a server. It does not seem to filter packets uploaded by the server.

Is there a tool to limit upload traffic for a guest server?

Consider using management tools like libvirt that handle tc and friends for you. The domain XML is <interface><bandwidth><inbound> and <outbound>.

Back to the question, are you looking for ingress qdiscs?

http://www.lartc.org/howto/lartc.adv-qdisc.ingress.html

This is a standard tc question, not related to virtualization. You may get better help from Linux networking mailing lists or IRC channels.

Stefan