Received: from eggs.gnu.org ([208.118.235.92]:38987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tisg0-0007oG-Pq for qemu-devel@nongnu.org; Wed, 12 Dec 2012 15:13:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tisfr-0001uA-Nr for qemu-devel@nongnu.org; Wed, 12 Dec 2012 15:13:08 -0500 Received: from indium.canonical.com ([91.189.90.7]:51296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tisfr-0001u6-I9 for qemu-devel@nongnu.org; Wed, 12 Dec 2012 15:12:59 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Tisfp-0001FV-UQ for ; Wed, 12 Dec 2012 20:12:58 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DCD722E8352 for ; Wed, 12 Dec 2012 20:05:32 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Dec 2012 19:59:59 -0000 From: john fisher <1089006@bugs.launchpad.net> Sender: bounces@canonical.com References: <20121211164913.12221.91398.malonedeb@soybean.canonical.com> Message-Id: <20121212195959.25882.72762.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1089006] Re: Qemu scrambles order of eth devices in vm Reply-To: Bug 1089006 <1089006@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Thank you Daniel. I understand what you say and agree. However when presented with a mapping = and an order by libvirt, shouldn't the order be preserved by default? If th= e OS scrambles it, then fine, not your problem... Are we on the right track here, is there some way to control the order as presented by Qemu when the VM's OS boots? If its at all helpful to understand the issue, here is our current proposed= workaround: =3Dstart 32 fresh VMs, each with 8 bridged connections and 4 82599 virtual = connections=3D take one generic xml file qemu-img one default disk image examine the HV's lspci output to find out bus numbering for the 82599 virtu= als add correct bus numbering in xml file virsh create the xml to get randomized MAC addresses ( better ways to do t= his...) save xml again shutdown VM > heres where the workaround occurs < mount VM write to /etc/udev/rules.d file to capture MAC vs PCI numbering in order of= presentation for booting etc etc -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1089006 Title: Qemu scrambles order of eth devices in vm Status in QEMU: New Bug description: HV =3D 12.04 LTS plus libvirt 1.0x VM =3D 12.04 LTS On the HV there are 12 eth interfaces which we make available to the VM. We have 4 10G virtual function interfaces, and 8 1G conventionally bridged interfaces. No matter what order we present the interfaces in the xml file, they come up in eth0-eth11 order on the VM as follows: ( the interfcaes do work, once you figure out which is which) eth0-eth7 not in order as compoared to the bridges on the HV (interfaces = file) or compared to the xml file for the VM, or compared to the bus number= s. MAC addresses are random. eth8-eth11 show up in the VM in order of PCU bus numbers just as you'd e= xpect, always after the bridged interfaces. Consulting the libvirt mailing list, the developer says they present the list in bus order to qemu, but qemu scrambles that order. That appears to me too, to be the case. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1089006/+subscriptions