スポンサード リンク
PCIBACKが利用する為のDomain0の設定
Posted at 07/05/13 PermaLink» Comment(0)» Trackback(0)»
Domain0のカーネルの再構築が終わりましたので、
Domain0自体の設定を行います。
1.利用しているカードの情報を調べます。
[root@server ~]# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) Serial ATA Storage Controller RAID (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
03:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
04:00.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
04:04.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
04:00.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface というのが
私のX100Pカードです。
ここでは、04:00.0をチェックしておきます。
2.X100PをPCIBACKさせる為に、以下の修正を行います。
[root@server ~]# vi /etc/rc.d/rc.local
# 以下のコメントを追加します。modprobe pciback
sleep 2
SLOT=0000:04:00.0
# Add a new slot to the PCI Backend's list
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind
3.ブートローダーにも設定を行います。
[root@server ~]# vi /boot/grub/menu.lst
# 以下を追加します。title CentOS (2.6.16.33-xen)
root (hd0,0)
kernel /xen-3.0.4-1.gz dom0_mem=256M
module /vmlinuz-2.6.16.33-xen ro root=/dev/sda3 ro console=tty0 pciback.hide=(04:00.0)
module /initrd-2.6.16.33-xen.img
これでDomain0に対する設定が終わりました。
q