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 ( https://www.virtualbox.org/).
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
- Submit your job request to SLURM (either as an interactive job or via a job-script)
- Once your SLURM request has been granted, run VirtualBox
- Once VirtualBox has started, start the WindowsVM
- Login to Windows
- Do your stuff
- Poweroff (or save the state of) Windows
- Exit VirtualBox
- Exit/Terminate the SLURM job
Running VirtualBox/Windows via a SLURM interactive job
This is the preferred method for first-time users.
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)
Once your interactive session starts, then type VirtualBox
- After VirtualBox has started, select the Windows Virtual Machine and click on Start - Windows will then proceed to boot up
- When the Windows login window appears login with your DS_User_ID.
- After logging in you can use Windows to run your software in the usual way.
- 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.
- Once Windows has shut down/saved you can exit VirtualBox.
- 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).
- 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":
- In the "File Share Settings" window that opens up, click on the "Adds new shared folder" icon:
- In the "Add Share" window, enter the path to your ARCHIE files (/users/DS_User_ID):
Click on the "Make Permanent" check box.
- 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)