Score:0

All Linux VMs on Azure won't boot, stuck on cloud-init (metadata service crawler) initialization

in flag

I have around 5 VMs in Azure, which were originally provisioned as Ubuntu 18 and since then I've been dist-upgrading them several times. A few months ago I noticed that similar VMs on different subscriptions fail to boot, being stuck on "cloud-init" step. enter image description here

Some of those VMs do have "Raise network interfaces" failure, some don't.

So far the workaround has been to detach the drive, edit it in a different VM and remove the "cloud-init" service from startup, allowing the VM to boot. Once it boots, network turns out to be just fine, despite the error logged. However on apt-get upgrade the cloud-init will get re-enabled and will halt the start of the VM again.

Is there a more persistent workaround to this? I trust the problem should be rather common as I am getting it on all of my Linux VMs in Azure, out of a sudden.

Score:2
sa flag

You appear to be hitting a bug that was introduced in cloud-init 21.3 that only affects Azure instances launched a few years ago that have been upgraded since.

https://bugs.launchpad.net/bugs/1946644

This bug is fixed in cloud-init 21.4, so upgrading should fix your issue.

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.