[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)
-
Go to https://sonic-build.azurewebsites.net/ui/sonic/pipelines.
-
Find the pipeline Azure.sonic-buildimage.official.vs (DefinitionId: 142). This pipeline builds the virtual switch image.
-
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.
-
Open the Artifacts section of the build.
-
Open the artifact sonic-buildimage.vs and click
sonic-vs.img.gzto download it.
Option 2: SONiC Latest Images (GitHub page)
-
Go to https://sonic-net.github.io/SONiC/sonic_latest_images.html.
-
The page shows the latest images for each platform and branch. Find the vs platform.
-
Click the link to
sonic-vs.img.gzfor the branch that you need.
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.
-
Go to https://sonic.software/.
-
Find
sonic-vs.img.gzin the list of files and click the link to download it.
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 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
Comments
Please sign in to leave a comment.