Creating a VM from a public DSVM image
Create a DSVM VM using Compute Cloud from the Yandex Cloud management console and connect to it over SSH.
Getting started
To get started in Yandex Cloud:
- Log in to the management console
. If you are not signed up yet, navigate to the management console and follow the instructions. - In Yandex Cloud Billing
, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not yet have a billing account, create one. - If you do not have a directory yet, create one.
- If you do not have an SSH key pair yet, create one.
Creating a VM from a public DSVM image
Creating an instance from a public DSVM image:
-
In the management console
, select the folder to create the virtual machine in. -
In the list of services, select Compute Cloud.
-
Click Create virtual machine.
-
Under Basic parameters:
-
Enter a name and description for the VM. The naming requirements are as follows:
- The name must be from 3 to 63 characters long.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter and the last character cannot be a hyphen.
Note
The VM name is used to generate an internal FQDN only once: when creating a VM. If the internal FQDN is important to you, choose an appropriate name for the VM at the creation stage.
-
Select an availability zone to put your virtual machine in.
-
-
Under Image/boot disk selection, go to the Marketplace tab and select the DSVM image.
-
(Optional) Under Disks and file storages, select the Disks tab and configure a boot disk:
- Select the disk type.
- Specify the required disk size.
1. (Optional) Under Disks and file storages, select the File storages tab and attach the file storage. Create the storages first.
-
Under Computing resources:
- Choose a platform.
- Specify the guaranteed share and the required number of vCPUs as well as the amount of RAM.
- Make your VM preemptible, if required.
- (Optional) Enable a software-accelerated network.
-
Under Network settings:
- Enter a subnet ID or select a cloud network from the list. You can select the search scope: in the current folder or in all folders. If you do not have a network, click
Create network to create one:- In the window that opens, enter the folder to host the new network, as well as the network name.
- In the Advanced field, enable Create subnets (each network must have at least one subnet).
- Click Create.
- In the Public IP field, choose a method for assigning an IP address:
Auto
: Assign a random IP address from the Yandex Cloud IP pool.List
: Select a public IP address from the list of previously reserved static addresses. For more information, see Converting a dynamic public IP address to static.No address
: Do not assign a public IP address.- (Optional) Enable DDoS protection in the Advanced field, if required.
- Select the appropriate security groups in the Security groups field.
- Enter a subnet ID or select a cloud network from the list. You can select the search scope: in the current folder or in all folders. If you do not have a network, click
-
Under Access, specify the data required to access the VM:
- (Optional) Select or create a service account. With a service account, you can flexibly configure access rights for your resources.
- Enter the username in the Login field.
- In the SSH key field, paste the contents of the public key file.
- (Optional) Enable access to the serial console in the Advanced field, if required.
In public Linux images provided by Yandex Cloud, the functionality of connecting over SSH using login and password is disabled by default.
-
Click Create VM.
The virtual machine will appear in the list. When a VM is created, it is assigned an IP address and host name (FQDN).
Connecting to VMs over SSH
You can connect to a VM over SSH once it is started (i.e., has the RUNNING
status). You can use the ssh
utility in Linux or macOS, or PuTTY
Read more about SSH connections in the Connecting to a VM section.
When connected, in the welcome message, you will see the commands to activate the environment and run Jupyter Notebook
#####################################################################
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://yandex.cloud/en/docs/compute/operations/dsvm/
#####################################################################