SONiC on virtual machine for Windows or Linux

一、SONiC on virtual machine for Windows

  • Download and install QEMU for windows

https://qemu.weilnetz.de/w64/qemu-w64-setup-20210208.exe

  • Download SONiC image

https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/

Extract sonic-vs-img.gz to a folder in your machine. Example: d:\sonic-vs.img

  • Initialize SONiC in QEMU

Open a command line and run the command:

d:
cd Program Files (x86)\qemu
"qemu-system-x86_64.exe" -name sonic-simulator_1 -m 2048M -smp cpus=2 -drive file=D:\sonic-vs.img,index=0,media=disk,id=drive0 -serial telnet:127.0.0.1:5001,server,nowait -monitor tcp:127.0.0.1:44001,server,nowait -device e1000,netdev=net0 -netdev user,id=net0

Login with the account: admin/YourPaSsWoRd

二、SONiC on virtual machine for Linux

  • Download and install QEMU for Linux

https://blog.csdn.net/weixin_39094034/article/details/114981571

  • Download SONiC image

https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/

  • Initialize SONiC in QEMU
qemu-system-x86_64 -enable-kvm -nographic -bios /usr/share/qemu/bios-256k.bin -name sonic-simulator_1 -m 2048M -smp cpus=2 -drive file=~/sonic-vm/images/sonic-vs.img,index=0,media=disk,id=drive0 -serial telnet:192.168.xx.xx:5001,server,nowait -monitor tcp:192.168.xx.xx:44001,server,nowait -device e1000,netdev=net0 -netdev user,id=net0

猜你喜欢

转载自blog.csdn.net/weixin_39094034/article/details/115126098