Network bandwidth limitation in KVM

5,663

You should add these parameters by hand. When you open the xml file of your virtual machine, find the block with interface type tag. Try to add the following

<bandwidth>
  <inbound average='xxx' peak='xxx' burst='xxxx'/>
  <outbound average='xxx' peak='xxx'/>
</bandwidth>

Where xxx is desired speed in kbps (kilobits per second). I think you have a little wrong url, here is the proper one

Share:
5,663

Related videos on Youtube

Grind919
Author by

Grind919

ubuntu newbie

Updated on September 18, 2022

Comments

  • Grind919
    Grind919 over 1 year

    I'm having difficulties finding out how to limit network bandwidth for my VM. The results I found searching the web that libvirt already includes this function, but I can't find it anywhere. Using the virsh edit command to edit the VM's settings, I still couldn't find any parameters related to bandwidth control. I also tried adding the mentioned function in the document, but results in a heap of errors. I would like to know if it's possible to add this function to my VM. Document: http://libvirt.org/formatdomain.html#elementQoS

  • Grind919
    Grind919 over 6 years
    I see where the mistake was now. Works like a charm! Thank you!
  • sbrattla
    sbrattla almost 4 years
    The documentation seems to specify kilobytes, and not kilobits.