e

The minimum computer specification for installing the DataSHIELD training environment is:

  • At least 4GB RAM. Each VM is allocated 2GB RAM
  • Reasonably powerful processor (for example: Intel i5 or i7).
  • 4GB space on the hard drive
  • Administrator rights on the computer. If you do not have administrator rights to install software on your computer contact your IT support to get the following installed on your machine.

Download and install VirtualBox

Download and install the training Opal servers

Download the Opal servers (synthetic data are included)

These Opal servers are 1-2 Gb in size and may take some time to download.


dstesting-100 (Opal Server 1)

dstesting-101 (Opal Server 2)




You may see a network error warning, this is because the file is too big to preview in Google Drive. To continue, press the download button.


Import the training Opal servers into VirtualBox

Configure the network

Importing the Opal servers should create the correct settings, however please check your settings match those below.

Setting up the VirtualBox network adapter

Starting the Opal Servers

Snapshot the Opal Servers 

Using the current version of Virtual Box and the current version of Opal, we have found that on some platforms if you close down and power off the VM server in the usual way (by right clicking on the server and following the instructions, or by using the Machine menu) Opal halts incorrectly and prevents the VM from booting up correctly the next time. It is essential to take a snapshot of the pristine server when it is first imported (before you first start it up). Then you can always use that snapshot to start the VM correctly (with Opal working).

You can customise the names of snapshots and take as many as you like to save different states of the Opal server. For example, you could take Snapshot 1 straight after importing the Opal server, and then later Snapshot 2 after uploading some of your own simulated data.

Start the Opal Servers

To start an Opal server just open VirtualBox click on a server and click on the green arrow that says Start (or just double click on the Opal server name).

Depending on how powerful your computer is, the Opal servers may take a few minutes to boot and for Opal to start.

The Opal web interface

For example: to access the web interface for dstesting-100 and dstesting-101, go to:

http://192.168.56.100:8080 
http://192.168.56.101:8080 

Because these VMs are internal to your computer, there is no need for encryption so port :8080 is safe, in addition you should be able to login to the local servers even if you have no internet access.

Try using port 8443 > https:/192.168.56.100:8443  and  https:/192.168.56.101:8443 .You will get a warning when connecting to 8443 because the SSL certificate is self-signed. 

If at this point your Opal server(s) are not working, right click on an Opal server name and select Settings . Select System and enable I/O APIC and disable Hardware Clock in UTC time . Restart the Opal servers

username: administrator
password: datashield_test&


Install DataSHIELD client packages

Install R and Rstudio

Install the DataSHIELD client package (in R or R Studio)

install.packages('RCurl', dependencies = TRUE)
install.packages('rjson', dependencies = TRUE)
install.packages('fields', dependencies = TRUE)
install.packages('opal', repos='http://cran.obiba.org', type='source')
install.packages('datashieldclient', repos='http://cran.obiba.org', type='source')


If you get the message ERROR: dependencies ... are not available for package 'xxxxxxxxxxxxxx' you will need to install the packages ( opal , dsBaseClient , dsModellingClient , dsGraphicsClient , dsStatsClient ) one at a time e.g.

install.packages('opal', repos='http://cran.obiba.org', type='source')
install.packages('dsBaseClient', repos='http://cran.obiba.org', type='source')
install.packages('dsModellingClient', repos='http://cran.obiba.org', type='source')
install.packages('dsGraphicsClient', repos='http://cran.obiba.org', type='source')
install.packages('dsStatsClient', repos='http://cran.obiba.org', type='source')



See:  /wiki/spaces/DSDEV/pages/12943456

Update the DataSHIELD server side packages

Shutting down the Opal Servers

If no changes to Opal servers (e.g. for general users)

When you have finished your analysis, to shutdown the Opal server:

This will revert the Opal server to the state it was in when the snapshot was taken.

Any changes you have made since this point, such as uploading data or updating server-side packages will be lost. 
If you wish to preserve changes made to the Opal training server follow Instructions if changes are made to Opal servers below.

If changes are made to Opal servers (e.g. for developers) 

To shutdown the Opal server without losing any changes you have made to uploaded data or server-side DataSHIELD packages:

Username: user
password: password
sudo poweroff

Further instructions are available for the advanced uses of the DataSHIELD training environment:


You are now fully set up. To start using the DataSHIELD training environment sit our v4 Tutorial for DataSHIELD users. The tutorial teaches you the basics of DataSHIELD including how to:

  • login
  • run commands to:
    • generate descriptive statistics
    • subset tables and vectors
    • fit some regression models