启动进入 ONIE
问题
我已经运行了 Cumulus Linux,但我想启动回 ONIE 以解决故障排除/安装问题。
您可以使用 ONIE(开放网络安装环境)在开放式网络交换机上安装 Cumulus Linux。
环境
- Cumulus Linux,所有版本
解决方案
通过控制台登录到您的交换机。
重启交换机
cumulus@switch~:# sudo reboot
当您看到以下提示时,按任意键
Hit any key to stop autoboot: 0
仅限 ARM 交换机:交换机现在启动进入 U-Boot。
switch-> version U-Boot 2013.01.01-g1f891da (Sep 23 2013 - 18:31:29) ONIE 1.6.5 powerpc-linux-gcc (GCC) 4.7.2 GNU ld (GNU Binutils) 2.22 switch-> switch->
要启动进入 ONIE 安装模式,请输入以下命令
-> setenv onie_boot_reason install -> run bootcmd
安装模式会自动开始尝试安装交换机二进制文件(如 Cumulus Linux)。如果它一直启动进入 Cumulus Linux,而您只想进入 ONIE 提示符,请改用救援模式
-> setenv onie_boot_reason rescue -> run bootcmd
从 GRUB 菜单中选择 ONIE,然后按 Enter 键访问 ONIE 控制台。
GNU GRUB version 2.02-cl3u3 +----------------------------------------------------------------------------+ | Cumulus Linux GNU/Linux | | Advanced options for Cumulus Linux GNU/Linux | | Load a read-only snapshot | |*ONIE | | ACCTON-DIAG | | | | | | | | | | | | | | | +----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, `e' to edit the commands before booting or `c' for a command-line. The highlighted entry will be executed automatically in 4s.
选择要使用的 ONIE 模式,然后按 Enter 键。
GNU GRUB version 2.02~beta3 +----------------------------------------------------------------------------+ | ONIE: Install OS | |*ONIE: Rescue | | ONIE: Uninstall OS | | ONIE: Update ONIE | | ONIE: Embed ONIE | | ACCTON-DIAG | | | | | | | | | | | | | +----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, `e' to edit the commands before booting or `c' for a command-line. The highlighted entry will be executed automatically in 1s.
出现 ONIE 提示符。
ONIE:/ #