Creating a VM from a public DSVM image
Create a DSVM virtual machine using Compute Cloud from the Yandex.Cloud management console and connect to the VM over SSH.
Before you start
To get started in Yandex.Cloud:
- Log in to management console. If you aren't registered, go to the management console and follow the instructions.
- On the billing page make sure that you enabled a billing account and that it has the
ACTIVE
orTRIAL_ACTIVE
status. If you don't have a billing account, create one. - If you don't have a folder, create one.
- If you don't 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 a folder to create a VM in.
- In the list of services, select Compute Cloud.
- Click Create VM.
- Under Basic parameters:
-
Enter a name and description for the VM. Naming requirements:
- Length — from 3 to 63 characters.
- 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.
Note
The VM name is used to generate the FQDN only once, when creating the VM. If the FQDN is important to you, choose an appropriate name for the VM at the creation stage.
-
(optional) Select or create a service account. By using a service account, you can flexibly configure access rights for your resources.
-
Select the availability zone to host the VM in.
-
- In the Images from Cloud Marketplace section, click Choose and select a DSVM image.
- (optional) If you want to add additional disks to the instance, select them in the Disks section.
- Under Computing resources:
- Choose the platform.
- Specify the guaranteed share and the necessary number of vCPUs and amount of RAM.
- If necessary, make your VM preemptible.
- Under Network settings:
- Specify the subnet ID or select a cloud network from the list. If you don't have a network, click Create a new network to create one:
- In the window that opens, enter a name for the new network and choose a subnet to connect the virtual machine to. Each network must have at least one subnet (if there's no subnet, create one). Then 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 Making a dynamic public IP address static.
- No address: Don't assign a public IP address.
- (optional) If necessary, enable DDoS protection.
- Specify the subnet ID or select a cloud network from the list. If you don't have a network, click Create a new network to create one:
- Under Access, specify the data required to access the VM:
- Enter the username in the Login field.
- In the SSH key field, paste the contents of the public key file. (optional) If necessary, enable access to the serial console.
- Click Create VM.
The virtual machine appears in the list. When a VM is being created, it is assigned an IP address and hostname (FQDN).
Connecting to a VM over SSH
You can connect to a VM using the SSH protocol when it is running (the VM's status is RUNNING
). You can use the ssh
tool in Linux and macOS or PuTTY for Windows.
Read more about SSH connections in Connecting to a VM.
When connected, you see in the welcome message the commands to activate the environment and run 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.com/docs/compute/operations/dsvm/
#####################################################################