Skip to content

SONiC on virtual machine for Windows

kannankvs edited this page Nov 10, 2021 · 3 revisions

SONIC on virtual machine for Windows

This document describes the implementation of SONiC on virtual machine using windows machine and qemu. Please find the step by step on the implementation below,

  1. Download and install QEMU for windows
  2. Download SONiC image
  3. Initialize SONiC in 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.

Extract sonic-vs-img.gz to a folder in your machine. Example: d:\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=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

Clone this wiki locally