Locating the SLURM Image on the EMS
The
image.json
file from the previous step needs to exist on the EMS in/xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>/image.json
with permissions:CODE-rw-r--r-- 1 slurm slurm 568 May 9 01:26 /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>/image.json
The initramfs image or the initrd file need to be located on the EMS in
/xcompute/slurm/bin/vm-mode/<AMI_ID>/<INIT_FILE>
with permissions:CODE-rw-r--r-- 1 slurm slurm 56202253 May 9 01:19 /xcompute/slurm/bin/vm-mode/ami-050bf59b877e9f593/initramfs-3.10.0-1160.105.1.el7.x86_64.img
This can be accomplished with scp -i <path-to-private-key> [ image.json | <INIT_FILE> ]${EMS_ADDRESS}:/tmp
.
Once on the EMS, the root user can finalize placement and permissions
for image.json
:
mkdir /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>
cp /tmp/image.json /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>/image.json
chown -R slurm:slurm /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>
chmod 755 /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>
chmod 644 /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>/image.json
and for the INIT assets:
mkdir /xcompute/slurm/bin/vm-mode/<AMI_ID>
cp /tmp/initramfs-3.10.0-1160.105.1.el7.x86_64.img /xcompute/slurm/bin/vm-mode/<AMI_ID>/
chown -R slurm:slurm /xcompute/slurm/bin/vm-mode/<AMI_ID>
chmod 755 /xcompute/slurm/bin/vm-mode/<AMI_ID>
chmod 644 /xcompute/slurm/bin/vm-mode/<AMI_ID>/initramfs-3.10.0-1160.105.1.el7.x86_64.img