雑木林

頭の中の整理と忘れないための確認メモ

vSphere ESXi 6.5でRealtek NICを動かす(ESXi-Custmizer-PS編)

1年以上前にESXi-Custmizer-PSを使ってRealTekNICをESXi6.0上で認識させる方法について書きました。

zokibayashi.hatenablog.com

コンスタントに見ていただいているようなので、ESXi6.5の場合について触れておきます。

イメージ作成環境

基本的な環境設定は上記の記事を参照にしてください。

今回は、以下の構成で実施しております。PowerCLIは古くても大丈夫だと思いますが、ESXi-Customizerは2.5でないとESXi6.5に対応していません。

ESXi6.5のインストーラを作る

こちらにも書かれてありますが、ESXi6.5からsata-xahciは不要になりました。
仕方がって以下のような感じになります。
(ただ、ネイティブドライバにもやや難があるみたいなので、sata-xahciは残してもいいかもしれません。)

          Welcome to VMware PowerCLI!

Log in to a vCenter Server or ESX host:              Connect-VIServer
To find out what commands are available, type:       Get-VICommand
To show searchable help for all PowerCLI commands:   Get-PowerCLIHelp
Once you've connected, display all virtual machines: Get-VM
If you need more help, visit the PowerCLI community: Get-PowerCLICommunity

       Copyright (C) VMware, Inc. All rights reserved.


PowerCLI C:\> .\ESXi-Customizer-PS-v2.5.ps1 -v65 -vft -load net55-r8168

この信頼されていない発行元からのソフトウェアを実行しますか?
ファイル C:\ESXi-Customizer-PS-v2.5.ps1 の発行元は E=startcom@peetz-online.de,
CN=Andreas Peetz, L=Frankfurt, S=Hessen, C=DE
であり、このシステムで信頼されていません。信頼された発行元からのスクリプトのみ
を実行してください。
[V] 常に実行しない(V)  [D] 実行しない(D)  [R] 一度だけ実行する(R)
[A] 常に実行する(A)[?] ヘルプ (既定値は "D"): R

This is ESXi-Customizer-PS Version 2.5.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)

Logging to C:\Users\mobile\AppData\Local\Temp\ESXi-Customizer-PS-472.log ...

Running with PowerShell version 4.0 and VMware PowerCLI 6.5 Release 1 build 4624819

Connecting the VMware ESXi Online depot ... [OK]

Connecting the V-Front Online depot ... [OK]

Getting Imageprofiles, please wait ... [OK]

Using Imageprofile ESXi-6.5.0-20170404001-standard ...
(dated 04/07/2017 06:05:06, AcceptanceLevel: PartnerSupported,
For more information, see http://kb.vmware.com/kb/2149219.)

Load additional VIBs from Online depots ...
   Add VIB net55-r8168 8.039.01-napi [New AcceptanceLevel: CommunitySupported] [OK, added]

Exporting the Imageprofile to 'C:\\ESXi-6.5.0-20170404001-standard-customized.iso'. Please be patient ...


All done.

PowerCLI C:\>


後はこれをインストールするだけです。
なお、sata-xahciパッチを適用したesxi6.0からアップグレードしたのちに、ネイティブドライバに切り替えたい場合は、ESXiにsshログインした後にで以下のコマンドを実行してsata-xahciパッチを削除します。これはネイティブドライバに切り替えたい人用で、問題がなければそのままでもいいようです。

esxcli software vib remove -n sata-xahci

[参考]ESXi6.0のインストーラを作る

これは前回同様です。

PowerCLI C:\> .\ESXi-Customizer-PS-v2.5.ps1 -v60 -vft -load sata-xahci,net55-r8168

この信頼されていない発行元からのソフトウェアを実行しますか?
ファイル C:\ESXi-Customizer-PS-v2.5.ps1 の発行元は E=startcom@peetz-online.de, CN=Andreas Peetz, L=Frankfurt, S=Hessen,
 C=DE であり、このシステムで信頼されていません。信頼された発行元からのスクリプトのみを実行してください。
[V] 常に実行しない(V)  [D] 実行しない(D)  [R] 一度だけ実行する(R)  [A] 常に実行する(A)  [?] ヘルプ (既定値は "D"): R

This is ESXi-Customizer-PS Version 2.5.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)

Logging to C:\Users\mobile\AppData\Local\Temp\ESXi-Customizer-PS-7572.log ...

Running with PowerShell version 4.0 and VMware PowerCLI 6.5 Release 1 build 4624819

Connecting the VMware ESXi Online depot ... [OK]

Connecting the V-Front Online depot ... [OK]

Getting Imageprofiles, please wait ... [OK]

Using Imageprofile ESXi-6.0.0-20170304001-standard ...
(dated 03/26/2017 06:03:34, AcceptanceLevel: PartnerSupported,
For more information, see http://kb.vmware.com/kb/2149570.)

Load additional VIBs from Online depots ...
   Add VIB sata-xahci 1.39-1 [New AcceptanceLevel: CommunitySupported] [OK, added]
   Add VIB net55-r8168 8.039.01-napi [OK, added]

Exporting the Imageprofile to 'C:\\ESXi-6.0.0-20170304001-standard-customized.iso'. Please be patient ...


All done.

PowerCLI C:\>