Where to download the SONiC Virtual Switch (VS) community pre-built image?

STORDIS-sonic-vs-download-banner-3200x1200.png

[stordis-toc]

Introduction

SONiC (Software for Open Networking in the Cloud) is an open-source network operating system for data center switches. SONiC Virtual Switch (SONiC VS) is a version of SONiC that operates as a virtual machine. Use it for labs, tests and training without physical switches.

You do not need to build SONiC VS yourself. This guide shows three places where you can download a pre-built image: the file sonic-vs.img.gz.

Source Type Use it when
SONiC build server (Azure Pipelines) Official You need a specific branch or build.
SONiC Latest Images (GitHub page) Official You need the latest image quickly.
sonic.software Not official The official sources are not available.

 NOTE

The master branch contains the newest development code. For a stable lab, use a build from a release branch (for example 202411 or 202505).


Option 1: SONiC build server (Azure Pipelines)

  1. Go to https://sonic-build.azurewebsites.net/ui/sonic/pipelines.

    List of pipelines on the SONiC build server

  2. Find the pipeline Azure.sonic-buildimage.official.vs (DefinitionId: 142). This pipeline builds the virtual switch image.

    Pipeline Azure.sonic-buildimage.official.vs

  3. Open the Build History of the branch that you need (master or a release branch). The newest build is at the top of the list. Select the newest build with the status succeeded.

    Build history with the newest successful build

  4. Open the Artifacts section of the build.

    Artifacts section of the build

  5. Open the artifact sonic-buildimage.vs and click sonic-vs.img.gz to download it.

    File sonic-vs.img.gz in the sonic-buildimage.vs artifact


Option 2: SONiC Latest Images (GitHub page)

  1. Go to https://sonic-net.github.io/SONiC/sonic_latest_images.html.

    SONiC Latest Images page

  2. The page shows the latest images for each platform and branch. Find the vs platform.

    Table of the latest SONiC images by platform

  3. Click the link to sonic-vs.img.gz for the branch that you need.

    Download link of sonic-vs.img.gz


Option 3: sonic.software (not official)

CAUTION

sonic.software is not an official site of the SONiC project. Use it only when the official sources are not available, and only for labs.

  1. Go to https://sonic.software/.

    Home page of sonic.software

  2. Find sonic-vs.img.gz in the list of files and click the link to download it.

    File sonic-vs.img.gz on sonic.software


Prepare the image

Extract the downloaded file:

gunzip sonic-vs.img.gz

You get the file sonic-vs.img. It is a disk image in the QCOW2 format. You can use it directly in GNS3, KVM, Proxmox and Cisco Modeling Labs.

For VirtualBox or VMware, convert the image to VMDK with qemu-img:

qemu-img convert -f qcow2 -O vmdk sonic-vs.img sonic-vs.vmdk

On Windows, use 7-Zip to extract the file. For qemu-img on Windows, refer to How to install and use qemu-img on Windows and Linux?


Procedure completion

Congratulations!

You have successfully downloaded a pre-built SONiC Virtual Switch image. Now you can add it to your lab environment.

Happy networking!

 

Useful links:

How to create a new GNS3 appliance template to work with SONiC using GNS3 Web UI?

How to run SONiC VS in ContainerLab?

How to run SONiC VS in KVM?

How to build the community version of SONiC Virtual Switch (SONiC VS) image?

 

For more free resources, visit: https://stordis.com/free-resources/

 

SONiC® is a registered trademark of Linux Foundation. STORDIS is not affiliated with, endorsed by, or sponsored by Linux Foundation.
All trademarks belong to their respective owners.

Comments 0

Articles in this section