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