使用 ONIE 安裝的 Dell Networking SONiC 作業系統全新安裝

Résumé: 使用 ONIE Install 進行 Dell Networking SONiC 作業系統全新安裝。

Cet article concerne Cet article ne concerne pas Cet article n’est associé à aucun produit spécifique. Toutes les versions du produit ne sont pas identifiées dans cet article.

Instructions

使用 ONIE Install 進行 SONiC 作業系統全新安裝 

先決條件:

注意:ONIE 在 ONIE 安裝模式中啟動後,ONIE 安裝模式會持續存在,直到作業系統安裝成功為止。
  • 作用中主控台與交換器的連線
  • 存取 ONIE > ONIE 安裝。
  • 交換器必須可使用已載入 HTTP、TFTP 或 FTP 服務的作業系統檔案伺服器詳細資料 (本文使用 HTTP)。

指示:

ONIE 解除安裝:若交換器已安裝任何作業系統,在 ONIE 安裝新作業系統之前,必須先執行 ONIE 解除安裝。

  1. 交換器開機時會出現畫面,顯示已安裝的軟體版本,或是選擇輸入 ONIE。使用向上或向下箭頭選取 ONIE。使用箭頭也會停止自動倒數計時器(圖 1)。

ONIE 功能表

圖 1:ONIE 功能表
  1. 當 ONIE 功能表可用時,請使用向上和向下方向鍵選取 ONIE解除安裝作業系統 ,然後按下 ENTER 鍵。同樣,有一個倒數計時器,一旦使用箭頭,它就會停止(圖 2)

ONIE 子功能表

圖 2:ONIE 子功能表

  1. ONIE 會解除安裝所有現有的作業系統 (圖 3)

ONIE 解除安裝範例

圖 3:ONIE 解除安裝範例。

  1. 交換器會重新開機並開始 ONIE 安裝程序。


ONIE 自動作業系統安裝:交換器會自動啟動 ONIE 安裝程序 (ONIE 服務探索)。

  1. 交換器預設為 ONIE:如果沒有安裝作業系統,請安裝作業系統,或者您可以使用 ONIE 功能表的向上和向下箭頭選取 (圖 4)

奧妮:安裝作業系統

圖 4:奧妮:安裝作業系統。

  1. ONIE 服務探索正在透過 HTTP 尋找安裝檔案。它找到了一個名為 onie-installer,已檢查檔案檢查總和,並開始下載程序 (圖 5)

ONIE-安裝程式

圖 5:ONIE-安裝程式

  1. 分割區隨即建立,並開始安裝 (圖 6)

磁碟分割建立

圖 6:磁碟分割建立


ONIE 手動安裝作業系統:使用特定IP位址、服務和檔名手動安裝作業系統。

  1. 交換器預設為 ONIE:如果沒有安裝作業系統,請安裝作業系統,或者您可以使用 ONIE 功能表中的向上和向下箭頭選取。可以使用 ONIE 修復模式,但在此範例中我們使用 ONIE 安裝模式 (圖 7)

手動安裝、ONIE 安裝作業系統

圖 7:手動安裝、ONIE 安裝作業系統。

  1. 在 ONIE 提示下,自動 探索 程序必須以 onie-stop 命令。

注意:舊版的 ONIE 可能會使用此命令 onie-discovery-stop\start。此命令在稍後的 ONIE 版本中已淘汰。
 
Please press Enter to activate this console. Info: eth0:  Checking link... up.
Info: Trying DHCPv4 on interface: eth0
To check the install status inspect /var/log/onie.log.
Try this:  tail -f /var/log/onie.log
** Installer Mode Enabled **
ONIE:/ # onie-stop
discover: installer mode detected.
Stopping: discover... done.
ONIE:/ # Warning: Unable to configure interface using DHCPv4: eth0
  1. 如果 DHCP 程式尚未取得 IP,則可手動設定管理介面的 IP 位址 ifconfig eth0。執行 ping 伺服器以確認位址的連線能力 (圖 8)

    ONIE:/ #
    ONIE:/ # ifconfig eth0 10.0.0.219 netmask 255.255.255.0 up
    ONIE:/ #

ifconfig 範例

圖 8: ifconfig 範例

  1. 如果需要從本機子網路由到達安裝伺服器,請使用 ip route add 命令。使用以下方式檢查路由: ip route 命令。
ONIE:/ # ip route add default via 10.0.0.254
ONIE:/ #
ONIE:/ # ip route
default via 10.0.0.254 dev eth0
10.0.0.254/24 dev eth0  src 10.0.0.219
ONIE:/ #
  1. 使用 onie-nos-install 命令以從特定伺服器安裝特定作業系統檔案 (圖 9)
ONIE:/ #
ONIE:/ # onie-nos-install http://10.0.0.200/Enterprise_SONiC_OS_4.0.3_vs_Standard.bin
discover: installer mode detected.
Stopping: discover... done.
Info: Attempting http://10.0.0.200/Enterprise_SONiC_OS_4.0.3_vs_Standard.bin ...
Connecting to 10.0.0.200 (10.0.0.200:80)
installer            100% |*******************************|   913M  0:00:00 ETA
ONIE: Executing installer: http://10.0.0.200/Enterprise_SONiC_OS_4.0.3_vs_Standard.bin
Verifying image checksum ... OK.
Preparing image archive ... OK.
Installing SONiC in ONIE

ONIE-nos-install 範例

圖 9:ONIE-nos-install 範例


以上就是透過 ONIE 安裝 SONiC OS 的必要步驟如需進一步協助,請聯絡 Dell 技術支援部門。
 

相關的文章:

從 USB 磁碟機安裝 Dell Networking SONiC 映像

Informations supplémentaires

觀看本影片:

Produits concernés

Enterprise SONiC Distribution
Propriétés de l’article
Numéro d’article: 000212743
Type d’article: How To
Dernière modification: 11 juin 2024
Version:  6
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.