[slurm-users] About srun command

Mahmood Naderan mahmood.nt at gmail.com
Wed Dec 26 10:31:53 MST 2018


Hi
I use the following command to bring up a qmeu guest supported by spankx11

$ srun -n 1 -c 20 --mem=10G -p QEMU -A q20_10 --spankx11 ./run_qemu.sh

where run_qemu.sh is a command like this

$ cat run_qemu.sh
#!/bin/bash
USERN=`whoami`
qemu-system-x86_64 -m 8192  -smp cores=20 -hda win7_64_snap.img -boot c
-usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev
user,net=
10.0.2.0/24,id=host_files,restrict=off,smb=/home/$USERN,smbserver=10.0.2.4


Is there anyway to include some of the srun options in the script? It seems
that #SBATCH is not valid here.


Regards,
Mahmood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181226/4b1e3620/attachment.html>


More information about the slurm-users mailing list