Changes between Version 29 and Version 30 of Xen_Lab7


Ignore:
Timestamp:
Jan 25, 2010, 9:38:15 PM (14 years ago)
Author:
rider
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_Lab7

    v29 v30  
    4848}}}
    4949{{{
     50# 台中機器
    5051#!sh
    515201:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GT] (rev a2)
     
    6465        Kernel modules: nvidia, nvidiafb
    6566}}}
     67{{{
     68# 新竹機器
     6908:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GT] (rev a2) (prog-if 00 [VGA controller])
     70        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
     71        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
     72        Latency: 0
     73        Interrupt: pin A routed to IRQ 16
     74        Region 0: Memory at f2000000 (32-bit, non-prefetchable) [size=16M]
     75        Region 1: Memory at e0000000 (64-bit, prefetchable) [size=256M]
     76        Region 3: Memory at f0000000 (64-bit, non-prefetchable) [size=32M]
     77        Region 5: I/O ports at 2100 [size=128]
     78        Capabilities: <access denied>
     79        Kernel driver in use: nvidia
     80        Kernel modules: nvidiafb, nvidia
     81}}}
    6682----
    6783= 【Step 2: 產生一台實驗用虛擬機器】 =
     
    7894133 dist   = hardy    # Default distribution to install.
    7995134 image  = sparse   # Specify sparse vs. full disk images.
    80 163 gateway   = 192.168.100.254
     96163 gateway   = 192.168.168.254
    8197164 netmask   = 255.255.255.0
    82 165 broadcast = 192.168.100.255
     98165 broadcast = 192.168.168.255
    8399215 mirror = http://free.nchc.org.tw/ubuntu/
    84100258 serial_device = hvc0 #default
    85101}}}
    86102{{{
    87 $ sudo xen-create-image --hostname=xg01 --ip=192.168.100.X --mac=00:16:XX:XX:XX:XX --force
     103$ sudo xen-create-image --hostname=xg01 --ip=192.168.168.X --mac=00:16:00:00:00:XX --force
    88104}}}
    89105----
    90106= 【Step 3: PCI Frontend Configuration 設定你的 DomU 】 =
    91107{{{
    92 $ sudo gedit /etc/xen/xg01.cfg
     108$ sudo gedit /home/domains/xg01.cfg
    93109}}}
    94110{{{
     
    130146 * 隱藏 dom0 的PCI 匯流排的位址, 並交由 pciback 模組來控制該匯流排存取權.
    131147{{{
    132 $ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/nvidia/unbind
     148$ echo -n "0000:08:00.0" > /sys/bus/pci/drivers/nvidia/unbind
    133149}}}
    134150
    135151 * 將 dev_ids 轉到 pciback 成為新的 binding slot.
    136152{{{
    137 $ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/new_slot
    138 $ echo -n "0000:01:00.0" > /sys/bus/pci/drivers/pciback/bind
     153$ echo -n "0000:08:00.0" > /sys/bus/pci/drivers/pciback/new_slot
     154$ echo -n "0000:08:00.0" > /sys/bus/pci/drivers/pciback/bind
    139155}}}
    140156{{{
     
    143159{{{
    144160#!sh
    145 0000:01:00.0
     1610000:08:00.0
    146162}}}
    147163
    148164 * 警告: 請確認您的顯示卡資源沒有被其 Kernel module 佔有及控制.
    149165{{{
    150 $ ls -al /sys/bus/pci/devices/0000:01:00.0/ | grep driver
     166$ ls -al /sys/bus/pci/devices/0000:08:00.0/ | grep driver
    151167}}}
    152168{{{
     
    167183(unconstrained_dev_ids
    168184     #('0123:4567:89AB:CDEF')
    169      ('0000:01:00.0')
     185     ('0000:08:00.0')
    170186)
    171187}}}