Getting Started on Amazon EC2 VT1¶
Table of Contents
Amazon EC2 VT1 Configurations¶
The following table summarizes the number of Alveo U30 cards and Xilinx devices for each of the different instance sizes of the Amazon EC2 VT1 family. For more details about the transcoding performance of these different configurations, refer to the performance tables in the Specs and Features page of this documentation.
Instance Type |
Number of U30 Cards |
Number of Transcode devices |
---|---|---|
vt1.3xl |
1 |
2 |
vt1.6xl |
2 |
4 |
vt1.24xl |
8 |
16 |
Quick Start Guide for Amazon EC2 VT1¶
Launch an Amazon EC2 VT1 Instance
Follow the instructions at Launch an Amazon EC2 Instance
When choosing the instance type in the EC2 console, make sure to select the Amazon EC2 VT1 instance family.
When choosing an Amazon Machine Image (AMI), make sure to select version 2.0 of one of the Xilinx Video SDK AMI for VT1 Instances
To get more information about Amazon EC2 VT1 instances sizes and pricing see the VT1 web page
Connect to the Amazon EC2 VT1 Instance
After launching the instance, follow the instructions in Connect to your instance to connect to the instance.
Clone the Xilinx Video SDK repository:
git clone https://github.com/Xilinx/video-sdk -b v2.0 --depth 1
Cloning the repo downloads the source for the examples and tutorials.
It is not needed to install the binary packages included in the repository as they already installed in the public Xilinx Video SDK AMI.
Set up the runtime environment:
source /opt/xilinx/xcdr/setup.sh
This step should be performed each time you open a new terminal on your instance.
You are now ready to use the video acceleration features of your Amazon EC2 VT1 instance.
Run your first examples
See the tutorials and examples page to learn how to run video transcoding jobs on your Amazon EC2 VT1 instance.
Installing the Xilinx Video SDK in an existing AMI¶
In order to use a custom AMI on a Amazon EC2 VT1 instance, it is necessary to install the Xilinx Video SDK in the AMI. This section explains how to do this. These steps are not necessary when using the public Xilinx Video SDK AMI since it already includes a complete installation of the Xilinx Video SDK and can readily be used on a Amazon EC2 VT1 instance.
Additionally, AWS provides packer scripts to make it easy for customers to build their own AMI’s for use with VT1 instances. Those scripts can be found at the following repo: https://github.com/aws-samples/aws-vt-baseami-pipeline
Open a bash shell in your existing AMI
Disable automatic kernel updates on your system
Install the following packages if they are not already present in your AMI.
Ubuntu
sudo apt install linux-modules-extra-$(uname -r) sudo apt install python
AL2
sudo amazon-linux-extras install epel -y sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) boost-devel gcc-c++ -y
Download the packages included in this repository:
git clone https://github.com/Xilinx/video-sdk -b v2.0 --depth 1
Navigate to the directory containing the packages corresponding to your Operating System:
cd ./video-sdk/release/<os>
Install the software components of the Xilinx Video SDK:
./install -sw
A successfull installation will end with the following messages (note that the number of bytes written depends on the OS):
Successfully wrote (18813 bytes) to the output file: /tmp/verify_val_transcode_lite.xclbin Leaving xclbinutil.
Perform a warm reboot of the instance.
Always set up the runtime environment for the Xilinx Video SDK before running video transcoding jobs on your Amazon EC2 VT1 instance:
source /opt/xilinx/xcdr/setup.sh
Patching AMIs using v1.5 of the Video SDK¶
When using version 1.5 of the Xilinx Video SDK on an AWS VT1 instance running the latest version of the Xilinx firmware, sourcing the setup.sh script will give a “No U30 devices found” error.
In order to fix this, AMIs using version 1.5 of the Xilinx Video SDK need to be patched as follows:
wget https://raw.githubusercontent.com/Xilinx/video-sdk/v1.5/patches/u30_1.5_patch.sh
./u30_1.5_patch.sh
Working with Containers¶
For instructions on how to work with Docker containers, refer to the Container Setup page of this documentation.
In addition, the user guide for Amazon ECS can be found here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/getting-started.html
Working with Kubernetes¶
For instructions on how to deploy Docker containers with Kubernetes and EKS, refer to the Deploying with Kubernetes page of this documentation. A comprehense step-by-step guide on the AWS Compute Blog can be found here: https://aws.amazon.com/blogs/compute/deep-dive-on-amazon-ec2-vt1-instances/
In addition, the user guide for Amazon EKS can be found here: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html