Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 4.09 KB

File metadata and controls

87 lines (61 loc) · 4.09 KB

Vortex Virtual Machine Instructions

For this tutorial, we provide access to a remote server with the tools as well as a virtual machine image that contains the prebuilt version of the tools as well as the Vortex git repo. This VM is built using Vagrant with a VirtualBox Provider, which means that it should be easy to run on most platforms.

We also provide the base Vagrantfile we use, although we note that setup may require some additional steps. See "Building Vortex from Scratch" for more details on setting up a new VM and/or a base installation of the tools.

Important note for Apple Macbook M1/M2 users

VirtualBox is currently in beta for M1/M2 laptops and systems due to the switch from an x86 to aarch64 processor. The beta is unstable but is available here (macOS/ARM64 BETA). You can technically use a Vagrantfile with Docker, but we haven't tested this and can't confirm that it works as expected. Success would depend on whether all the required packages can be installed for aarch64 in the underlying Docker container. Here is one possible Vagrant setup that could be investigated if you are interested.

VM Usage Instructions

First you will need to install Vagrant and VirtualBox. We have tested on Linux and Windows 10 with Vagrant 2.2.18 and VirtualBox 6.1.26.

For Linux (Ubuntu/Debian) users, Vagrant and VirtualBox can be installed using the following:

apt install vagrant virtualbox

Vagrant set up and initialization

Tutorial Setup - All Platforms

Once you have booted your VM from the instructions below, you should follow these steps to prepare for the hands-on portion of the tutorial:

  • Source the set_vortex_env.sh script to set your paths
  • Proceed to the Exercises section of this repo.

Setup

  1. Download the Vortex Vagrant Box image (from Box) to your computer

    • Create a directory to contain the files we need for Vagrant and move the vortex-ubuntu.box file there.
    • Note that the VM box image is 2.5 GiB, and it requires 5 GiB of local disk space.
  2. Import the Vagrant Box image using the command-line

    • Run the commands from the directory created in step 1)
# We create a new local VM image from the vortex-ubuntu.box file and 
# then initialize a Vagrantfile with `vagrant init`

vagrant box add vortex-ubuntu.box --name vortex-micro55
vagrant init vortex-micro55
  1. Download the Vagrantfile (from this repo) to your computer

    • Replace the Vagrantfile generated in the previous step.
    • The Vagrantfile includes some tweaks to disable serial adapters which can cause a boot error.
    • If you need to increase/decrease the number of cores used by the VM, you can also make this change in the Vagrantfile.
    • Create a directory named vagrant-shared in the same location for shared folder functionality. This folder will sync after ssh with the folder ~vagrant/vagrant-shared in the VM.
  2. Boot the VM

vagrant up

Once it completes booting and returns back to the command prompt you can ssh into the VM.

Successful Boot Screen Win10

vagrant ssh
  1. When you are finished working with the VM, make sure to exit your session and run vagrant halt to power the VM down. It is preferred to halt the VM with Vagrant than using the VirtualBox manager to power down the VM due to the additional setup steps that Vagrant performs.

Successful Exit Win10

Note that you can see and log into the VM using the VirtualBox Manager GUI with username and password: vagrant. Just remember to start/stop the image with Vagrant, if possible.

VirtualBox Example Win10