Command line¶
If you wish to work with Windows VMs on the command line or work them into scripted workflows, you can interact directly with the Windows system:
- Submit an interactive Slurm job with the appropriate account, partition, and walltime:
- Load the "qemu" module:
Copy a Windows 2016 Server VM image to your storage. Scratch or Research Data Depot are good locations to save a VM image. If you are using scratch, remember that scratch spaces are temporary, and be sure to safely back up your disk image somewhere permanent, such as Research Data Depot or Fortress. To copy a basic image:
$ cp /apps/external/apps/windows/images/latest.qcow2 $RCAC_SCRATCH/windows.qcow2
To copy a GIS image:
To launch a virtual machine in a batch job, use the "windows" script, specifying the path to your Windows virtual machine image. With no other command-line arguments, the windows script will autodetect a number cores and memory for the Windows VM. A Windows network connection will be made to your home directory. To launch:
Command line options:¶
To launch a virtual machine with 32GB of RAM, 20 cores, and a network mapping to your home directory:
To launch a virtual machine with 16GB of RAM, 10 cores, and a network mapping to your Data Depot space:
The Windows 2016 server desktop will open, and automatically log in as an administrator, so that you can install any software into the Windows virtual machine that your research requires. Changes to the image will be stored in the file specified with the -i option.