Managing SONiC Images

Managing SONiC Images

SONiC Installer

The SONiC Installer is a command-line utility included with the SONiC software. It allows users to install an alternate image on a designated partition if the device is already running SONiC. This tool facilitates the installation of a new image, displays available images, and sets the image to be used on the next reboot.

Install Command

The sonic-installer install command is utilized to install a new image onto the alternate image partition. It requires the path to an installable SONiC image or a URL.

Usage:
sonic-installer install <image_name>

List Command

The sonic-installer list command provides details about the images currently installed, the image currently in use, and the image designated for the next reboot.

Usage:
sonic-installer list

Set Default Command

The sonic-installer set_default command changes the default image that will be loaded in all subsequent reboots.

Usage:
sonic-installer set_default <image_name>

Set Next Boot Command

The sonic-installer set_next_boot command specifies the image to be loaded on the next reboot only. The device will revert to the current image on all subsequent reboots.

Usage:
sonic-installer set_next_boot <image_name>

Remove Command

The sonic-installer remove command deletes an unused SONiC image from the disk. Note that the currently running image cannot be removed.

Usage:
sonic-installer remove <image_name>



    • Related Articles

    • How to Upgrade/Downgrade SONiC ?

      SONiC Installer This is a command line tool available as part of the SONiC software. If the device is already running the SONiC software, this tool can be used to install an alternate image in the partition. This tool has the facility to install an ...
    • What is the SONiC NetPro Support Suite?

      The SONiC NetPro Support Suite is an all-in-one, comprehensive network support system offered by PalC Networks, designed to ensure your network operates at peak efficiency. It provides 24/7 assistance and professional guidance that goes far beyond ...
    • Username and Password Configuration in SONiC

      Adding and Managing Users To configure usernames and passwords in SONiC, follow these steps: Add a New User To add a new user, use the command: sudo useradd <new-username> Example: admin@sonic:~$ sudo useradd new-username Change User Password To set ...
    • Which SONiC versions are supported by PalC Networks?

      PalC Networks support the following versions of SONiC : SONiC 202311 SONiC 202305 SONiC 202211 SONiC 202205 SONiC 202111
    • What is SONiC

      The Software for Open Networking in the Cloud or alternatively abbreviated and stylized as SONiC, is a free and open source network operating system based on Linux. It was originally developed by Microsoft and the Open Compute Project. In 2022, ...