Search code examples
google-cloud-platformsolid-state-drivenvme

Google Cloud Platform instance creation failure (Invalid value for field 'resource.disks[1].initializeParams.diskSizeGb')


I'm trying to create an instance using GCP. The followings are the specifications (the rest of the settings are set as default):

Region: us-west1-b
GPU type: NVIDIA Tesla V100
Number of GPUs: 1
Series: N1
Machine type: Custom (12 vCPUs, 64GB memory)
Booting disk: Ubuntu 18.04 LTS balanced persistent disk 50GB
Add local SSD: 16 NVMes (Each SSD is 375GB, so total of 375GB * 16 = 6000GB)

It seems that adding the local SSDs is making problem. The error message says:

Invalid value for field 'resource.disks[1].initializeParams.diskSizeGb': '6000'. Invalid local SSD size in GB: 6000

However, I don't understand why it is impossible to create this instance. When I googled for the error message, there is not much to tell. Is there any clue what that error message indicates, and how I can fix it?

--Edit--

After reading the comments, I've added and clarified some details on the instance that I've created. Please refer to the details above.


Solution

  • As a workaround, try creating the VM instance using the CLI command in gcloud.

    gcloud compute instances create <Instance-name> --project=<Project-id> --zone=us-west1-b --machine-type=n1-standard-16 --network-interface=network-tier=PREMIUM,subnet=default --maintenance-policy=MIGRATE --service-account=<service-account> --scopes=https://www.googleapis.com/auth/cloud-platform --create-disk=auto-delete=yes,boot=yes,device-name=test-lots-of-ssd,image=projects/ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20220331a,mode=rw,size=10,type=projects/<project-id> /zones/us-west1-b/diskTypes/pd-balanced --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --local-ssd=interface=NVME --no-shielded-secure-boot --shielded-vtpm --shielded-integrity-monitoring --reservation-affinity=any

    Note: Replace the values of Instance name,Project ID and Service account in the CLI command and use this command to create an instance in gcloud.