Create Virtual Machine - amybuck/SONiC-NAS GitHub Wiki

The SONiC Virtual Machine (VM) executable is an automated tool that allows for rapid setup and running of a SONiC VM instance.

Prerequisite — All Host Platforms

  • Install Virtual Box and ensure the installed directory is added to the PATH

Prerequisite — Microsoft Windows Host Only

  • Install OpenSSH, and ensure the installed directory is added to the PATH
  • Install pscp, and ensure the installed directory is added to the PATH

Create VM

1. Download the the SONiC VM tool for your specific host platform:

  • Windows Host — vm.exe
  • Linux (Ubuntu) Host — lvm
  • Mac OS X Host — mvm

2. Copy the host specific executable to a local directory.

3. Create a new VM with the GUI terminal session.

vm.exe --create <vm_name>:gui

4. Delete all existing VMs.

vm.exe --clean

Use vm.exe --help to view all available options.

⚠️ **GitHub.com Fallback** ⚠️