Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To create a VM with opal server installed with all the test data etc using vagrant. On your host machine (i.e. your laptop etc):

...

git clone https://github.com/datashield/datashield-infrastructure.git

cd datashield-infrastructure

git checkout ubuntu16

cd vagrant/datashield_testdata_ubuntu/

...

Once it is finished you should be able to go to http://192.168.56.100:8080 and log into opal (Opal logon username: administrator,  password: datashield_test&). 


Troubleshooting

Sometimes the network setup in VirtualBox doesn't quite work with what vagrant has set up. It seems that it needs to be flushed somehow, and the easiest way I have seen of doing this is to go to the network settings in VirtualBox (the main setting not the settings for the VM), delete the hostonly adaptor then add it back again.

...

Create admin user account for SSH

  • vagrant ssh 
  • create new user
    sudo adduser some_username
  • add user to sudo group
    usermod -aG sudo some_username
  • test user sudo access
    su - some_username
    sudo ls -la /root


Change the IP address

The IP address is hardcoded in the vagrant set up, so if you want to clone this and have a different IP address then follow the relevant instructions on the manual set up page.


Shared drives

Note that vagrant creates shared folders in virtualbox. This is a problem when you export the VM from one host and try to import it into a new host. This is because when you export the VM it uses the full file path (i.e. it will expect your username in the path) for the shared folders. These shared folders are only used for setting up the VM (and will hold private keys that are specific to the host), so you can delete them. To delete them, close the VM, then in virtual box click on the shared folder part and delete the folders that have vagrant in them.

Not sure what this was referring to!

  • ssh into VM go to etc

    cd /etc

    sudo ls opal

    sudo nano opal/shiro.ini

    open up new terminal on server and create new hash password for username: administrator; password: password. 


Export the VM as an OVA file if you want to give it to someone else.