NFXデバイスでのJunos OSのアップグレード
NFX150、NFX250、NextGen、NFX350デバイスでJunos OSバージョンをアップグレードするには、次の手順に従います。
-
[ ダウンロード] ページから NFX デバイスの /var/public ディレクトリにソフトウェア パッケージをダウンロードします。
-
デバイスに現在インストールされている Junos OS のバージョンを確認します。NFX250 NextGen の次のサンプル出力は、Junos OS リリース 22.3R2.12 がデバイスにインストールされていることを示しています。
user@host> show version root@host> show version Hostname: host Model: nfx250 Junos: 22.3R2.12 JUNOS OS Kernel 64-bit [20221212.98a33a0_builder_stable_12_223] JUNOS OS libs [20221212.98a33a0_builder_stable_12_223] JUNOS OS runtime [20221212.98a33a0_builder_stable_12_223] JUNOS OS time zone information [20221212.98a33a0_builder_stable_12_223] JUNOS network stack and utilities [20230223.221505_builder_junos_223_r2] JUNOS libs [20230223.221505_builder_junos_223_r2] JUNOS OS libs compat32 [20221212.98a33a0_builder_stable_12_223] JUNOS OS 32-bit compatibility [20221212.98a33a0_builder_stable_12_223] JUNOS libs compat32 [20230223.221505_builder_junos_223_r2] JUNOS runtime [20230223.221505_builder_junos_223_r2] JUNOS Packet Forwarding Engine Simulation Package [20230223.221505_builder_junos_223_r2] JUNOS sflow mx [20230223.221505_builder_junos_223_r2] JUNOS py extensions [20230223.221505_builder_junos_223_r2] JUNOS py base [20230223.221505_builder_junos_223_r2] JUNOS OS vmguest [20221212.98a33a0_builder_stable_12_223] JUNOS OS package [20230213.192558_builder_stable_12] JUNOS OS crypto [20221212.98a33a0_builder_stable_12_223] JUNOS OS boot-ve files [20221212.98a33a0_builder_stable_12_223] JUNOS na telemetry [22.3R2.12] JUNOS Wireless WAN Module [20230223.221505_builder_junos_223_r2]
show vmhost version detail
コマンドを使用して、ディスク パーティションにインストールされている Junos OS のバージョンを表示できます。NFX150 と NFX250 NextGen には 2 つのパーティションを持つ 1 つのディスクがあるのに対し、NFX350 には 4 つのパーティションを提供するデュアル ディスクがあることに注意してください。NFX250 NextGen デバイスの出力例を次に示します。プライマリパーティションがアクティブなパーティションであることがわかります。
user@host> show vmhost version detail Partition set : primary Software version : 22.3R2.12 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Sun Dec 4 22:30:10 PST 2022 Partition set : primary Software version : 22.3R2.12 Installed/Upgraded at : Tue Feb 28 10:12:50 UTC 2023 Status : Boot success Partition set : alternate Software version : 22.3R2.12 Installed/Upgraded at : Tue Feb 28 10:17:48 UTC 2023 Status : Factory installation setup complete, ready for boot
-
request vmhost software
コマンドを使用して、Junos OS をアップグレードします。user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-22.4R2.1-secure-signed.tgz Verified jinstall-host-nfx-3-x86-64-22.4R2.1-secure-signed signed by PackageProductionECP256_2023 method ECDSA256+SHA256 Pushing Junos image package to the host... File already present in Host. Skipping pushing the image Mounting alternate partitions to stage upgrade operation Installing /var/tmp/preinstall/install-media-nfx-3-junos-22.4R2.1-secure.tgz Extracting the package ... Validate linux image... upgrade_platform: ------------------- upgrade_platform: Parameters passed: upgrade_platform: silent=0 upgrade_platform: package=/var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz upgrade_platform: clean install=0 upgrade_platform: Need reboot after staging=1 upgrade_platform: ------------------- upgrade_platform: upgrade_platform: Checking input /var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz ... upgrade_platform: Input package /var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz is valid. Secure Boot is enforced. ALLOW:usr/secureboot/grub/BOOTX64.EFI ALLOW:boot/bzImage-intel-x86-64.bin ALLOW:boot/initramfs.cpio.gz Setting up Junos host applications for installation ... Installing Host OS ... upgrade_platform: ------------------- upgrade_platform: Parameters passed: upgrade_platform: silent=0 upgrade_platform: package=/var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz upgrade_platform: clean install=0 upgrade_platform: Need reboot after staging=0 upgrade_platform: ------------------- upgrade_platform: upgrade_platform: Checking input /var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz ... upgrade_platform: Input package /var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz is valid. Secure Boot is enforced. ALLOW:usr/secureboot/grub/BOOTX64.EFI ALLOW:boot/bzImage-intel-x86-64.bin ALLOW:boot/initramfs.cpio.gz upgrade_platform: Backing up boot assets.. upgrade_platform: Staging the upgrade package - /var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz.. upgrade_platform: Checksum verified and OK... Setting up boot environment ... Setting up boot environment completed upgrade_platform: Staging of /var/tmp/tmp.27UZct4newjunos_cli_upg/jinstall-nfx-3-junos-22.4R2.1-secure-linux.tgz completed upgrade_platform: System needs *REBOOT* to complete the upgrade Host OS upgrade staged. Reboot the system to complete installation!
ここで
show vmhost version
コマンドを実行すると、ソフトウェア バージョンに 22.3R2.12 と表示されていることがわかります。なお、代替パーティションのステータスは、新しいJunos OSバージョンが代替パーティションにステージングされていることを示しています。root@host> show vmhost version detail | no-more Partition set : primary Software version : 22.3R2.12 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Sun Dec 4 22:30:10 PST 2022 Reboot is pending for a software upgrade Partition set : primary Software version : 22.3R2.12 Installed/Upgraded at : Tue Feb 28 10:12:50 UTC 2023 Status : Boot success Partition set : alternate Software version : 22.3R2.12 Installed/Upgraded at : Tue Feb 28 10:17:48 UTC 2023 Status : Software upgrade staged, boot to partition-set pending
-
デバイスを再起動して、新しいバージョンのJunos OSをデバイスに読み込みます。
root@host> request vmhost reboot Reboot the vmhost ? [yes,no] (no) yes Initiating vmhost reboot... root@host> show version Hostname: host Model: nfx250_att_ls1_10_t Junos: 22.4R2.1 JUNOS OS Kernel 64-bit [20230213.5295c32_builder_stable_12_224] JUNOS OS libs [20230213.5295c32_builder_stable_12_224] JUNOS OS runtime [20230213.5295c32_builder_stable_12_224] JUNOS OS time zone information [20230213.5295c32_builder_stable_12_224] JUNOS network stack and utilities [20230301.213842_builder_junos_224_r2] JUNOS libs [20230301.213842_builder_junos_224_r2] JUNOS OS libs compat32 [20230213.5295c32_builder_stable_12_224] JUNOS OS 32-bit compatibility [20230213.5295c32_builder_stable_12_224] JUNOS libs compat32 [20230301.213842_builder_junos_224_r2] JUNOS runtime [20230301.213842_builder_junos_224_r2] JUNOS Packet Forwarding Engine Simulation Package [20230301.213842_builder_junos_224_r2] JUNOS sflow mx [20230301.213842_builder_junos_224_r2] JUNOS py extensions [20230301.213842_builder_junos_224_r2] JUNOS py base [20230301.213842_builder_junos_224_r2] JUNOS OS vmguest [20230213.5295c32_builder_stable_12_224] JUNOS OS package [20230213.192558_builder_stable_12] JUNOS OS crypto [20230213.5295c32_builder_stable_12_224] JUNOS OS boot-ve files [20230213.5295c32_builder_stable_12_224] JUNOS na telemetry [22.4R2.1]
-
デバイスが再起動したら、ディスクパーティションのステータスを確認します。次の出力は、代替パーティション上のイメージがアップグレードされたことを示しています。これで、代替パーティションがアクティブ パーティションになります。
root@host> show vmhost version detail Partition set : alternate Software version : 22.4R2.1 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Mon Feb 27 04:48:57 PST 2023 Partition set : primary Software version : 22.3R2.12 Installed/Upgraded at : Tue Feb 28 10:12:50 UTC 2023 Status : Boot success Partition set : alternate Software version : 22.4R2.1 Installed/Upgraded at : Tue Mar 7 16:05:24 UTC 2023 Status : Boot success
すべてのディスクパーティションでリリースを同じバージョンにアップグレードするには、 NFX250 NextGen および NFX350 デバイスでのデュアルディスクパーティションのアップグレードを参照してください。