This repository contains a Vagrant script and associated files which generate a Ubuntu 16.04 virtual machine with mcstas preinstalled. The LOKI instrument and geometry files are placed into a folder on the ubuntu desktop /home/Desktop/LOKI
. Instructions on how to run the simulation and make modifications can be found on the Desktop /home/Desktop/ReadMe.md
. These files are stored in this repository and are automatically shared between the host computer and the VM when Vagrant is used to mount the VM. However, these files are copied to the VM so that it can be redeployed with the files available.
- Latest version of Hashicorp Vagrant. Download Here
- Latest version of Oracle VirtualBox. Download Here
N.B. This repo was set-up using vagrant 1.9.1 and virtualbox 5.1.14
- Install vagrant and virtualbox and checkout this repo
- Launch a terminal and navigate to the folder which contains the
VagrantFile
- run the command
vagrant up --provision-with shell,file
Vagrant will attempt to download and mount the bare bones version of ubuntu 16.04. You may need to log in before provisioning starts
The default username and password is vagrant.
Afterwards, the ubuntu desktop and other related dependencies will be downloaded and updated (provisioned) to the VM. Please wait until the entire process is complete before attempting to use the VM. You will need to run vagrant reload
in order to load the user interface. Alternatively you can just run startx
from the ubuntu terminal.
Network Configuration
If the VM takes an unusually long time to load (more than 2-3 minutes) and the following message is displayed A start job is running for raise network interfaces
ensure you do not have both a wired and wireless connection enabled. If this cannot be avoided go to the virtualbox settings for the machine which was created, navigate to Settings->Network->Advanced
and ensure the Cable Connected
checkbox is checked. You may need to run vagrant reload --provision-with shell,file
if your vagrant session has timed out.
Vagrant completed but there are no files on my Ubuntu Desktop
Close the VM and run vagrant reload --provision-with file