![Fehler beim Erstellen der Google Cloud Platform-Instanz (Ungültiger Wert für Feld „resource.disks[1].initializeParams.diskSizeGb“)](https://rvso.com/image/776245/Fehler%20beim%20Erstellen%20der%20Google%20Cloud%20Platform-Instanz%20(Ung%C3%BCltiger%20Wert%20f%C3%BCr%20Feld%20%E2%80%9Eresource.disks%5B1%5D.initializeParams.diskSizeGb%E2%80%9C).png)
Ich versuche, eine Instanz mit GCP zu erstellen. Folgendes sind die Spezifikationen (die restlichen Einstellungen sind als Standard festgelegt):
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)
Es scheint, dass das Hinzufügen der lokalen SSDs Probleme bereitet. Die Fehlermeldung lautet:
Invalid value for field 'resource.disks[1].initializeParams.diskSizeGb': '6000'. Invalid local SSD size in GB: 6000
Ich verstehe jedoch nicht, warum es unmöglich ist, diese Instanz zu erstellen. Als ich nach der Fehlermeldung gegoogelt habe, fand ich nicht viel. Gibt es irgendeinen Hinweis darauf, was diese Fehlermeldung bedeutet und wie ich sie beheben kann?
Antwort1
Vielen Dank an @Appleoddity, der einen tollen Kommentar hinterlassen hat, und @Goli Nikitha, der geantwortet hatmeine Frage bei Stackoverflow, ich habe das mithilfe des CLI-Befehls statt der Konsole herausgefunden. Ich weiß immer noch nicht, warum die Konsole nicht funktioniert, aber ich werde den CLI-Befehl mitteilen, mit dem ich das Problem behoben habe.
gcloud compute instances create <INSTANCE_NAME> --project=<PROJECT_NAME> --zone=us-west1-b --machine-type=custom-12-65536 --network-interface=network-tier=PREMIUM,subnet=default --maintenance-policy=TERMINATE --service-account=<SERVICE_ACCOUNT> --scopes=https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring.write,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/trace.append --accelerator=count=1,type=nvidia-tesla-v100 --create-disk=auto-delete=yes,boot=yes,device-name=<INSTANCE_NAME>,image=projects/ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20220331a,mode=rw,size=50,type=projects/<PROJECT_NAME>/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