Building vs-image

928 views
Skip to first unread message

Dror Prital IL

unread,
May 24, 2021, 7:48:44 PM5/24/21
to sonicproject
Hi,

Does anyone know what is the make command required in order to build  sonic vs-image ?

Thanks,
Dror.

Milind Barve

unread,
May 29, 2021, 1:08:44 PM5/29/21
to sonicproject
There are detailed instructions for building SONiC here. However I haven't been able to successfully build any of the variants (Broadcom, vs, p4)  I tried at head-of-line revisions of the master branch for last 4 days. The instructions seem right but the build fails at one point or the other. I don't know what CI/CD protocol is followed for this project. There aren't any recent branches or tags that one could try to build reliably.

Any help from the community is appreciated. 

Milind Barve

unread,
Jun 8, 2021, 9:39:10 PM6/8/21
to Nikhil Malik, sonicproject
Hi Nikhil,

Thanks for the update. The main question is whether any convoluted sequence of steps should be necessary or whether sonic-vs should just build as per the documentation.

I managed to build sonic-vs finally with the latest master revision (239a1cc1df57). However it appears that

  1. The command 'make configure PLATFORM=vs; make all' doesn't build sonic-vs.img.gz. You have to explicitly specify the make target: " make target/sonic-vs.img.gz". Shouldn't the 'all' build everything? I tried to build 'sonic-vs.img.gz' based on the instructions provided for KVM-testbed.
  2. The other behavior I am noticing is that after successfully building "docker-sonic-vs.gz", the build host, which is Xubuntu 20.04 LTS in my case, shuts down. I have to restart it through the virtual-box manager. I have noticed this thrice so far and it seems like a reproducible behavior. Is that expected? The last build log is from the file target/sonic-vs.img.gz.log which indicates that the build tried to install ONIE on the host (" Installing ONIE on: /dev/vda").
--thanks
Milind
===================


On Wed, Jun 9, 2021 at 6:22 AM Nikhil Malik <nikhil...@netlox.io> wrote:
Hi All,

We have tried to build SONiC VS build #73. Here the steps:

Build #74 (Apr 29, 2021 2:38:09 AM)
https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-image-202012/74/

Git code
https://github.com/Azure/sonic-buildimage/tree/04723238601c9a58e1c6381fe9c76ecbcfc64180

Build steps
git checkout 04723238601c9a58e1c6381fe9c76ecbcfc64180
git rev-list --no-walk 59cae24e43b13af29c52d037e6f92ee709a84fa4
git submodule init

git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git'
make configure PLATFORM=vs
make target/docker-sonic-vs.gz

Thanks & Regards,
Nikhil Malik
Product Manager
NetLOX Corps.

hil 

--
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/010f01b4-fc10-48f5-82e0-f3ebe6defc99n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages