This lab guides you through the steps involved in connecting to an AWS EC2 F1 instance, and starting and stopping the instance.
After completing this lab, you will be able to:
- Connect to an AWS EC2 F1 instance using the provided credentials
- Start an instance
- Start a RDP (Remote Desktop Protocol) session
- Close the RDP session
- Stop the instance
Each registered participant has been allocated a pre-configured EC2 F1 instance and should have received an email with the following details:
- Account ID,
- IAM username,
- Link to access a pre-configured EC2 F1 instance
- Start a web browser session
- Either click on the provided link to open up an AWS login page OR enter https://console.aws.amazon.com/ec2 to open a login page
If you had used the link then you should see a login page similar to shown here:Login page accessed through the provided link
If you had not used the link you may be directed to the AWS standard login pageEntering credentials manually
Enter xilinx-aws-f1-developer-labs in the Email address field and click Next to see the login page similar to shown in figure titled: Login page accessed through the provided link - Enter userxx in the IAM user name field and enter the provided password in the Password field
- Click Sign In
- In the top right corner, using the drop-down button, select a region with F1 instances, such as N. Virginia (US East) or instructor indicated region
Selecting a region
If you select different region other then where the accounts are created for then you may not see your instance as well as the source files which are pre-loaded for the workshop. - Click on the EC2 link on the dashboard or if not visible, then click on the Services drop-down button and then click on EC2
Accessing EC2 service
- Click on the Instances link on the left panel
Accessing Instances
You may see several instances - Enter your username in the filter field just below the Launch Instance button and hit enter
Filtering your instance
- Making sure that your instance is selected, click on the Actions > Instance State > Start
Starting an instance
- Click on the Yes, Start button
- Click on the refresh button() to see the updated status to Running
Running state
- Make a note of the Public DNS and IPv4 Public IP which will be used by PuTTy and Remote Desktop (RDP)
Assigned IP to the running instance
You can communicate with the instance using command line through PuTTY or Git Bash, and using GUI through remote desktop (RDP) connection.
- Start a remote desktop session
- Enter the IPv4 address
- Click on the Show Options
Entering the IPv4 address
- Select the Display tab and select True Color (24 bit) and click Connect
Selecting resolution and connecting
- A certificate warning will be displayed. Click Yes to open the RDP session
- Enter centos as the username and enter the provided password and click OK
Entering username and password
- Right-click on the desktop and select Open Terminal to open a window
- You should enter the following commands in any newly opened terminal window to source the environments
cd ~/aws-fpga source sdaccel_setup.sh source $XILINX_SDX/settings64.sh
It is important to shut down the instance in order to stop billing meter. You do not need to execute this command in this lab as you will continue the session for the subsequent labs
-
Type the following command to terminate the RDP session and shutdown the instance
sudo shutdown now
-
Check the browser window, you will see status as either Stopping or Stopped. Click on the refresh button to see the status update
Instance Status
-
Once the instance is stopped, sign out by clicking on the drop-down button on the top bar and selecting Sign Out
Signing out
In this lab, you learned how to connect to an AWS EC2 F1 instance, interact with the instance using RDP connection, how to stop the instance, and sign out.
Start the next lab: 2. Makefile Flow
- Start PuTTY program
- Enter centos@<public_dns_entry> in the Host Name field and 22 in the Port field
Make sure that SSH is selected as the Connection typeSession settings in PuTTY
- Expand SSH under the Connection in the left panel and click Auth
- Click on the Browse… button, browse to where the private key has been stored
If you don't have the private key file (as in workshop) you can skip this step - Click Open
Selecting private key file
- Click Yes
The PuTTY window will open. It will ask for the password (in case of the workshop). Enter the provided passwordThe PuTTY window showing the connection
- Set password for the RDP connection by entering sudo passwd <your choice of password> command. You will use the same password in the RDP connection.
- Enter exit to close the session