Mohamed, Faris
2019-Jul-12 13:44 UTC
[libvirt-users] Question regarding using multiple physical functions inside a network pool.
Hello, I was planning on adding multiple physical functions using the built in SR-IOV features offered by libvirt to a create a bigger pool of virtual functions using the <forward mode='hostdev' managed='yes'> heading (I want to be able to use more virtual machines then there are virtual functions available on an ethernet port). As soon as I try to define multiple physical functions in a pool, I get this error: error: Failed to define network from biggernetwork.xml error: XML error: Only one <pf> element is allowed in <forward> of network bigger network when using this command: sudo virsh net-define biggernetwork.xml on the following XML document: <network> <name>bigger network</name> <forward mode='hostdev' managed='yes'> <pf dev='eth5'/> <pf dev='eth7'/> </forward> </network> It seems that you are not able to add multiple physical functions to this network to create a pool of more virtual functions. Is there anyway that you can do this using that I am missing? I seem to be looking at the documentation and there seems to be nothing related to this. I think this would be extremely useful and would make automate adding virtual functions to virtual machines much easier to manage. Thanks in advance, Faris ----------------------------------------------------------------------------------------------------------------------- Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments. -----------------------------------------------------------------------------------------------------------------------
Michal Privoznik
2019-Jul-15 15:16 UTC
Re: [libvirt-users] Question regarding using multiple physical functions inside a network pool.
On 7/12/19 3:44 PM, Mohamed, Faris wrote:> Hello, > > I was planning on adding multiple physical functions using the built in SR-IOV features offered by libvirt to a create a bigger pool of virtual functions using the > > <forward mode='hostdev' managed='yes'> heading > > (I want to be able to use more virtual machines then there are virtual functions available on an ethernet port). > > As soon as I try to define multiple physical functions in a pool, I get this error: > > > error: Failed to define network from biggernetwork.xml > error: XML error: Only one <pf> element is allowed in <forward> of network bigger network > > > when using this command: > > sudo virsh net-define biggernetwork.xml > > > on the following XML document: > > <network> > <name>bigger network</name> > <forward mode='hostdev' managed='yes'> > <pf dev='eth5'/> > <pf dev='eth7'/> > </forward> > </network>You need to define only the PF and libvirt will handle the rest: https://wiki.libvirt.org/page/Networking#Assignment_with_.3Cinterface_type.3D.27hostdev.27.3E_.28SRIOV_devices_only.29 Michal
Apparently Analagous Threads
- Error starting domain: internal error: missing IFLA_VF_INFO in netlink response
- Re: Error starting domain: internal error: missing IFLA_VF_INFO in netlink response
- Re: Centos 7 - "Device eth1 does not seem to be present, delaying initialization".
- Centos 7 - "Device eth1 does not seem to be present, delaying initialization".
- Re: Sr-iov passthrough - no packet arrive to guest