Skip to main content
To set up infrastructure for ML workloads, create the following resources in the eu-north1 region:
  • Virtual machine (VM) with eight GPUs and a shared filesystem for training
  • Virtual machine with one GPU for inference
Then, connect to them.

Prerequisites

Generate an SSH key pair.

Create a VM with eight GPUs with InfiniBand™ and a shared filesystem for training

  1. In the sidebar, go to  Compute → Virtual machines.
  2. Click Create resource → Virtual machine. The creation flow is a step-by-step wizard. The sidebar shows your progress through the configuration sections. To move between sections, click Back and Next.
  3. On the Compute step, configure computing resources:
    1. In the Platform section, select With GPUs and Regular. Then, select a platform with NVIDIA® H100, H200 or B200 GPUs. Only these platforms support GPU clusters.
    2. In the Settings section, select a Preset with 8 GPUs.
    3. Create a GPU cluster for the VM. InfiniBand in the GPU cluster interconnects the VM GPUs for high-speed networking and efficient training. To use a GPU cluster, select an existing one or create a new cluster:
      1. Click  Create in the GPU cluster field.
      2. In the window that opens, specify the cluster name and InfiniBand fabric. To select the fabric, see InfiniBand fabrics.
      3. Click Create.
    4. In the same section, select the Project for the VM location and specify the VM name.
  4. On the Storage step, configure the boot disk and attach a shared filesystem:
    1. In the Boot disk section, click  next to the boot disk. In the window that opens, keep New VM-managed disk selected, choose an Ubuntu operating system with pre-installed NVIDIA® GPU drivers, set the size to 50 GiB and click Save.
    2. In the Shared filesystems section, click  Attach shared filesystem.
    3. In the window that opens, create a new filesystem: specify its name, set the size to 50 GiB and the block size to 4 KiB. Click Attach filesystem.
    4. After the window is closed, in the Mount tag field, specify a tag for mounting the filesystem to the VM. Create your own tag, such as my-filesystem. Make sure that it is unique within the VM.
    5. To mount the filesystem to the VM automatically, keep the Auto mount option enabled.
  5. On the Network step, select the Network and Subnet. In the Public IP address field, select Auto (dynamic), so you can later connect to the VM by SSH.
  6. On the Configuration step, in the Access section, add credentials so you can connect to the VM:
    1. In the Username and SSH key field, click  Create.
    2. In the window that opens, specify the username of the VM user, a public key of your SSH key pair and the credentials name to recognize the key in the list. Do not use the root or admin usernames. They are reserved for internal needs and are not allowed to connect to a VM by SSH.
    3. Click Add credentials.
  7. On the Review step, check the full VM configuration. To change a section quickly, click  next to the corresponding block. The wizard opens the relevant step with your current settings. Then, click Create VM.
For more information about the wizard settings, see How to create a virtual machine in Nebius AI Cloud.

Create a VM with one GPU for inference

  1. In the sidebar, go to  Compute → Virtual machines.
  2. Click Create resource → Virtual machine.
  3. On the Compute step, configure computing resources:
    1. In the Platform section, select With GPUs and Regular. Then, select any GPU platform.
    2. In the Settings section, select a Preset with one GPU and the Project for the VM location, and specify the VM name.
  4. On the Storage step, in the Boot disk section, click  next to the boot disk. In the window that opens, keep New VM-managed disk selected, choose an Ubuntu operating system with pre-installed NVIDIA® GPU drivers, set the size to 50 GiB and click Save.
  5. On the Network step, select the Network and Subnet. In the Public IP address field, select Auto (dynamic), so you can later connect to the VM by SSH.
  6. On the Configuration step, in the Access section, add the same username and SSH public key that you used for the VM with eight GPUs.
  7. On the Review step, check the full VM configuration and click Create VM.

Connect to the VMs

Connect to the VM for training via SSH:
  1. In the sidebar, go to  Compute → Virtual machines.
  2. Open the page of the VM and copy its public IP address.
  3. Use the public IP address to connect to the VM:
    Use the username that you specified when creating the VM.
Connect to the VM for inference via SSH:
Do the same steps as for the training VM. Open the page of the inference VM, copy its public IP address and then connect to the inference VM:
Use the username that you specified when creating the inference VM.

What’s next

InfiniBand and InfiniBand Trade Association are registered trademarks of the InfiniBand Trade Association.