[libvirt] [PATCH v6] network: Add network bandwidth support to ethernet interfaces

Vasiliy Tolstov v.tolstov at selfip.ru
Fri Nov 21 08:13:24 UTC 2014


21 нояб. 2014 г. 9:07 пользователь "Anirban Chakraborty" <abchak at juniper.net>
написал:
>
>
>
> On 11/20/14, 5:43 AM, "Vasiliy Tolstov" <v.tolstov at selfip.ru> wrote:
>
> >2014-11-20 7:58 GMT+03:00 Anirban Chakraborty <abchak at juniper.net>:
> >> Your original error message was that qemu couldn¹t find a tap device.
> >>So,
> >> I am not sure how the above error relates to your original error.
> >> Can you write your detail configuration setup and the steps you have
> >>taken
> >> to get at this error?
> >
> >
> >If i'm not wrong error goes from:
> >qemuBuildInterfaceCommandLine builds interface command line and before
> >qemu started tries to add tap device to tc, but tap created later via
> >qemu (in my case).
> >I think that virNetDevBandwidthSet needs to be run after qemu started.
>
> Please look at the code. Tap device is not created for network interface
> type ethernet. virNetDevTapCreate creates the tap device, which eventually
> gets called from qemuNetworkIfaceConnect and this applies to interface
> types network or bridge. For ethernet type interfaces, the onus is on the
> user to create the tap device in the first place before configuring
> bandwidth for it.
>

> So, there is no point in changing any code here, if the tap device doesn’t
> exist and the vm configuration file has an entry for it, then libvirt is
> supposed to throw the error message to let the user know about it.
>
> Anirban
>

No, in this case qemu creates device for me and all works fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141121/a8110721/attachment-0001.htm>


More information about the libvir-list mailing list