add bandwidth limit for VM


Recommended Posts

Hi,

 

i try to add the bandwidth limit in the vm like that :

 

<interface type='bridge'>
      <mac address='52:54:00:24:d9:97'/>
      <source bridge='br0'/>
      <bandwidth>
        <inbound average='625' peak='625' burst='625'/>
        <outbound average='625' peak='625' burst='625'/>
      </bandwidth>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

 

But if i try to start the vm i have this error :

 

image.thumb.png.8b3b8bca0c193fff2a04ec5580b09f70.png

 

Thanks for your help

 

Link to comment

Same error with a custom network :

 

<network>
  <name>virbr1-lab</name>
  <uuid>03ca9ae6-8dbc-43b7-8e63-366b46926b20</uuid>
  <forward mode='nat'/>
  <bandwidth>
    <inbound average='625' peak='625' burst='625'/>
    <outbound average='625' peak='625' burst='625'/>
  </bandwidth>
  <bridge name='virbr1-lab' stp='on' delay='0'/>
  <mac address='52:54:00:c5:18:43'/>
  <ip address='192.168.50.1' netmask='255.255.255.248'>
    <dhcp>
      <range start='192.168.50.2' end='192.168.50.6'/>
    </dhcp>
  </ip>
</network>

 

root@JamesServer:/tmp# virsh net-start virbr1-lab
error: Failed to start network virbr1-lab
error: internal error: Child process (/usr/sbin/tc qdisc add dev virbr1-lab root handle 1: htb default 2) unexpected exit status 2: Error: Specified qdisc not found.

 

image.png

Link to comment
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.