Skip to contentSkip to conversation

Qemu scrambles eth device order in VM

Qemu-devel john fisher 1 participant 1 message Dec 11, 2012

lore
Share & tools
lore
#0 lore raw

HV = 12.04 LTS Ubuntu + libvirt 1.0x
VM = 12.04 LTS Ubuntu

When multiple bridged eth interfaces are created on the VM, they do not appear in predictable order. They appear before virtual function addresses, but eth0-eth7 in this case do not order according to the interfaces file on the HV, nor the PCI bus, nor the xml file used to virsh create the VM.

A libvirt developer reports that they send the eths to qemu in PCI bus order.

A bug? workarounds? ideas? Correction?

an interface stanza from the xml used to create the VM:

    <interface type='bridge'>
      <mac address='52:54:00:72:92:c4'/>
      <source bridge='br11'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x11' function='0x0'/>
    </interface>

(I have also entered a bug report)

thanks.

Signature · 1 line
John Fisher