labunix's blog

labunixのラボUnix

VMWare hypervisor無償版にssh経由でNICドライバを追加する。

■VMWare hypervisor無償版にssh経由でNICドライバを追加する。
 VMware 6.0Update1での作業。
 メンテナンスなので、仮想マシンはあらかじめすべて停止しておく。

# uname -r -s -v -o
VMkernel 6.0.0 #1 SMP Release build-3029758 Aug 31 2015 00:54:00 ESXi2つの内、拡張NICが認識していない。

# lspci -v | grep Ether
0000:00:19.0 Ethernet controller Network controller: Intel Corporation 82567LM-3 Gigabit Network Connection [vmnic0]
0000:10:00.0 Ethernet controller Network controller: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC 

■wikiからダウンロードしてscpでコピー
 vSphere Clientでsshサービスを有効にしておく。
 なお、サポートレベルは「CommunitySupported」

$ w3m -dump https://vibsdepot.v-front.de/wiki/index.php/Net51-r8169 | grep Supported\$
CommunitySupported

$ wget http://vibsdepot.v-front.de/depot/vft/net51-r8169/net51-r8169-6.011.00-2vft.510.0.0.799733.x86_64.vib
$ md5sum net51-r8169-6.011.00-2vft.510.0.0.799733.x86_64.vib 
f06d21a4c692bbb659b1476416916a03  net51-r8169-6.011.00-2vft.510.0.0.799733.x86_64.vib
$ scp net51-r8169-6.011.00-2vft.510.0.0.799733.x86_64.vib root@vmhost:~/

■hypervisorホストでインストール
 再起動が必要なのでホストを再起動する。

# esxcli software acceptance set --level=CommunitySupported
Host acceptance level changed to 'CommunitySupported'.

# esxcli software vib install -v file:///net51-r8169-6.011.00-2vft.510.0.0.799733.x86_64.vib
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: VFrontDe_bootbank_net51-r8169_6.011.00-2vft.510.0.0.799733
   VIBs Removed: 
   VIBs Skipped: 
# reboot

■再起動後にvibの一覧に反映されていることを確認。

# esxcli software vib list | awk '/Community/{print $1}'
net51-r8169