john fisher
2014-Feb-26 18:22 UTC
[libvirt-users] POOL of SRIOV networks with multiple PFs
We are using an Intel 82599 chip that allows 4 PFs ( eth0..3) per VM. I am able
to manually start VMs using the hostdev
definition for the four network connections, but I'd like to start using the
pool approach. Ubuntu 12.04 libvirt 1.0.0
Following:
http://wiki.libvirt.org/page/Networking#Assignment_from_a_pool_of_SRIOV_VFs_in_a_libvirt_.3Cnetwork.3E_definition
I can get a pool working with one network-
<network>
<name>passthrough_eth0</name>
<forward mode='hostdev' managed='yes'>
<pf dev='eth0'/>
</forward>
</network>
and I can get the four networks started using similar xml. Using one stanza of
network type passthrough, I can get a
pool on one PF.
But when I try to create the VM using four stanzas of network definition,
<interface type='network'>
<source network='passthrough_eth0'/>
</interface>
<interface type='network'>
<source network='passthrough_eth1'/>
</interface>
<interface type='network'>
<source network='passthrough_eth2'/>
</interface>
<interface type='network'>
<source network='passthrough_eth3'/>
</interface>
I get this error:
"error: Failed to create domain from ./vm0.xml
error: internal error Process exited while reading console log output: kvm:
-device
pci-assign,host=01:10.1,id=hostdev0,configfd=47,bus=pci.0,addr=0x8: Duplicate ID
'hostdev0' for device "
Ideas?
--
John Fisher
Dax Kelson
2014-Feb-26 18:43 UTC
Re: [libvirt-users] POOL of SRIOV networks with multiple PFs
On Wed, Feb 26, 2014 at 11:22 AM, john fisher <john@jpfisher.net> wrote:> I get this error: > "error: Failed to create domain from ./vm0.xml > error: internal error Process exited while reading console log output: > kvm: -device > pci-assign,host=01:10.1,id=hostdev0,configfd=47,bus=pci.0,addr=0x8: > Duplicate ID 'hostdev0' for device " > > Ideas? >Yes. https://bugzilla.redhat.com/show_bug.cgi?id=1001881 Dax Kelson
Laine Stump
2014-Feb-27 12:19 UTC
Re: [libvirt-users] POOL of SRIOV networks with multiple PFs
On 02/26/2014 08:43 PM, Dax Kelson wrote:> On Wed, Feb 26, 2014 at 11:22 AM, john fisher <john@jpfisher.net > <mailto:john@jpfisher.net>> wrote: > > I get this error: > "error: Failed to create domain from ./vm0.xml > error: internal error Process exited while reading console log > output: kvm: -device > pci-assign,host=01:10.1,id=hostdev0,configfd=47,bus=pci.0,addr=0x8: Duplicate > ID 'hostdev0' for device " > > Ideas? > > > Yes. > > https://bugzilla.redhat.com/show_bug.cgi?id=1001881 >And since it doesn't specifically spell it out in the bug report - the upstream fix was included in libvirt-1.0.6. I don't know if it was backported to any -maint branches, but there should be enough information in the bug report to figure that out with a bit of git sleuthing...