Creating a VM from a public DSVM image

To create a VM:

  1. Open the folder where the VM will be created.

  2. Click Create resource.

  3. Select Virtual machine.

  4. In the Name field, enter the VM name.

    The name must be unique within the folder. The name may contain lowercase Latin letters, numbers, and hyphens. The first character must be a letter. The last character can't be a hyphen. The maximum name length is 63 characters.

  5. Select the availability zone to locate the VM in.

  6. Select a public DSVM image.

  7. In the Computing resources section, select the type of core usage (partial or full), and specify the necessary number of vCPUs and the amount of RAM.

  8. In the Network settings section, select the subnet to connect the VM to when creating it.

  9. Specify data required for accessing the VM:

    • Enter the username in the Login field.
    • In the SSH key field, paste the contents of the public key file. You need to create a key pair for SSH connection yourself. To generate keys, use third-party tools, such as ssh-keygen utilities on Linux and macOS or PuTTygen on Windows.
  10. Click Create VM.

When creating a VM, it is assigned an IP address and a host name (FQDN). You can use this data to access a virtual machine via SSH.

Connecting to a DSVM via SSH

The recommended method for connecting to a virtual machine over SSH is based on using a key pair: the open key is placed on the virtual machine, and the private key is stored on the user's device. Connecting with a key pair is more secure than connecting with a username and password.

Note

In public Linux images provided by Yandex.Cloud, the ability to connect via SSH using login and password is disabled by default.

You can connect to the virtual machine over SSH when it starts. You can use the ssh tool on Linux and macOS and PuTTy for Windows. Don't forget to set up the created key pair: the private key must match the public key sent to the VM.

To connect, you have to specify the address of the VM. This can be its IP address or the FQDN. Access via FQDN is possible from another Yandex.Cloud VM, if it is connected to the same virtual network. You can find out the IP address in the management console. Go to the Network section on the virtual machine's page.

In the welcome message, you will see the commands for activating an environment and running Jupyter Notebook and JupyterLab:

#####################################################################
Welcome to Yandex Data Science Virtual Machine
Image Build: ...

Please use one of the following commands to activate
the environment with the framework of your choice:
    for Python2 ______________________ source activate py27
    for Python3 ______________________ source activate py36

Packages installed in each environment:
    catboost, xgboost, lightgbm,
    tensorflow, pytorch,
    jupyter, matplotlib,
    numpy, scipy, scikit-learn

To run public JupyterLab execute:
    jupyter lab --no-browser

To run public Jupyter notebook execute:
    jupyter notebook --no-browser

Description and help:
    https://cloud.yandex.ru/docs/compute/operations/dsvm/

#####################################################################