Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

picking up from https://groups.google.com/g/gce-discussion/c/e9K3h3fQuJk

Motiur Rahman
Nov 8, 2017, 5:50:44 AM
to gce-discussion
Hi, hello - I am trying to create instance of 1 GPU K80 with 4 cpus , 26 GB RAM from us-west-1b region . I am getting this odd error -

The request contains invalid arguments: "Instances with guest accelerators do not support live migration.". Error code: "badRequest"

Is this normal, or is it going to persist. I am trying to running some deep learning codes using the GPU. Any suggestion will be helpful.

Thanks
Mohammad

0 1 829
1 REPLY 1

hello folks, I'm having a hard time bringing up an instance with an accelerator attached. It's giving me an error that's unrelated to the request I'm making:
gcloud compute instances create ${INSTANCE_NAME} \
    --machine-type=${MACHINE_TYPE} \
    --accelerator=type=nvidia-tesla-t4 \
    --zone=${ZONE} \
    --image-project ${PROJECT_ID} \
    --image="${IMAGE_WITH_CERTS}"
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - Instances with guest accelerators do not support live migration.
 

 

I'm not asking for the guest to be live migrated. I'm asking that it be created. Is there something wrong with the logging? Am I secretly asking for the guest to be live migrated?
 

 

Ian Granados
,
Yesterday 11:16 AM
You need to set it's maintenance policy to TERMINATE

 

Instances with guest accelerators do not support live migration.

Instances with GPU need --maintenance-policy TERMINATE as they do not support live migration (see Public Docs). If an instance is created via gcloud CLI --maintenance-policy MIGRATE or REST API "onHostMaintenance": "MIGRATE", The following error is thrown:

with gcloud CLI

ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - Instances with guest accelerators do not support live migration.

with REST API

{
  "error": {
    "code": 400,
    "message": "Instances with guest accelerators do not support live migration.",
    "errors": [
      {
        "message": "Instances with guest accelerators do not support live migration.",
        "domain": "global",
        "reason": "badRequest"
      }
    ]
  }
}

Include the flag --maintenance-policy TERMINATE in the gcloud CLI command or "onHostMaintenance": "TERMINATE" under the "scheduling" variable in the json body.

Note : This error should not occur when using the Cloud Console as "On host maintenance" field is disabled when GPU is selected.