I'm trying to convert an Ubuntu OVA to an AMI using either the migration hub or an image-import task, but I keep running into the error: CLIENT_ERROR: FirstBootFailure. This happens because the instance fails to boot and establish network connectivity. I've set up the OVA to use DHCP since I can't use a cloud image, and it's functioning with NetworkManager. However, I noticed that if I import it as an EBS snapshot, manually convert it to an AMI, and then launch an EC2 instance from that, it works fine. Unfortunately, when using the import-image task, I can't access the AMI or the failed instance, which makes troubleshooting really difficult.
2 Answers
It sounds like you might want to ditch NetworkManager. Instead, use cloud-init or netplan, which are better suited for cloud environments. Just install them if you haven't yet. They really help with configuring network settings properly for AMIs.
I understand your frustration! Just a heads up, cloud-init and netplan aren’t the same thing, and sometimes configurations can get tricky. Since you’re using netplan with Nm as a renderer, both should work together, but they can cause issues in cloud setups. Consider checking your settings in the netplan configuration. Also, make sure your cloud-init script is set to configure the network correctly.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures