Skip to content

Running Windows Virtual Machines using VirtualBox


Running Windows via VirtuaBox on ARCHIE is currently at the experimental stage. VirtualBox/Windows can only currently be run on the teaching partition

In cases where users require to run software which is available only for Windows, it is possible to do this by running a Windows Virtual Machine (VM).

This is made possible using a software package called VirtualBox (

VirtualBox can be run on ARCHIE via SLURM like any other job. The Windows VM is then run from within VirtualBox. Note that multi-node jobs are not currently possible.

Request enough time for VirtualBox

If you exceed the amount of time requested in the SLURM allocation, then VirtualBox (and Windows) will terminate. Where Windows is concerned, it will be as though you switched off the power.

Overview of running Windows VMs

First of all, you will need to contact the ARCHIE-WeSt support team so that they can generate a Windows VM image for you containing the software you require. The outline of the process to run Windows VM's is as follows

  1. Submit your job request to SLURM (either as an interactive job or via a job-script)
  2. Once your SLURM request has been granted, run VirtualBox
  3. Once VirtualBox has started, start the WindowsVM
  4. Login to Windows
  5. Do your stuff
  6. Poweroff (or save the state of) Windows
  7. Exit VirtualBox
  8. Exit/Terminate the SLURM job

Running VirtualBox/Windows via a SLURM interactive job

This is the preferred method for first-time users.

  1. Once you have a WindowsVM prepared, you need to start a SLURM interactive job on the teaching partition:

    srun --account=my-account-id --partition=teaching --time=6:00:00 --x11 --ntasks=16 --exclusive --pty bash

    a. Substitute your own account ID
    b. Make sure you request enough time (6 hours in the above example)
    c. Request a full node ( --ntasks=16 --exclusive)

  2. Once your interactive session starts, then type VirtualBox

  3. After VirtualBox has started, select the Windows Virtual Machine and click on Start - Windows will then proceed to boot up

  4. When the Windows login window appears login with your DS_User_ID.
  5. After logging in you can use Windows to run your software in the usual way.
  6. Once you have finished, you can either shutdown Windows in the usual way, or close the window by clicking the "X" icon on the top RH corner,

    and select "Save the machine state" from the pop-up window. This will allow you to resume to the exact same state next time you start Windows.

  7. Once Windows has shut down/saved you can exit VirtualBox.

  8. Exit the SLURM interactive session.

Accessing ARCHIE files from within Windows

It is recommended that files should be stored on the ARCHIE-WeSt filesystem, and not on the C: drive within Windows.

In order to be able to do this, the "host" filesystem (ARCHIE) needs to be shared with the "guest" OS (Windows).

  1. To check if this is enabled, start Windows and go to the "Devices" menu at the top of the VirtualBox (guest OS) window. Select "Shared Folders" -> "Shared Folder Settings":

  2. In the "File Share Settings" window that opens up, click on the "Adds new shared folder" icon:

  3. In the "Add Share" window, enter the path to your ARCHIE files (/users/DS_User_ID):

    Click on the "Make Permanent" check box.
  4. To access your filespace from within Windows, open windows Explorer and navigate to "Network" where your files will be accessible via "\\VBOXSVR\DS_User_ID":

... still to be completed (RM 07/10/2019)