使用 ONIE 安装的 Dell Networking SONiC 操作系统全新安装

Summary: 使用 ONIE 安装程序全新安装 Dell Networking SONiC 操作系统。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

使用 ONIE 安装进行 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-installer

图 5:ONIE-installer

  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 所需的步骤到此结束。如果需要进一步的帮助,请联系戴尔技术支持。
 

相关文章:

从 USB 驱动器安装 Dell Networking SONiC 映像

Additional Information

请观看此视频:

Affected Products

Enterprise SONiC Distribution
Article Properties
Article Number: 000212743
Article Type: How To
Last Modified: 11 Jun 2024
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.