kvm 为 VM 添加带宽限制

问题描述

我尝试像这样在虚拟机中添加带宽限制:

<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>

但是,如果我尝试启动虚拟机,则会出现此错误

内部错误:子进程(/usr/sbin/tc qdisc add dev vnet2 root handle 1:htb default 1)意外退出状态2:错误:找不到指定的qdisc。

有人有想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)