2012年7月1日

客製化vSphere 5安裝映像檔Part II - 加入驅動程式

[本篇是客製化vSphere 5安裝映像檔 - 加入修補程式的後續]

除了加入修補程式之外, 驅動程式也是一個常需要加進安裝映像檔的東西.
接下來以Cisco UCS Virtual Interface Card為例子來示範如何把驅動程式加入安裝映像檔.

需要的軟體:
Cisco UCS Virtual Interface Card的驅動程式, Cisco VIC是CNA卡, 所以有network跟storage兩種驅動程式.
  • enic_driver_2.1.2.22-offline_bundle-564611.zip
  • scsi-fnic-1.5.0.8-1OEM.500.0.0.472560.x86_64.zip

前面的步驟和加入修補程式一樣, 做完 Get-EsxImageProfile | Sort-Object ModifiedTime | Out-GridView 這個步驟後先停下來.


再來把驅動程式加入depot:
> Add-ESXSoftwareDepot .\enic_driver_2.1.2.22-offline_bundle-564611.zip, .\update-from-esxi5.0-5.0_update01.zip
> Add-ESXSoftwareDepot .\scsi-fnic-1.5.0.8-1OEM.500.0.0.472560.x86_64.zip, .\update-from-esxi5.0-5.0_update01.zip


確認一下驅動程式名稱: (net-enic, scsi-fnic)
> Get-EsxSoftwarePackage | Sort-Object Vendor | Out-GridView
既有的image profile不能直接編輯, 所以先複製一份:
> New-EsxImageProfile -CloneProfile "ESXi-5.0.0-20120604001-standard" -name "ESXi-5.0.0-20120604001-Cisco" -Vendor "Cisco"

把驅動程式加進去:
> Add-EsxSoftwarePackage -ImageProfile "ESXi-5.0.0-20120604001-Cisco" -SoftwarePackage "net-enic"
> Add-EsxSoftwarePackage -ImageProfile "ESXi-5.0.0-20120604001-Cisco" -SoftwarePackage "scsi-fnic"

接下來匯出成ISO檔就完成了:
> Export-EsxImageProfile -ImageProfile "ESXi-5.0.0-20120604001-Cisco" –NoSignature -ExportToISO -filepath .\ESXi-5.0.0-20120604001-Cisco.iso

繼續閱讀:

客製化vSphere 5安裝映像檔 - 加入修補程式

需要的軟體: (括號內是我在這篇文章裡面使用的版本的檔名)

如果你是第一次使用PowerCLI, 記得變更一下執行原則:
> Set-ExecutionPolicy RemoteSigned

把vSphere 5 offline bundle跟修補程式放到一個資料夾內(方便處理):

用Add-ESXSoftwareDepot把offline bundle跟修補程式加在一起:
> Add-ESXSoftwareDepot .\ESXi500-201204001.zip, .\update-from-esxi5.0-5.0_update01.zip
> Add-ESXSoftwareDepot .\ESXi500-201205001.zip, .\update-from-esxi5.0-5.0_update01.zip
> Add-ESXSoftwareDepot .\ESXi500-201206001.zip, .\update-from-esxi5.0-5.0_update01.zip

列出image profile:
> Get-EsxImageProfile

可以pipe到Out-GridView比較容易看, 用日期排序一下找出最新(後)且名稱結尾是standard的profile (ESXi-5.0.0-20120604001-standard)
> Get-EsxImageProfile | Sort-Object ModifiedTime | Out-GridView

接下來就是把它匯出成ISO檔:
> Export-EsxImageProfile -ImageProfile "ESXi-5.0.0-20120604001-standard" -ExportToISO -filepath .\ESXi-5.0.0-20120604001.iso
 用來開機安裝可以發現已經是新的build了:



繼續閱讀:
客製化vSphere 5安裝映像檔Part II - 加入驅動程式
客製化vSphere 5安裝映像檔Part III - 懶人篇
客製化vSphere 5安裝映像檔Part IV - 懶人進化篇

2011年12月23日

把Waterfox變成可攜式瀏覽器


Waterfox 14 (含)及更新的版本請改參考:

首先要下載Waterfox:

接下來要解出需要的部分:
  • 用7-zip之類的程式解開Waterfox安裝檔, 保留core這個資料夾並改名為Firefox, 刪除其餘檔案

再來是下載並安裝Firefox Portable:
  • Firefox Portable
  • 把剛剛保留的Firefox資料夾複製到Firefox Portable所在目錄下的App資料夾(蓋掉原來的Firefox資料夾)
  • 改裝完成!


注意事項:
  • 因為Waterfox是64-bit瀏覽器, 你必須有64-bit Windows才能使用
  • 必須先安裝Visual C++ 2010 Redistributable Package (x64) (選擇跟你作業系統一樣的語言版本安裝)
  • 相關的程式也必須是64-bit版, 例如Java Runtime, Adobe Flash...等

64-bit Adobe Flash安裝請參考:
找到需要的部分(NPSWF64XXX.dll 例如: NPSWF64_11_1_102.dll):
  • 在 C:\Windows\System32\Macromed\Flash 資料夾裡
  • 把NPSWF64_11_1_102.dll複製到瀏覽器所在目錄下的App\Firefox\plugins資料夾即可(要先新增plugins資料夾)

版權宣告

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