Sonntag, 25. Januar 2009

XEN - Neues Physikalisches Interface ethX wird als __tmp{randomid} angezeigt

Bei der Installation eines neuen Netzwerkadapters wurde dieser zunächst gar nicht erkannt.

lspci zeigt das Gerät als "Unknown Device" an.

08:00.0 Ethernet controller: Intel Corporation Unknown device 10d3

Also habe ich mit Hilfe des kernel-xen-devel Pakets den Treiber für den Intel Corporation Gigabit CT Desktop Adapter von der intel Website recompiliert.

modinfo zeigt die Modulparameter

modinfo e1000e
filename: /lib/modules/2.6.18-92.1.10.el5.xs5.0.0.394.644xen/kernel/drivers/net/e1000e/e1000e.ko
version: 0.5.11.2-NAPI
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation,
srcversion: 32ADA6269A461F57F3D610E
alias: pci:v00008086d000010DFsv*sd*bc*sc*i*
alias: pci:v00008086d000010DEsv*sd*bc*sc*i*
alias: pci:v00008086d000010CEsv*sd*bc*sc*i*
alias: pci:v00008086d000010CDsv*sd*bc*sc*i*
alias: pci:v00008086d000010CCsv*sd*bc*sc*i*
alias: pci:v00008086d000010CBsv*sd*bc*sc*i*
alias: pci:v00008086d000010F5sv*sd*bc*sc*i*
alias: pci:v00008086d000010BFsv*sd*bc*sc*i*
alias: pci:v00008086d000010E5sv*sd*bc*sc*i*
alias: pci:v00008086d0000294Csv*sd*bc*sc*i*
alias: pci:v00008086d000010BDsv*sd*bc*sc*i*
alias: pci:v00008086d000010C3sv*sd*bc*sc*i*
alias: pci:v00008086d000010C2sv*sd*bc*sc*i*
alias: pci:v00008086d000010C0sv*sd*bc*sc*i*
alias: pci:v00008086d00001049sv*sd*bc*sc*i*
alias: pci:v00008086d0000104Dsv*sd*bc*sc*i*
alias: pci:v00008086d0000104Bsv*sd*bc*sc*i*
alias: pci:v00008086d0000104Asv*sd*bc*sc*i*
alias: pci:v00008086d000010C4sv*sd*bc*sc*i*
alias: pci:v00008086d000010C5sv*sd*bc*sc*i*
alias: pci:v00008086d0000104Csv*sd*bc*sc*i*
alias: pci:v00008086d000010BBsv*sd*bc*sc*i*
alias: pci:v00008086d00001098sv*sd*bc*sc*i*
alias: pci:v00008086d000010BAsv*sd*bc*sc*i*
alias: pci:v00008086d00001096sv*sd*bc*sc*i*
alias: pci:v00008086d000010D3sv*sd*bc*sc*i*
alias: pci:v00008086d0000109Asv*sd*bc*sc*i*
alias: pci:v00008086d0000108Csv*sd*bc*sc*i*
alias: pci:v00008086d0000108Bsv*sd*bc*sc*i*
alias: pci:v00008086d0000107Fsv*sd*bc*sc*i*
alias: pci:v00008086d0000107Esv*sd*bc*sc*i*
alias: pci:v00008086d0000107Dsv*sd*bc*sc*i*
alias: pci:v00008086d000010B9sv*sd*bc*sc*i*
alias: pci:v00008086d000010D5sv*sd*bc*sc*i*
alias: pci:v00008086d000010DAsv*sd*bc*sc*i*
alias: pci:v00008086d000010D9sv*sd*bc*sc*i*
alias: pci:v00008086d00001060sv*sd*bc*sc*i*
alias: pci:v00008086d000010A5sv*sd*bc*sc*i*
alias: pci:v00008086d000010BCsv*sd*bc*sc*i*
alias: pci:v00008086d000010A4sv*sd*bc*sc*i*
alias: pci:v00008086d0000105Fsv*sd*bc*sc*i*
alias: pci:v00008086d0000105Esv*sd*bc*sc*i*
depends:
vermagic: 2.6.18-92.1.10.el5.xs5.0.0.394.644xen SMP mod_unload Xen 686 REGPARM gcc-4.1
parm: copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
parm: TxIntDelay:Transmit Interrupt Delay (array of int)
parm: TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)
parm: RxIntDelay:Receive Interrupt Delay (array of int)
parm: RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)
parm: InterruptThrottleRate:Interrupt Throttling Rate (array of int)
parm: IntMode:Interrupt Mode (array of int)
parm: SmartPowerDownEnable:Enable PHY smart power down (array of int)
parm: KumeranLockLoss:Enable Kumeran lock loss workaround (array of int)
parm: CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int)

Nach dem Einbinden des Moduls e1000e wurde der Adapter korrekt erkannt:

08:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Gigabit CT Desktop Adapter
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d9cc0000 (32-bit, non-prefetchable) [size=128K]
Memory at d9c00000 (32-bit, non-prefetchable) [size=512K]
I/O ports at 3000 [size=32]
Memory at d9ce0000 (32-bit, non-prefetchable) [size=16K]
[virtual] Expansion ROM at d9f00000 [disabled] [size=256K]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [e0] Express Endpoint IRQ 0
Capabilities: [a0] MSI-X: Enable- Mask- TabSize=5
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number bf-a3-24-ff-ff-21-1b-00
Das Interface taucht allerdings noch gar nicht auf, da wir es XENserver noch nicht bekannt gemacht haben.

xe pif-scan host-uuid=9f3466c1-1d70-4d98-bdd3-afd5a2996e13

Aber leider taucht das Interface nicht als ethX, sondern als __tmp{randomid} auf

ifconfig -a
__tmp318865039 Link encap:Ethernet HWaddr 00:1B:21:24:A3:BF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Abhilfe schafft folgendes Vorgehen:

Löschen aller Referenzen auf __tmp318865039 in /etc/sysconfig/network-scripts (Es gibt dort Dateien a la .ifcfg-br__tmp318865039.xapi-new oder .ifcfg-__tmp318865039.xapi-new oder .route-br__tmp318865039.xapi-new )

$ xe pif-list
uuid ( RO) : 6b572955-4aae-e1f3-4018-d11a9a98ed29
device ( RO): __tmp318865039
currently-attached ( RO): false
VLAN ( RO): -1
network-uuid ( RO): 990842bd-8866-d424-3366-aba9046e99a0


uuid ( RO) : 050494a9-090b-b654-4a05-b364a4ba508e
device ( RO): eth2
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 4855b551-0ef1-98ef-8387-fd38f94b7ec9


uuid ( RO) : e9f57ef3-1771-6fe3-fce6-7e79d9a91c6e
device ( RO): eth1
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 3d7d2980-6dcf-431b-d6b3-95b4df524f60


uuid ( RO) : f7c7ad6e-b93c-7b01-2381-a062ba3d847e
device ( RO): eth2
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 4855b551-0ef1-98ef-8387-fd38f94b7ec9


uuid ( RO) : 592ce38a-3be3-fc98-a0ce-edb1bfa5080b
device ( RO): eth0
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 22c9dc52-bdb6-0573-7a89-783477cb4975


uuid ( RO) : 31def702-991e-5cee-7227-996207516c81
device ( RO): eth0
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 22c9dc52-bdb6-0573-7a89-783477cb4975


uuid ( RO) : ac711922-d7b3-9b56-13dc-a4a676fae998
device ( RO): eth1
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 3d7d2980-6dcf-431b-d6b3-95b4df524f60
"Vergessen" der fehlerhaften Einbindung

xe pif-forget uuid=6b572955-4aae-e1f3-4018-d11a9a98ed29
Einbinden mittels pif-introduce

xe help pif-introduce
command name : pif-introduce
reqd params : host-uuid, mac, device
optional params :
description : Create a new PIF object representing a physical interface on a host
xe pif-introduce host-uuid=9f3466c1-1d70-4d98-bdd3-afd5a2996e13 mac=$MAC device=eth3
Alles ist OK

xe pif-list
uuid ( RO) : 050494a9-090b-b654-4a05-b364a4ba508e
device ( RO): eth2
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 4855b551-0ef1-98ef-8387-fd38f94b7ec9


uuid ( RO) : e9f57ef3-1771-6fe3-fce6-7e79d9a91c6e
device ( RO): eth1
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 3d7d2980-6dcf-431b-d6b3-95b4df524f60


uuid ( RO) : f7c7ad6e-b93c-7b01-2381-a062ba3d847e
device ( RO): eth2
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 4855b551-0ef1-98ef-8387-fd38f94b7ec9


uuid ( RO) : 592ce38a-3be3-fc98-a0ce-edb1bfa5080b
device ( RO): eth0
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 22c9dc52-bdb6-0573-7a89-783477cb4975


uuid ( RO) : 31def702-991e-5cee-7227-996207516c81
device ( RO): eth0
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 22c9dc52-bdb6-0573-7a89-783477cb4975


uuid ( RO) : ac711922-d7b3-9b56-13dc-a4a676fae998
device ( RO): eth1
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 3d7d2980-6dcf-431b-d6b3-95b4df524f60


uuid ( RO) : 95485b20-442e-4cf3-7fa6-1c4c26f812c9
device ( RO): eth3
currently-attached ( RO): false
VLAN ( RO): -1
network-uuid ( RO): 47ab1694-6933-1ef9-984b-79eb05469343

1 Kommentar:

  1. Hello Tiri.

    Thanks for posting this.
    I have re-written parts of your post to english, and put it on my site, here: http://fragged.nu/2009/08/re-arrange-network-interface-cards-in-xenserver/

    AntwortenLöschen