SUSE Support

Here When You Need Us

EC2 instance unreachable when changing instance type

This document (000019622) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
Amazon EC2

Situation

After changing the EC2 instance type, the EC2 instance will become unreachable due to missing network configuration.
e.g. EC2 R4 instance type was launched initially and then later changed to EC2 R5 instance type
 

Resolution

If EC2 instance has not yet been switched to another type and is still accessible, verify that cloud-netconfig-ec2 package is installed by running:

sudo rpm -qa | grep cloud-netconfig-ec2

If the package is not installed, install it by running:

sudo zypper install -y cloud-netconfig-ec2

If EC2 instance has already been switched to another instance type and is no longer accessible, follow steps 1-7 from Amazon document https://aws.amazon.com/premiumsupport/knowledge-center/ec2-instance-boot-issues/
From chroot, install the cloud-netconfig-ec2 package:

sudo zypper install -y cloud-netconfig-ec2

Then follow steps 13-15 from Amazon document https://aws.amazon.com/premiumsupport/knowledge-center/ec2-instance-boot-issues/

Cause

Without cloud-netconfig-ec2 package installed, when instance boots, udev will create a persistent net config rule (/etc/udev/rules.d/70-persistent-net.rules) which will break the instance's connectivity if the instance type is changed.  The instance will become unreachable because instead of activating eth0 as expected, udev will detect the network interface as a new device and add it as eth1. Due to a lack of configuration of eth1, the interface won't be configured.

cloud-netconfig-ec2 disables persistent interface names to avoid /etc/udev/rules.d/70-persistent-net.rules from being created. Therefore cloud-netconfig-ec2 must be installed to prevent network interface activation issues when changing EC2 instance type.

This issue has been identified when moving from:
Nitro to Xen
Xen to Nitro
Nitro to Bare Metal
Bare Metal to Xen
Bare Metal to Nitro

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019622
  • Creation Date: 04-May-2020
  • Modified Date:07-May-2020
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.