Boot Junos OS Evolved by Using a Bootable USB Drive
SUMMARY You can boot Junos OS Evolved from a USB device. Booting from the USB device reformats the disk and reinstalls the software without prompting you. After the installation is done, you can either remove the USB drive from the USB port or reboot the device.
You can use several ways to create the Junos OS Evolved image on the USB drive. Also included are both a procedure for booting from the USB drive and a procedure for how to recover if the boot process from the USB drive goes bad.
Create a Bootable USB Drive Using a Windows Device
You need the following items to perform this procedure:
Windows desktop or laptop with a USB port.
Version 2.0 or version 3.0 USB device with the following features:
-
USB device is big enough to hold the image.
-
USB device must have no security features, such as a keyed boot partition.
-
Junos OS Evolved image
For a virtual Windows desktop you must map a physical USB of the host to the guest virtual machine (VM).
To create a bootable USB drive using a Windows device:
Create a Bootable USB Drive Using a MAC OS X
You need the following items to perform this procedure:
A MAC OS X desktop or laptop with a USB port.
Version 2.0 or version 3.0 USB device with following features:
-
USB device is big enough to hold the image.
-
To create a bootable USB using MAC OS X:
Create a Bootable USB Drive Using a Switch or Router Running Junos OS Evolved
You need the following items to perform this procedure:
A switch or router with a USB port that is running Junos OS Evolved.
Version 2.0 or version 3.0 USB device with following features:
-
USB device is big enough to hold the image.
-
USB device must have no security features, such as a keyed boot partition.
-
USB device label should be
JUNOS
.
-
To create a bootable USB using a switch or router running Junos OS Evolved:
Boot Junos OS Evolved from a Bootable USB Drive Using the CLI
Before you perform this procedure, you must create a USB drive with the Junos OS Evolved software image installed on it. For instructions, see Create a Bootable USB Drive Using a Windows Device Create a Bootable USB Drive Using a MAC OS X or Create a Bootable USB Drive Using a Switch or Router Running Junos OS Evolved.
To install Junos OS Evolved on a device that runs Junos OS Evolved using a USB drive:
Recover Junos OS Evolved Using USB Scratch Install
Problem
Description
If, while you are trying to boot Junos OS Evolved from a USB device, the device goes to a bad state, follow this procedure.
Solution
To recover using a USB scratch install:
-
Insert the bootable USB device into the device.
-
Access the BIOS manager to check the USB selection:
-
Reboot the routing device.
user@host> request node reboot usb
Note:Use the command
request system shutdown reboot usb
for Junos OS Evolved software images older than Release 20.1R1. -
To access the BIOS boot manager, press ESC while the system reboots.
-
-
In the BIOS boot manager, select one of the following:
-
For PTX10003 devices, select EFI USB.
-
For QFX5200 devices, select USB: model-name.
The scratch installation starts automatically and the operating system loads.
-
-
Reboot the device to finish the installation.
user@host-re0~# reboot
Boot Junos OS Evolved from a Bootable USB Drive Using the Shell
The USB installation process deletes all configuration and other files. Therefore, after the USB installation process completes:
-
If your system contains only one Routing Engine, you need to re-create the configuration file. Hopefully, you previously stored a configuration file on a remote server or other off-box location. See Restore the Configuration from a Backup Copy after a USB Software Installation. If you do not have a previously-stored configuration file, you must start with the initial configuration steps as described in the hardware guide for your product and then continue to add the configuration statements that you need.
-
If your system contains two Routing Engines, the secondary Routing Engine boots up, but does not join the system formed by the primary Routing Engine and the FPCs, because the current software versions are different. To synchronize the software and configurations from the primary Routing Engine to the secondary Routing Engine, use the
request system software sync all-versions
operational mode command. The secondary Routing Engine then reboots and joins the system.
If you have not yet created a USB drive, follow the instructions at Create a Bootable USB Drive Using a Windows Device or Create a Bootable USB Drive Using a MAC OS X to create a USB drive using either a Microsoft Windows or a Mac OS X device and then use that USB drive to install the image.