2009年2月15日

製作一片ProLiant可用的WinPE可開機光碟


比較通用的方法請改參考:  製作WinPE可開機光碟 (使用Windows AIK)

WinPE開機光碟可以用來安裝作業系統或是維修使用, 特別是拿來救資料或是更改設定. 一般從網路上下載來的WinPE在PC上使用可能沒問題, 但是在像ProLiant這種伺服器上可能就起不了作用. 原因是這些WinPE通常都是基於Windows XP, 而且沒把Smart Array這類的磁碟陣列卡驅動程式包進去, 所以用WinPE開機後看不到伺服器上的硬碟.

求人不如求己, 我們就來製作一片含ProLiant所需驅動程式的WinPE開機光碟.

所需軟體及設備:
  • 適用於 Windows Vista SP1 和 Windows Server 2008 的自動化安裝套件 Windows Automated Installation Kit (AIK) 下載
  • SmartStart Scripting Toolkit 下載Win32版 下載Winx64版
  • 一台符合安裝Windows AIK系統需求條件的機器
注意:
以下的步驟是用來建立x64版的WinPE, 如果要製作32-bit的版本請使用32-bit的SmartStart Scripting Toolkit及自行修改相對的參數.

步驟1:
首先安裝Windows Automated Installation Kit.


步驟2:
安裝完Windows Automated Installation Kit後, 解開Winx64版的SmartStart Scripting Toolkit, 裡面有一個名為hpDrivers的資料夾.
這裡用的是SmartStart Scripting Toolkit v2.0 x64版, hpDrivers資料夾裡有一個叫winpe21psp811x64.exe的檔案就是我們所需要的驅動程式, 把它解到另一個資料夾(下面步驟用的例子是放在c:\winpe21drivers)留待稍後使用.
從readme.txt中可以得知所包含的驅動程式:
WinPE 2.1 x64 Driver bundle structure
-------------------------------------

\storage\hpcisss2 - HP ProLiant Smart Array SAS/SATA Controller Driver
\storage\hpcisss  - HP ProLiant Smart Array 5x and 6x Controller Driver
\nic\b06nd        - HP NC-Series Broadcom 1Gb NIC Driver
\nic\evnd         - HP NC-Series Broadcom 10Gb NIC Driver
\nic\n1g          - HP NC-Series Intel NIC Driver
\nic\n1e          - HP NC-Series Intel N1E NIC Driver
\nic\q57          - HP NC-Series Broadcom NIC Driver
\system\hpqilo2   - HP ProLiant iLO 2 Management Controller Driver
\system\cpqasm2   - HP ProLiant iLO Advanced and Enhanced System Management Controller Driver
\system\cpqcidrv  - HP ProLiant Integrated Lights-Out Management Interface Driver (used by HPONCFG)
\system\hpsstkio  - HP Toolkit I/O driver (no INF, file must be copied to \windows\system32\drivers directory)


步驟3:
執行[Windows PE 工具命令提示]


步驟4:
在Windows PE 工具命令提示裡執行下列指令:
copype.cmd amd64 c:\winpe

imagex /mountrw c:\winpe\winpe.wim 1 c:\winpe\mount

peimg /install=*WMI* c:\winpe\mount\windows
peimg /install=*HTA* c:\winpe\mount\windows
peimg /install=*MDAC* c:\winpe\mount\windows
peimg /install=*Scripting* c:\winpe\mount\windows
peimg /install=*XML* c:\winpe\mount\windows

peimg /inf=c:\winpe21drivers\nic\b06nd\b06nd.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\nic\n1g\n1g6032e.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\nic\n1e\n1e6032e.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\nic\q57\q57nd60a.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\system\hpqilo2\hpqilo2.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\system\cpqasm2\cpqasm2.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\system\cpqcidrv\cpqcidrv.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\storage\hpcisss\hpcisss.inf c:\winpe\mount\windows
peimg /inf=c:\winpe21drivers\storage\hpcisss2\hpcissx2.inf c:\winpe\mount\windows

copy c:\winpe21drivers\system\hpsstkio\hpsstkio.sys c:\winpe\mount\windows\system32\drivers


步驟5:
編輯[startnet.cmd]
notepad c:\winpe\mount\windows\system32\startnet.cmd
加入下列幾行:
wpeinit.exe
drvload x:\windows\inf\oem0.inf
drvload x:\windows\inf\oem1.inf
drvload x:\windows\inf\oem2.inf
drvload x:\windows\inf\oem3.inf
drvload x:\windows\inf\oem4.inf
drvload x:\windows\inf\oem5.inf
drvload x:\windows\inf\oem6.inf
drvload x:\windows\inf\oem7.inf
drvload x:\windows\inf\oem8.inf


步驟6:
準備及產生最終的wim檔案, 並把它複製到ISO資料夾內:
peimg /prep c:\winpe\mount\windows
(yes)

imagex /unmount C:\winpe\mount /commit

copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim
(Yes)


步驟7:
產生可開機的ISO檔:
oscdimg -n -bc:\winpe\etfsboot.com c:\winpe\ISO x:\winpe\proliant.iso


步驟8:
proliant.iso就是我們要的[ProLiant可用的WinPE可開機光碟]檔, 可以把它燒成光碟, 或是利用iLO的virtual media功能掛載給伺服器開機使用.


開機過程擷圖:

(光碟預設掛載在X:)

用diskpart看看可以看到那些硬碟:

資料來源:
本文主要是根據SmartStart Scripting Toolkit內hpDrivers中的readme.txt內容所寫成.

 
繼續閱讀:
製作WinPE可開機光碟 (使用Windows AIK)
製作WinPE可開機光碟或USB大拇哥 (使用Windows ADK)

2 則留言:

  1. 請問步驟8的第三個圖片中裡面的指令是自動跳出來的嗎?還是要自行輸入?不好意思我卡在圖三就沒動靜了?光碟一定要用dvd灌嗎?謝謝

    回覆刪除
  2. 是的(如果你產生的ISO是正確的), 那些指令就是步驟5裡面的...

    回覆刪除

版權宣告

Creative Commons License
本著作由 PROLIANTAHOLIC 製作,以創用CC 姓名標示-非商業性-禁止改作 3.0 台灣 授權條款釋出。
文內所述之產品和公司名稱均為其各自擁有者的商標及(或)服務標記。