Install the ENA driver on EC2 Windows instances
If your instance isn't based on one of the latest Windows Amazon Machine Images (AMIs) that Amazon provides, use the following procedure to install the current ENA driver on your instance. You should perform this update at a time when it’s convenient to reboot your instance. If the install script doesn’t automatically reboot your instance, we recommend that you reboot the instance as the final step.
If you use an instance store volume to store data while the instance is running, that data is erased when you stop the instance. Before you stop your instance, verify that you've copied any data that you need from your instance store volumes to persistent storage, such as Amazon EBS or Amazon S3.
Prerequisites
To install or upgrade the ENA driver, your Windows instance must meet the following prerequisites:
-
Have PowerShell version 3.0 or later installed
Step 1: Back up your data
We recommend that you create a backup AMI, in case you're not able to roll back your changes through the Device Manager. To create a backup AMI with the AWS Management Console, follow these steps:
-
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Instances.
-
Select the instance that requires the driver upgrade, and choose Stop instance from the Instance state menu.
-
After the instance is stopped, select the instance again. To create your backup, choose Image and templates from the Actions menu, then choose Create image.
-
To restart your instance, choose Start instance from the Instance state menu.
Step 2: Install or upgrade your ENA driver
You can install or upgrade your ENA driver with AWS Systems Manager Distributor, or with PowerShell cmdlets. For further instructions, select the tab that matches the method that you want to use.
Step 3 (optional): Verify the ENA driver version after installation
To ensure that the ENA driver package was successfully installed on your instance, you can verify the new version as follows:
-
Connect to your instance and log in as the local administrator.
-
To open the Windows Device Manager, enter
devmgmt.msc
in the Run box. -
Choose OK. This opens the Device Manager window.
-
Select the arrow to the left of Network adapters to expand the list.
-
Choose the name, or open the context menu for the Amazon Elastic Network Adapter, and then choose Properties. This opens the Amazon Elastic Network Adapter Properties dialog.
Note
ENA adapters all use the same driver. If you have multiple ENA adapters, you can select any one of them to update the driver for all of the ENA adapters.
-
To verify the current version that's installed, open the Driver tab and check the Driver Version. If the current version doesn't match your target version, see Troubleshoot the Elastic Network Adapter Windows driver.
Roll back an ENA driver installation
If anything goes wrong with the installation, you might need to roll back the driver. Follow these steps to roll back to the previous version of the ENA driver that was installed on your instance.
-
Connect to your instance and log in as the local administrator.
-
To open the Windows Device Manager, enter
devmgmt.msc
in the Run box. -
Choose OK. This opens the Device Manager window.
-
Select the arrow to the left of Network adapters to expand the list.
-
Choose the name, or open the context menu for the Amazon Elastic Network Adapter, and then choose Properties. This opens the Amazon Elastic Network Adapter Properties dialog.
Note
ENA adapters all use the same driver. If you have multiple ENA adapters, you can select any one of them to update the driver for all of the ENA adapters.
-
To roll back the driver, open the Driver tab and choose Roll Back Driver. This opens the Driver Package rollback window.
Note
If the Driver tab doesn't show the Roll Back Driver action, or if the action is unavailable, it means that the Driver Store
on your instance doesn't contain the previously installed driver package. To troubleshoot this issue, see Troubleshooting scenarios, and expand the Unexpected ENA driver version installed section. For more information about the device driver package selection process, see How Windows selects a driver package for a device on the Microsoft documentation website.