This article details the procedure to perform recovery installation on Juniper Networks QFX5200-48Y Switch by using an emergency boot device such as a USB.
If Junos OS on your device is damaged or corrupted in some way that prevents the software from loading correctly, you may need to perform a recovery installation by using an emergency boot device.
Perform the following steps:
00.Advance preparationsYou have to upgrade bios to v49.(Please refer to TSB70308 [juniper.net].)*If you do not upgrade the bios, the installation will fail.Download the required Install Media (.img) file from the Downloads page.QFX5200-48Y uses UEFI boot so a user has to use secure image like install-media-host-usb-qfx-5e-x86-64-20.4R3-S3.4-secure.img.Create an emergency boot device on your pc using GUI-based tools such as Rufus or ISO Burner for Windows or Etcher for Mac.Insert the USB into the QFX5200-48Y switch
01.Reboot the switch from the CLI by using "request system reboot hypervisor at now". Alternatively, you can power cycle the switch.02.Push [ESC] to go Bios
------------------------------------------------------------------------------ Version 2.19.1269. Copyright (C) 2022 American Megatrends, Inc. BIOS Date: 06/21/2022 16:33:58 Ver: AS7316 V49 20220621 Press <DEL> or <ESC> to enter setup. ------------------------------------------------------------------------------
03.Move [Save & Exit]tab
------------------------------------------------------------------------------ Aptio Setup Utility - Copyright (C) 2022 American Megatrends, Inc. Main Advanced IntelRCSetup Security Boot [Save & Exit] ------------------------------------------------------------------------------
04.Select [UEFI: xx (USB device)] and [Enter]
/----------------------------------------------------+-------------------------\ | Save Options ^| | | Save Changes and Exit *| | | Discard Changes and Exit *| | | *| | | Save Changes and Reset *| | | Discard Changes and Reset *| | | *| | | Save Changes *| | | Discard Changes *| | | +|-------------------------| | Default Options +|><: Select Screen | | Restore Defaults +|^v: Select Item | | Save as User Defaults +|Enter: Select | | Restore User Defaults +|+/-: Change Opt. | | +|F1: General Help | | Boot Override +|F2: Previous Values | | UEFI: USB, XXXXX<-----(Select this) +|F3: Optimized Defaults | | v|F4: Save & Exit | | |ESC: Exit | \----------------------------------------------------+-------------------------/
05.Select [Install Juniper Linux xxxx] and [Enter]
/----------------------------------------------------------------------------\ | Reboot | |*Install Juniper Linux with secure boot support <-----(Select this) | | Boot to host shell | | | | | | | | | | | | | | | | | | | \----------------------------------------------------------------------------/
06.The format installation starts.
error: no suitable video mode found. Booting in blind mode i8042: No controller found First Level Bootstrap using initramfs... Mounting boot device LABEL=USB-INSTALL Unpacking initrd.cpio.gz .... 1061989 blocks Copying application package .. total 1.3G drwxr-xr-x 2 root root 60 Jun 20 09:51 . drwxrwxrwt 22 root root 480 Jun 20 09:51 .. -rwxr-xr-x 1 root root 1.3G Jun 20 09:51 application.tgz Unmount boot device LABEL=USB-INSTALL Starting init Installation on QFX5_48Y Install device is /dev/sda /dev/sda size is 30208 Mb Deleting partition table on /dev/sda ... --------------------------------- Securely erasing disks : /dev/sda This may take some time .. Erasing disk : /dev/sda Secure erase of disks completed --------------------------------- Clear partition table. debug ************************** Booting in EFI Environment ************************** debug ----------------------------------------------------------------------- Partition size requested on /dev/sda ----------------------------------------------------------------------- debug EFI partition size : 200 MB Boot partition size : 1024 MB Rootfs partition size : 1848 MB Var partition size : 9966 MB Swap partition size : 808 MB App partition size : 16161 MB ----------------------------------------------------------------------- debug --snip--
FreeBSD/amd64 (Amnesiac) (ttyu0) login: root --- JUNOS 20.4R3-S3.4 Kernel 64-bit JNPR-11.0-20220228.d118be0_buil root@:RE:0% cli {master:0} root> show version | no-more localre: -------------------------------------------------------------------------- Model: qfx5200-48y Junos: 20.4R3-S3.4<--------------------------------------------------------------<*> JUNOS OS Kernel 64-bit [20220228.d118be0_builder_stable_11-204ab] JUNOS OS libs [20220228.d118be0_builder_stable_11-204ab] JUNOS OS runtime [20220228.d118be0_builder_stable_11-204ab] JUNOS OS time zone information [20220228.d118be0_builder_stable_11-204ab] JUNOS OS libs compat32 [20220228.d118be0_builder_stable_11-204ab] JUNOS OS 32-bit compatibility [20220228.d118be0_builder_stable_11-204ab] JUNOS py extensions2 [20220408.065534_builder_junos_204_r3_s3]
Loading Linux ...
Note: If the installation fails, contact Support to open a Technical Support case.
2023-06-21 : First Version2023-06-27 : Minor update and made this KB public