This page has not been updated yet. The page does not reflect the transition from PBS to Slurm.
# Virtualization
<!--
...
...
@@ -163,7 +160,7 @@ Example job for the Windows virtual machine:
```bat
#/bin/sh
JOB_DIR=/scratch/$USER/win/${PBS_JOBID}
JOB_DIR=/scratch/$USER/win/${$SLURM_JOBID}
#Virtual machinesettings
VM_IMAGE=~/work/img/win.img
...
...
@@ -177,7 +174,7 @@ Example job for the Windows virtual machine:
ln-s ~/work/win/script/run/run-appl.bat run.bat
# Runvirtualmachine
exportTMPDIR=/lscratch/${PBS_JOBID}
exportTMPDIR=/lscratch/${$SLURM_JOBID}
moduleaddqemu
qemu-system-x86_64
-enable-kvm
...
...
@@ -330,10 +327,10 @@ Both the user and the VDE network back-end have low performance. For fast interc
Clusters provide the TAP device tap0 for your job. TAP interconnect does not provide any services (like NAT, DHCP, DNS, SMB, etc.) just raw networking, so you should provide your services if you need them.
To enable the TAP interconect feature, you need to specify the `virt_network=True` PBS resource at job submit.
To enable the TAP interconect feature, you need to specify the `virt_network:1` Slurm resource at job submit.
```console
$qsub ... -lvirt_network=True
$salloc ... --gres=virt_network:1
```
Run QEMU with TAP network back-end:
...
...
@@ -408,7 +405,7 @@ A virtual machine can have more than one network interface controller and can us
In snapshot mode, the image is not written, changes are written to a temporary file (and discarded after the virtual machine exits). **It is a strongly recommended mode for running your jobs.** Set the `TMPDIR` environment variable to a local scratch directory for temporary files placement: