[stordis-toc]
This document describes the implementation of SONiC on virtual machine using windows machine and qemu.
1. Download and install QEMU for windows
Go to: https://qemu.weilnetz.de/w64/ to download qemu-w64-setup-xxx.exe and install it to your windows machine.
2. Download sonic prebuilt image
Go to: https://sonic-build.azurewebsites.net/ui/sonic/Pipelines, find master "vs" platform and click "BuildHistory":
On the next page find newest build with succeeded result and click Artifacts:
On the next page click sonic-buildimage.vs:
On the next page find the sonic-vs.img.gz file and download it:
Extract sonic-vs-img.gz to a folder in your machine. Example: c:\sonic-vs.img
3. Start sonic image
Open a command line and run the command:
"c:\Program Files\qemu\qemu-system-x86_64.exe" -name sonic-simulator_1 -m 2048M -smp cpus=2 -drive file=c:\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
You can log in using default credentials (admin/YourPaSsWoRd).
Congratulations!
You have successfully run SONiC on a Virtual machine using QEMU on Windows!
Comments 0
Comments
Please sign in to leave a comment.