Preliminary Setup

Perform these preliminary setup tasks to simplify the process of launching the NVIDIA GPU Cloud machine image.

Setting Up SSH Keys

If you do not already have SSH keys set up specifically for Alibaba, you will need to set one up and have it on the machine you will use to SSH to the VM. In the examples, the key is named "alibaba-key".

  1. From a browser, log in to the ECS console - https://ecs.console.aliyun.com/.
  2. Open the left navigation menu tab and then click Key Pairs from the Network & Security group.
  3. From the upper right of the screen, click Create Key Pair.
  4. Give it a name, such as "alibaba-key" and click OK. A .pem file will immediately download. This is the ONLY time you can download it.
  5. After downloading the .pem file, move it to the .ssh directory.
    mv alibaba-key.pem ~/.ssh/ 
    chmod 400 ~/.ssh/alibaba-key.pem 
    On Windows, the location will depend on the SSH client you use, so modify the path above and in the snippets or your SSH client configuration. See the Alibaba documentation for Creating an SSH key pair.

Setting Up a Security Group

In order to create instances, you need to put them in a Security Group.
  1. Log in to the ECS console - https://ecs.console.aliyun.com/.
  2. Open the left navigation menu tab and then click Security Groups from the Network & Security group.
  3. From the upper right of the screen, click Create Security Group.
  4. Give it a name and description, then click OK.
  5. Immediately set the rules using the section Quickly Create Rules.
    1. Check SSH and HTTPS.
    2. At Custom Port Range, select TCP and then enter 5000/5000.
    3. Set Authorization Object = 0.0.0.0/0 or the IP address from which you will access.
    4. Click OK.

(Optional) Installing Alibaba CLI

To use the Alibaba CLI, follow the Alibaba CLI Install Instructions and also install the ECS SDK.
  1. Install the ECS SDK.
    sudo pip install aliyun-python-sdk-ecs 
  2. Configure the CLI with your keys.
    aliyuncli configure