PCI card not showing up in DomU using pciback

General support questions including new installations
Post Reply
simonb
Posts: 14
Joined: 2005/02/15 13:37:53

PCI card not showing up in DomU using pciback

Post by simonb » 2008/09/10 08:41:55

I am trying to make a Intel Corporation 82571EB Gigabit Ethernet Controller on PCI address 0000:0c:00.0 visible to a fully virutalised DomU. However it doesn't show up when I start the DomU.

If I do an "lspci | grep Ethernet" on the Dom0 machine I get...

[code]
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
07:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
0c:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
0c:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
[/code]

This is my modprobe.conf file with two lines added at the end to bind the PCI address to pciback instead of the e1000e driver.

[code]
alias eth0 bnx2
alias eth1 bnx2
alias eth2 e1000e
alias eth3 e1000e
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptsas
alias scsi_hostadapter2 ata_piix
alias peth0 bnx2
options pciback hide=(0000:0c:00.0)
install e1000e /sbin/modprobe pciback; /sbin/modprobe --first-time --ignore-install e1000e
[/code]

After a reboot, if I query the e1000e and pciback drivers I can see that 0000:0c:00.0 has bound successfully to pciback.

[code]
[root@localhost ~]# ls /sys/bus/pci/drivers/e1000e/
0000:0c:00.1 bind module new_id unbind
[root@localhost ~]# ls /sys/bus/pci/drivers/pciback/
0000:0c:00.0 bind module new_id new_slot permissive quirks remove_slot slots unbind
[/code]

Next I add a line to my xen config of the DomU machine to make the PCI slot available.

[code]
name = "CentOS5.2"
uuid = "46e87a16-c4af-5f21-c729-5436c8f53ce2"
maxmem = 1000
memory = 1000
vcpus = 2
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
vncunused = 1
disk = [ "file:/var/lib/xen/images/CentOS5.2.img,hda,w" ]
vif = [ "mac=00:16:3e:74:90:0f,bridge=virbr0" ]
serial = "pty"
pci=['0000:0c:00.0']
[/code]

However, when I start the DomU the PCI address, 0000:0c:00.0, is nowhere to be seen.

[code]
[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Class ff80: XenSource, Inc. Xen Platform Device (rev 01)
00:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20)
[/code]

I am testing with a fully virutalised machine because I aim to use this with a Windows DomU eventually.

Would appreciate any help getting this to work.

Thanks & regards

Post Reply

Return to “CentOS 5 - General Support”