vCenter Server Appliance 5.0做update後出現No Networking Detected..

  昨晚第一次透過Web連進vCenter Server Appliance看一看相關資訊後,웹을 통해 직접 업데이트 패치를 할 수 있다는 것을 발견하고,바로 클릭했다。업데이트가 완료된 후,화면에 다시 시작이 필요하다는 메시지가 표시되었고,vCenter Server Appliance를 재부팅한 후,다음 메시지가 나타났다”네트워크가 감지되지 않았습니다. 로그인 후 /opt/vmware/share/vami/vami_config_net 명령을 실행하여 네트워크를 구성하십시오”的錯誤訊息

  上網咕狗很快找到官方的KB正當開心KB所描述的情形跟我一模模一樣樣時沒想到解決方式竟然是提醒說更新前記得做快照…然後就教怎麼把網卡設定檔做備份等遇到這問題時就有解了看完瞬間晴天霹靂後來不死心的試各種方式結果發現無法將IP寫入設定檔加上前面KB的說明想想應該是網卡設定檔異常

  隨即試著幫Appliance環境新增一張VMXNET3的網卡重開之後仍無效再上網查詢failed to read network interface files for eth1的處理方式又找到另外一篇KB依照下列步驟重新設定新的網卡

::Copy the /etc/sysconfig/networking/devices/ifcfg-eth0 to /etc/sysconfig/networking/devices/ifcfg-eth1 file by running this command:

cp /etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth1

::Open the ifcfg-eth1 file using a text editor.

::Delete the vi /etc/sysconfig/networking/devices/ifcfg-eth1 command as it is specific to the vi editor. The user can choose to use any editor for this purpose.

::Edit the file adding values for your network.

::For example:

DEVICE=eth1
BOOTPROTO='static'
STARTMODE='auto'
TYPE=Ethernet
USERCONTROL='no'
IPADDR='192.168.1.117'
NETMASK='255.255.255.0'
BROADCAST='192.168.1.255'

::Create a symlink for this file in /etc/sysconfig/network by running this command:

ln -s /etc/sysconfig/networking/devices/ifcfg-eth1 /etc/sysconfig/network/ifcfg-eth1

::Restart the networking service to activate the new setup, by running this command:

service network restart

  做完之後Appliance總算復活看起來是更新之後不知道為啥他要去不存在的eth1 (原本是eth0),因此只要新增網卡再把相關設定好即可解決

【參考連結】

댓글 남기기

이메일 주소는 게시되지 않습니다. 필수 항목 표시 *

이 사이트는 Akismet을 사용하여 스팸을 줄입니다. 댓글 데이터 처리 방법 알아보기.