(v3.0) v2.6 Locating the SLURM Image on the EMS

(v3.0) v2.6 Locating the SLURM Image on the EMS

  1. 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:

    -rw-r--r-- 1 slurm slurm 568 May 9 01:26 /xcompute/slurm/bin/xcompute-daemon/data/images/<IMAGE_NAME>/image.json
  2. 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:

    -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