On 11/19/14, 7:15 AM, "Vasiliy Tolstov" <v.tolstov(a)selfip.ru> wrote:
2014-11-19 2:55 GMT+03:00 Anirban Chakraborty
<abchak(a)juniper.net>:
> Ethernet interfaces in libvirt currently do not support bandwidth
>setting.
> For example, following xml file for an interface will not apply these
> settings to corresponding qdiscs.
>
> <interface type="ethernet">
> <mac address="02:36:1d:18:2a:e4"/>
> <model type="virtio"/>
> <script path=""/>
> <target dev="tap361d182a-e4"/>
> <bandwidth>
> <inbound average="984" peak="1024"
burst="64"/>
> <outbound average="2000" peak="2048"
burst="128"/>
> </bandwidth>
> </interface>
Hm. Now in libvirt 1.2.10 patch applied and compiled fine, but when
i'm try to run server i get error like:
2014-11-19 15:11:56.110+0000: 33405: error : virNetSocketReadWire:1571
: End of file while reading data: Input/output error
2014-11-19 15:11:57.240+0000: 33405: error : qemuMonitorIO:662 :
internal error: End of file from monitor
2014-11-19 15:11:57.753+0000: 33408: error : virCommandWait:2533 :
internal error: Child process (tc qdisc add dev tap10339 root handle
1: htb default 1) unexpected exit status 1: Cannot find device
"tap10339"
Relevant xml part is:
<interface type='ethernet'>
<mac address='{mac}'/>
<model type='virtio'/>
<alias name='net0'/>
<target dev='tap{name}'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x03'
function='0x0'/>
<rom bar='off'/>
<bandwidth>
<inbound average="40960" peak="51200"/>
<outbound average="40960" peak="51200"/>
</bandwidth>
</interface>
The Œethernet¹ interface type assumes that you have an existing tap
device. Did you check if the tap device that it is complaining against
actually exists in the host?
Anirban