Score:0

Error: Operation type [setMachineType] failed with message "e2 instances do not support onHostMaintenance=TERMINATE unless they are preemptible."

cn flag

I received an email from Google on 20 Jul 2021 entitled:

[Action Required] To continue receiving your Free Tier discount, upgrade your F1-Micro VM to an E2-Micro VM by September 1, 2021

"The Free Tier F1-micro VM is changing to the E2-micro VM as the VM to use for free. On August 1, 2021, E2-micro Free Tier will be introduced. Follow these steps to change your machine type to E2-micro to avoid incurring charges for continuing to use F1-micro after August 31, 2021."

I stopped the affected machine instance, changed the machine configuration to:

  • Machine family --> Series E2
  • Machine type --> e2-micro (2 vCPU, 1 GB memory)

Saving the settings results in this error:

Editing VM instance "ubuntu-vm" failed. Error: Operation type [setMachineType] failed with message "e2 instances do not support onHostMaintenance=TERMINATE unless they are preemptible."

What steps to do I need to follow to change the machine type?

Thanks

in flag
This will also trigger if you have a specified platform type (e.g. Skylake), as E2 does not permit this. You have to deselect it and let it be chosen automatically before a machine type change will work.
Score:3
cz flag

You set the On host maintenance availability policy to Terminate. Change this setting back to the default Migrate.

cn flag
Thanks Michael, that was an easy fix.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.