SONiC vs image

904 views
Skip to first unread message

Yi Tse

unread,
Dec 13, 2021, 6:24:21 PM12/13/21
to sonicproject
Hi, 
I am new to the SONiC project, and I am trying to download the latest SONiC VS image for my test.  Can someone give me a working link?

Thanks,
Yi Tong

kamal kumar

unread,
Dec 13, 2021, 6:26:28 PM12/13/21
to Yi Tse, sonicproject
Hi Yi,


Regards,
Kamal.

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/f3245450-1775-43ef-8d63-b80ccd3e115dn%40googlegroups.com.

Tom.Ammon

unread,
Dec 13, 2021, 6:32:54 PM12/13/21
to Yi Tse, sonicproject
Hello Yi, 

If you need any help getting it to work with KVM hypervisor, let me know, I can share what we have learned about it. 

One thing you'll want to watch for, once you have your VS image up and running, is the default ebtables rules. In earlier versions of the VS image, ebtables was configured to drop ARP packets, which caused some head-scratching for us. I am not sure if that is still the case in the most recent image. 

If you're using libvirt/KVM, the UDP tunnels feature works well for interconnecting multiple VS switches.

Tom


From: sonicp...@googlegroups.com <sonicp...@googlegroups.com> on behalf of kamal kumar <kamal...@gmail.com>
Sent: Monday, December 13, 2021 5:26 PM
To: Yi Tse <yito...@gmail.com>
Cc: sonicproject <sonicp...@googlegroups.com>
Subject: [EXTERNAL] Re: [SONiC] SONiC vs image
 

Yi Tse

unread,
Dec 13, 2021, 6:57:50 PM12/13/21
to sonicproject
Thanks for all the helps.  I am trying to get the VS image because I believe it does not require any specific HW and will work on a linux VM.  I plan to run in with GNS3 to get some experience with SONiC.

Thanks,
Yi Tong

Laxman Rasal

unread,
Feb 25, 2022, 3:53:42 AM2/25/22
to sonicproject
Hi Tom,

We are also trying to perform a similar exercise.
We have created a KVM based VM using SONiC VS image. Created additional two Linux VMs on same host. 
Will you please share some guideline inputs / document about how to establish communication between these two Linux VMs using SONiC as a bridge. 

Regards,
Laxman   

Mohammad Hanif

unread,
Feb 25, 2022, 4:42:16 PM2/25/22
to Laxman Rasal, sonicproject
Some of the videos on youtube (https://www.youtube.com/c/Love2Network) should help you with your issues.

Thanks,
--Hanif.



--
Thanks,
--Hanif.

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.

Tom.Ammon

unread,
Feb 25, 2022, 4:43:31 PM2/25/22
to Laxman Rasal, sonicproject
Hi Laxman, 

To connect a linux vm to a sonic virtual switch, you can use a udp tunnel. This is a feature of libvirt. Think of it like a pseudowire between two virtual machine (inside the same hypervisor or between two different hypervisors). If you had a sonic virtual switch, and a linux VM, and they were both on the same hypervisor, here's the xml you'd add in to the <devices> section in the sonic VM's definition in libvirt:

<interface type='udp'>
      <source address='127.0.0.1' port='10160'>
        <local address='127.0.0.1' port='10161'/>
      </source>
      <model type='virtio'/>
</interface>

And then on the linux VM, you'd put this xml into the <devices> section, notice how the source and local ports are swapped:

<interface type='udp'>
      <source address='127.0.0.1' port='10161'>
        <local address='127.0.0.1' port='10160'/>
      </source>
      <model type='virtio'/>
</interface>

Then, inside of each VM it'll look like a cable is connected between the sonic vs and the linux vm. The first interface on the sonic vs you connect will show up as eth0, and the second interface on the sonic vs you connect will show up as Ethernet0, inside the sonic vm. This is the case for the hwsku's that I use, it might be a different port arrangement for different hwsku's, for example if they had more than one oob management interface.

Tom


From: sonicp...@googlegroups.com <sonicp...@googlegroups.com> on behalf of Laxman Rasal <laxman...@gmail.com>
Sent: Friday, February 25, 2022 2:53 AM
To: sonicproject <sonicp...@googlegroups.com>
Subject: Re: [EXTERNAL] Re: [SONiC] SONiC vs image
 

Laxman Rasal

unread,
Mar 1, 2022, 6:31:30 AM3/1/22
to Tom.Ammon, sonicproject
Hi Tom,

Thanks for sharing this valuable information.
We were able to confirm working of the same using two Linux VMs on KVM.

We were trying a similar configuration using the 'qemu-system-x86_64' and '-netdev l2tpv3'. But we didn't succeed in that.
If you have any idea about how to configure a similar udp tunnel using 'qemu-system-x86_64', that will be of great help.

Thanks,
Laxman


Victor DeJesus

unread,
Feb 18, 2024, 10:50:42 PM2/18/24
to sonicproject
I used directions from this link -  vSONIC Virtual Switch on EVE-NG | (networkzblogger.com). It helped me build the lab in EVE-NG with SONiC but it's very slow. Does anyone know which is the latest image I should use for VS in EVE-NG?

Keerthi kumar thovi

unread,
Feb 19, 2024, 3:07:12 AM2/19/24
to Victor DeJesus, sonicproject
Hi,
     Please note SONIC Community CI generates builds daily. Please refer to below links for corresponding details & direct download link.



Thanks and Regards,
T Keerthi Kumar
Capgemini Engineering 

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages