[Edgecore SONiC] Installation & Upgrade image Follow
How to install SONiC images, how to upgrade, how to set start-up image when you have multiple images in your device and how to remove the image you don't need.
- Install SONiC from HTTP or TFTP via ONIE
- Install SONiC from USB via ONIE
- Edgecore SONiC Upgrade
- Specified the startup image
- Remove installed image
Support models
- Switch model name:
AS7726-32X, AS7326-56X, AS7816-64X, AS5835-54X(T), AS4630-54PE, AS9716-32D, AS8000(Minipack), Wedge100BF-32X
- Edgecore SONiC version:
- Edgecore-SONiC_20201123_130028_ec202006_74
- Edgecore-SONiC_20201229_070315_ec202006_101
- Edgecore-SONiC_20201229_070315_ec202006_bfn_65(Wedge100BF-32X)
Restriction
- Suggest you should not install different branch SONiC image on switch, it may cause some exception issue.
- If your switch installed SONiC, you login to "ONIE :install OS" mode via grub, it will let the grub miss SONiC option.
Install SONiC from HTTP or TFTP via ONIE
Step 1. Set up the physical link environment as topology.
Step 2. Enter the ONIE install mode
Note: Switch shall automatically enter the ONIE install mode if there's no NOS installed yet.
Caution:
Since switch will automatically start the ONIE Service Discovery, this command can make user types easily.
This is not a necessary command. It won't affect installation no matter user execute it or not.
ONIE:/ # onie-discovery-stop
discover: installer mode detected.
Stopping: discover... done.
Caution: Default ONIE will get ip from DHCP
Step 4. Install the image from remote URL via HTTP or TFTP
If the installation is successful, the device will reboot automatically and boot-up with SONiC.
After finish the installation, user might need to check this article.
Install SONiC from USB via ONIE
Step 1. Copy Edgecore SONiC installer file to USB flash drive with a name "onie-installer-x86_64".
Step 2. Reboot switch and plug in USB drive to switch
Step 3. Enter ONIE install mode
Step 4. Wait for ONIE to discover USB and start automatically uploading new firmware via USB drive.
If the installation is successful, the device will reboot automatically and boot-up with SONiC.
Edgecore SONiC Upgrade
Step 1. Check the image
admin@sonic:~$ sudo sonic_installer list
Current: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Next: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Available:
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Step 2. Set the manangement IP (Refer to Management and front port IPv4/IPv6 Address)
admin@sonic:~$ sudo ip address add 192.168.1.2/24 dev eth0
Step 3. Upgrade image from remote HTTP server
admin@sonic:~$ sudo sonic_installer install http://192.168.1.3/http://192.168.1.3/sonic-broadcom.bin -y
Caution: It could only use HTTP to upgrade.
Step 4. Check the images.
admin@sonic:~$ sudo sonic_installer list
Current: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Next: SONiC-OS-Edgecore-SONiC_20201123_test
Available:
SONiC-OS-Edgecore-SONiC_20201123_test
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Note: The "Next" boot-up image shall be set with new image automatically.
Step 5. Reboot device
admin@sonic:~$ sudo reboot
Step 6. Check the images status
admin@sonic:~$ sudo sonic_installer list
Current: SONiC-OS-Edgecore-SONiC_20201123_test
Next: SONiC-OS-Edgecore-SONiC_20201123_test
Available:
SONiC-OS-Edgecore-SONiC_20201123_test
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Specified the startup image
Step 1. Check the images status
admin@sonic:~$ sudo sonic_installer list
Current: SONiC-OS-Edgecore-SONiC_20201123_test
Next: SONiC-OS-Edgecore-SONiC_20201123_test
Available:
SONiC-OS-Edgecore-SONiC_20201123_test
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Caution:
- "Current" image, it mean the running image
- "Next" image, it mean the next boot up image.
- "Available" images, it mean installed SONiC images.
Step 2. Change the default boot-up image
admin@sonic:~$ sudo sonic_installer set_default SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Command: grub-set-default --boot-directory=/host 2
Step 2. Check the image status
admin@sonic:~$ sudo sonic_installer list Current: SONiC-OS-Edgecore-SONiC_20201123_test
Next: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Available:
SONiC-OS-Edgecore-SONiC_20201123_test
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Then the "Next" boot-up image changed.
Caution: You can choose the boot-up image in GRUB menu directly, but this way won't change the default boot-up image.
Remove installed image
Step 1. Check the images status
admin@sonic:~$ sudo sonic_installer list
Current: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Next: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Available:
SONiC-OS-Edgecore-SONiC_20201123_test
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Step 2. Remove the image
admin@sonic:~$ sudo sonic_installer remove SONiC-OS-Edgecore-SONiC_20201123_test -y
Step 3. Check the images status
admin@sonic:~$ sudo sonic_installer list
Current: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Next: SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Available:
SONiC-OS-Edgecore-SONiC_20201123_130028_ec202006_74
Comments
0 comments
Please sign in to leave a comment.