[ESXi]自宅サーバにESXi7.0インストールで手こずった話
前回の記事から続いて、自作ベアボーンPCにESXiをインストールする記事になります
今回は訳があって、VMwareの標準イメージからインストールができなかったので、カスタムイメージ作成からの話になります
なぜカスタムイメージ作成なのかは、今回自作したベアボーンPCのNICはIntel I219-Vを使っていて、インストール途中で NICが認識できずインストールができなかったからになります
目標
手順
ESXi-Customizer-PSアクセス後、
ESXi-Customizer-PS.ps1
というファイルを作業用PCのC:\ESXi-Customizer
直下にダウンロードする
※C:\ESXi-Customizer
というフォルダは自分で作成してください作業用PCでPowerShellを管理者実行で起動し、以下のコマンドを実行
PS C:\WINDOWS\system32> cd C:\ESXi-Customizer PS C:\ESXi-Customizer> Set-ExecutionPolicy Unrestricted 実行ポリシーの変更 実行ポリシーは、信頼されていないスクリプトからの保護に役立ちます。実行ポリシーを変更すると、about_Execution_Policies のヘルプ トピック (https://go.microsoft.com/fwlink/?LinkID=135170) で説明されているセキュリティ上の危険にさらされる可能性があります。実行ポリシーを変更しますか? [Y] はい(Y) [A] すべて続行(A) [N] いいえ(N) [L] すべて無視(L) [S] 中断(S) [?] ヘルプ (既定値は "N"): y PS C:\ESXi-Customizer> Install-Module -Name VMware.PowerCLI
ここからI219-Vのドライバ(NE1000)をダウンロードし、zip解凍後
Intel-NUC-ne1000_0.8.4-3vmw.670.0.0.8169922-offline_bundle-16654787\vib20\ne1000-intelnuc\VMW_bootbank_ne1000-intelnuc_0.8.4-3vmw.670.0.0.8169922.vib
を作業用PCのC:\ESXi-Customizer
直下にコピーしますPowerShellに以下のコマンドを実行
PS C:\ESXi-Customizer>.\ESXi-Customizer-PS.ps1 -v70 -pkgDir C:\ESXi-Customizer\ -NSC This is ESXi-Customizer-PS Version 2.8.1 (visit https://ESXi-Customizer-PS.v-front.de for more information!) (Call with -help for instructions) Logging to C:\Users\XXX\AppData\Local\Temp\ESXi-Customizer-PS-18088.log ... Running with PowerShell version 5.1 and VMware PowerCLI version .. build Connecting the VMware ESXi Software depot ... [OK] Getting Imageprofiles, please wait ... [OK] Using Imageprofile ESXi-7.0U1sc-17325020-standard ... (Dated 12/15/2020 10:50:21, AcceptanceLevel: PartnerSupported, The general availability release of VMware ESXi Server 7.0U1sc brings whole new levels of virtualization performance to datacenters and enterprises.) Loading Offline bundles and VIB files from C:\ESXi-Customizer\ ... Loading C:\ESXi-Customizer\VMW_bootbank_ne1000-intelnuc_0.8.4-3vmw.670.0.0.8169922.vib ... [OK] Add VIB ne1000-intelnuc 0.8.4-3vmw.670.0.0.8169922 [OK, added] Exporting the Imageprofile to 'C:\ESXi-Customizer\ESXi-7.0U1sc-17325020-standard-customized.iso'. Please be patient ...
-v70は、ベースとなる標準イメージのバージョンを表しています。
作成されたカスタムイメージをISO to USB等のソフトを使ってUSBに書き込み
サーバにUSBを接続し、USBブート