Mise à niveau de Junos OS sur les équipements NFX
Pour mettre à niveau la version de Junos OS sur les équipements NFX150, NFX250 NextGen et NFX350 :
-
Téléchargez le progiciel à partir de la page Téléchargements dans le répertoire /var/public de l’équipement NFX.
-
Vérifiez la version de Junos OS actuellement installée sur le périphérique. L’exemple de sortie suivant pour NFX250 NextGen montre que Junos OS version 22.3R2.12 est installé sur le périphérique.
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]
Vous pouvez utiliser la
show vmhost version detail
commande pour afficher la version de Junos OS installée sur les partitions de disque. Notez que le NFX150 et le NFX250 NextGen ont un seul disque avec deux partitions, tandis que le NFX350 a deux disques qui fournissent quatre partitions.Voici un exemple de sortie pour un appareil NFX250 NextGen. Vous remarquerez que la partition principale est la partition active.
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
-
Mettez à niveau Junos OS à l’aide de la
request vmhost software
commande.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!
Si vous exécutez la
show vmhost version
commande maintenant, vous remarquez que la version du logiciel affiche toujours 22.3R2.12. Notez que l’état de la partition alternative indique que la nouvelle version de Junos OS est transférée sur la partition alternative.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
-
Redémarrez l’équipement pour charger la nouvelle version de Junos OS sur l’équipement.
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]
-
Une fois le périphérique redémarré, vérifiez l’état des partitions de disque. La sortie suivante montre que l’image sur la partition alternative est mise à niveau. La partition alternative est maintenant la partition active.
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
Pour mettre à niveau la version vers la même version sur toutes les partitions de disque, reportez-vous à la section Mise à niveau de partitions de deux disques sur les périphériques NFX250 NextGen et NFX350.