LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2013, 05:25 AM   #1
priyanss
LQ Newbie
 
Registered: Nov 2013
Location: India
Distribution: Linux Mint
Posts: 2

Rep: Reputation: Disabled
Limit the download speed of KVM based VM


Hi,

I have an infrastructure similar to the below.

vm > kvm guest > firewall > router

Issue is that the VM sometimes download burst of data from internet and entire network hangs up. So, I want to shape the internet traffic. My link speed is 8 MB/s and its desirable to give a maximum of 2MB/s for the VM, but, not beyond that.

My question is, if I use "tc" within the VM to limit inbound and outbound traffic, will it shape the traffic from internet to the VM ? My understanding is that, it will not, since it will queue up the download data at the maximum speed possible till the KVM guest and restriction applies only between the VM and KVM guest.

If I'm correct, what should be done to shape the internet download traffic throughout without the VM utilizing all the internet bandwidth for downloading data ?
 
Old 11-21-2013, 04:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
the fact that it is a VM is totally irrelevant. Mixing up different unrelated aspects of IT will only confuse things. tc will operate according to the rules it is configured with, and has no way at all to be aware of it being a vm.
 
Old 11-22-2013, 06:01 AM   #3
priyanss
LQ Newbie
 
Registered: Nov 2013
Location: India
Distribution: Linux Mint
Posts: 2

Original Poster
Rep: Reputation: Disabled
Talking

hmmm.... I knew it was logically incorrect ! still, I wanted to make sure
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
limit download speed qrange Linux - Networking 1 03-29-2011 09:47 AM
limit connectivity of a KVM vm tincboy Linux - Virtualization and Cloud 0 02-21-2011 07:29 AM
applying download speed limit iptables qwertyjjj Linux - Server 12 11-10-2010 06:44 PM
LXer: New KaOS KVM based hypervisor available for download - under 10MB with OS embed LXer Syndicated Linux News 0 05-27-2010 03:00 PM
Upload speed limiting to increase download speed dangerousdave Linux - Networking 6 02-16-2010 04:19 PM


All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration