Hyungsik Jo
Hyungsik Jo

Reputation: 146

How to fix with custom image from slurm-gcp?

I distributed slurm-gcp using Terraform through the GitHub and it was available successfully. Source:

Slurm on Google Cloud Platform

But I want to change the image I use when using node to a custom image.

I am trying to edit /slurm/scripts/config.yaml.

Among the contents of the file:

image: projects/schedmd-slurm-public/global/images/family/schedmd-slurm-20-11-7-hpc-centos-7

I want to edit the part.

How to reroute this part to my custom image?

Upvotes: 1

Views: 437

Answers (1)

Wojtek_B
Wojtek_B

Reputation: 4443

First you need to create your own image.

Create a new VM with the image you want to modify; make appropriate changes and stop the VM. Then create a new image from the VM's disk.

Next create a custom image from that disk and your path in the config.yaml file can look like this:

image: projects/my-project-name/global/images/your-image-name

You can get exact path to your custom image by running:

wb@cloudshell:~ (wb)$ gcloud compute images describe your-image-name | grep selfLink
selfLink: https://www.googleapis.com/compute/v1/projects/wb/global/images/your-image-name

Upvotes: 1

Related Questions