Cisco Nexus 9000交换机Convert Image from ACI Image to NXOS

现场1台Neuxs 93180交换机,原来用于ACI环境 ,现在要当做Standalone交换机使用.

所以需要将镜像进行转换 from ACI to NXOS

1 将镜像文件放到U盘,插到交换机上

2 重启交换机

3 启动过程中按Ctrl C进入loader模式

Enter a break sequence (Ctrl-C or Ctrl-]) during the initial boot sequence to access the loader> prompt.

loader > 

经过实际真机测试,发现ctrl ]是不生效的,只有 ctrl C生效。
测试的真机是: 93180 和93240 , 其他型号会使用ctrl ] ? 未知

4 dir查看 U盘

loader > dir                                                                 
usb1::  
 System Volume Information
 nxos.9.3.10.bin

5 从U盘中加载NXOS镜像启动

loader > boot usb1:nxos.9.3.10.bin                                             

Security Lock
Booting usb1:nxos.9.3.10.bin 
Trying diskboot 
 Filesystem type is fat, partition type 0xc
Image valid


Image Signature verification was Successful.

6 启动完成,进入初始化界面

         ---- System Admin Account Setup ----


Do you want to enforce secure password standard (yes/no) [y]: no

  Enter the password for "admin": 2022 Nov 15 03:53:39 switch %$ VDC-1 %$ %VMAN-2-ACTIVATION_STATE: Successfully activated virtual service 'guestshell+'  
2022 Nov 15 03:53:39 switch %$ VDC-1 %$ %VMAN-2-GUESTSHELL_ENABLED: The guest shell has been enabled. The command 'guestshell' may be used to access it, 'guestshell destroy' to remove it.

  Invalid admin password. Please try again.

  Enter the password for "admin": 
  Invalid admin password. Please try again.

重点来了,此时只是从U盘加载镜像到了内存,还需要再次将镜像拷贝到交换机的bootflash中,并进行安装

7 镜像从U盘拷贝到bootflash:

switch# copy usb1:nxos.9.3.10.bin bootflash: 
Copy progress 100% 1966000KB
Copy complete, now saving to disk (please wait)...
Copy complete.

8 正式安装镜像

switch# install all nxos bootflash:nxos.9.3.10.bin 

以下为安装过程中的log输出

Installer will perform compatibility check first. Please wait. 
Installer is forced disruptive

Verifying image bootflash:/nxos.9.3.10.bin for boot variable "nxos".
[#[####################] 100% -- SUCCESS

Verifying image type.
[[####################] 100% -- SUCCESS

Preparing "nxos" version info using image bootflash:/nxos.9.3.10.bin.
[####################] 100% -- SUCCESS

Preparing "bios" version info using image bootflash:/nxos.9.3.10.bin.
[####################] 100% -- SUCCESS
  
Performing module support checks.
[####################] 100% -- SUCCESS

交换机会进行兼容性检测,检测完成后会提示是否继续。输入Y

Switch will be reloaded for disruptive upgrade.
Do you want to continue with the installation (y/n)?  [n] y    //提示重启,输入Y

9 安装完成

Performing configuration copy.
[####################] 100% -- SUCCESS

Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS


Install has been successful.
switch#   

10 查看启动项已经生效

switch# show boot 
Current Boot Variables:
sup-1
NXOS variable = bootflash:/nxos.9.3.10.bin
Boot POAP Disabled

Boot Variables on next reload:
sup-1
NXOS variable = bootflash:/nxos.9.3.10.bin
Boot POAP Disabled
switch#

11 保存配置

switch# copy runn start 
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
switch# reload
posted @ 2024-05-18 09:53  朱军杰  阅读(21)  评论(0)    收藏  举报  来源