How to limit upload bandwidth for a guest server?
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
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