Upgrading Junos OS Software on a vSRX Instance
This section outlines how to upgrade Junos OS software on your vSRX instance to a newer release. Depending upon your preference, you can replace the vSRX software in one of two ways:
Upgrading the Junos OS for vSRX Software Release
You can directly upgrade the Junos OS for vSRX software using the CLI. Upgrading or downgrading Junos OS can take several hours, depending on the size and configuration of the network. You download the desired Junos OS Release for vSRX .tgz file from the Juniper Networks website.
For the procedure on upgrading a specific Junos OS for vSRX software release, see the Migration, Upgrade, and Downgrade Instructions topic in the release-specific vSRX Release Notes available on the vSRX TechLibrary.
Replacing the vSRX Instance on AWS
To replace a vSRX instance on AWS with a different software release:
- Log in to the vSRX instance using SSH and start the CLI.
Starting in Junos OS Release 17.4R1, the default user name has changed from root@ to ec2-user@.ec2-user@% cliec2-user@>
- Enter configuration mode.ec2-user@> configureec2-user@#
- Copy the existing Junos OS configuration from the vSRX.
The contents of the current level of the statement hierarchy (and
below) are saved, along with the statement hierarchy containing it.
By default, the configuration is saved to a file in your home directory.ec2-user@#save <filename>ec2-user@#
- Remove the vSRX instance on AWS as described in Removing a vSRX Instance on AWS.
- Once the vSRX instance on AWS has been successfully removed, define the specifics of a vSRX instance prior to launching it. See Configuring an Amazon Virtual Private Cloud for vSRX.
- Launch the vSRX image using the desired software version available from AWS Marketplace as described in Launching a vSRX Instance on an Amazon Virtual Private Cloud
- Load the previously copied Junos OS configuration file onto your new (upgraded) vSRX instance as described in Loading a Configuration File.