Work with Elastic Graphics
Important
Amazon Elastic Graphics will reach end of life on January 8, 2024. Starting September 5, 2023 the service is no longer accepting new customer
accounts. If you are currently using Amazon Elastic Graphics, we recommend that you migrate your workloads to Amazon EC2 G4ad instances, G4dn instances, or G5 instances at your
earliest convenience. If you have concerns or questions regarding end of life of the service, contact Amazon Web Services Support
You can launch an instance and associate it with an Elastic Graphics accelerator during launch. You must then manually install the necessary libraries on your instance that enable communication with the accelerator. For limitations, see Elastic Graphics limitations.
Tasks
Configure your security groups
Elastic Graphics requires a self-referencing security group that allows inbound and outbound traffic to and from the security group itself. The security group must include the following inbound and outbound rules.
Inbound | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Protocol | Port | Source | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Elastic Graphics |
TCP |
2007 |
The security group ID (its own resource ID) |
Outbound | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Protocol | Port range | Destination | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Elastic Graphics |
TCP |
2007 |
The security group ID (its own resource ID) |
If you use the Amazon EC2 console to launch your instance with an Elastic Graphics accelerator, you can either allow the launch instance wizard to automatically create the required security group rules, or you can select a security that you created previously.
If you are launching your instance using the Amazon CLI or an SDK, you must specify a security group that you created previously.
To create a security group for Elastic Graphics
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Security Groups and then choose Create security group.
-
In the Create security group window, do the following:
-
For Security group name, enter a descriptive name for the security group, such as
Elastic Graphics security group
. -
(Optional) For Description, enter a brief description of the security group.
-
For VPC, select the VPC into which you intend to use Elastic Graphics.
-
Choose Create security group.
-
-
In the navigation pane, choose Security Groups, select the security group that you just created, and on the Details tab, copy the Security group ID.
-
On the Inbound rules tab, choose Edit inbound rules and then do the following:
-
Choose Add rule.
-
For Type, choose Elastic Graphics.
-
For Source type, choose Custom.
-
For Source, paste the security group ID that you copied previously.
-
Choose Save rules.
-
-
On the Outbound rules tab, choose Edit outbound rules and then do the following:
-
Choose Add rule.
-
For Type, choose Elastic Graphics.
-
For Destination type, choose Custom.
-
For Destination, paste the security group ID that you copied previously.
-
Choose Save rules.
-
For more information, see Amazon EC2 security groups for Windows instances.
Launch an instance with an Elastic Graphics accelerator
You can associate an Elastic Graphics accelerator to an instance during launch. If the launch fails, the following are possible reasons:
-
Insufficient Elastic Graphics accelerator capacity
-
Exceeded limit on Elastic Graphics accelerators in the Region
-
Not enough private IPv4 addresses in your VPC to create a network interface for the accelerator
For more information, see Elastic Graphics limitations.
To associate an Elastic Graphics accelerator during instance launch (console)
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
From the dashboard, choose Launch Instance.
-
Select a Windows AMI and a supported instance type. For more information, see Elastic Graphics basics.
-
On the Configure Instance Details page, select a VPC and subnet in which to launch your instance.
-
Choose Add Graphics Acceleration, and select an Elastic Graphics accelerator type.
-
(Optional) On the Add Storage and Add Tags pages, add volumes and tags as needed.
-
On the Configure Security Group page, you can let the console create a security group for you with the required inbound and outbound rules, or you can use the security group that you created manually in Configure your security groups. Add additional security groups as needed.
-
Choose Review and Launch to review your instance options and then choose Launch.
To associate an Elastic Graphics accelerator during instance launch (Amazon CLI)
You can use the run-instances Amazon CLI command with the following parameter:
--elastic-gpu-specification Type=
eg1.medium
For the --security-group-ids
parameter, you must include a security group
that has the required inbound and outbound rules. For more information, see
Configure your security groups.
To associate an Elastic Graphics accelerator during instance launch (Tools for Windows PowerShell)
Use the New-EC2Instance Tools for Windows PowerShell command.
Install the required software for Elastic Graphics
If you launched your instance using a current Amazon Windows AMI, the required software is installed automatically during the first boot. If you launched your instance using Windows AMIs that do not automatically install the required software, you must install the required software on the instance manually.
To install the required software for Elastic Graphics (if necessary)
-
Connect to the instance.
-
Download the Elastic Graphics installer
and open it. The installation manager connects to the Elastic Graphics endpoint and downloads the latest version of the required software. Note
If the download link does not work, try a different browser, or copy the link address and paste it into a new browser tab.
-
Reboot the instance to verify.
Verify Elastic Graphics functionality on your instance
The Elastic Graphics packages on your instance include tools that you can use to view the status of the accelerator, and to verify that OpenGL commands from your instance to the accelerator are functional.
If your instance was launched with an AMI that does not have the Elastic Graphics packages pre-installed, you can download and install them yourself. For more information, see Install the required software for Elastic Graphics.
You can use one of the following methods to verify Elastic Graphics functionality on your instance.
Note
If the Elastic Graphics status monitor or command line tool returns an unexpected result, see Resolve unhealthy status issues.
View Elastic Graphics information
You can view information about the Elastic Graphics accelerator attached to your instance.
To view information about an Elastic Graphics accelerator (console)
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Instances and select your instance.
-
On the Details tab, find Elastic Graphics ID. Choose the ID to view the following information about the Elastic Graphics accelerator:
-
Attachment State
-
Type
-
Health status
-
To view information about an Elastic Graphics accelerator (Amazon CLI)
You can use the describe-elastic-gpus Amazon CLI command:
aws ec2 describe-elastic-gpus
You can use the describe-network-interfaces Amazon CLI command and filter by owner ID to view information about the Elastic Graphics network interface.
aws ec2 describe-network-interfaces --filters "Name=attachment.instance-owner-id,Values=amazon-elasticgpus"
To view information about an Elastic Graphics accelerator (Tools for Windows PowerShell)
Use the following commands:
To view information about an Elastic Graphics accelerator using instance metadata
-
Connect to your Windows instance that is using an Elastic Graphics accelerator.
-
Do one of the following:
-
From PowerShell, use the following cmdlet:
PS C:\>
Invoke-RestMethod -uri http://169.254.169.254/latest/meta-data/elastic-gpus/associations/egpu-f6d94dfa66df4883b284e96db7397ee6
-
From your web browser, paste the following URL into the address field:
http://169.254.169.254/latest/meta-data/elastic-gpus/associations/
egpu-f6d94dfa66df4883b284e96db7397ee6
-
Submit feedback
You can submit feedback about your experience with Elastic Graphics so that the team can make further improvements.
To submit feedback using the Elastic Graphics Status Monitor
-
In the notification area of the taskbar in your Windows instance, open the Elastic Graphics Status Monitor.
-
In the lower left corner, choose Feedback.
-
Enter your feedback and choose Submit.