Skip to main content

Attach or detach a GPU

You can attach a GPU (Graphics Processing Unit) to a VM (Virtual Machine), or detach it at any time. To attach a GPU, you must first allocate it to your account. For more information, see Allocate or release a GPU.

Permissions

info

These actions require the following IAM (Identity and Access Management) permissions:

  • compute.gpu.update
warning

You can only attach GPU to VM with the highest performance flag (1). For more information, see About GPU and VM types.

Attach a GPU

  1. From the left-hand side menu, click ComputeGPU.

    GPU: Image

  2. In the GPU dashboard, choose from the list the GPU you want to attach to a VM.

  3. Choose the Attach to a VM action.

    GPU: Image

    An "Attachment to a VM" panel appears.

  4. In the "Choose a VM" list, select the VM to which you want to attach the GPU.

  5. Click Attach to the VM.

    GPU: Image

  6. A confirmation message appears at the bottom of the page indicating that the GPU is successfully attached to the VM.

warning

To finalize the attachment of the GPU, you must perform a stop and then a start of the VM. A simple restart is not sufficient, because the attachment of the GPU takes place when the VM passes through the stopped state.

For the difference between stop/start and restart, see VM lifecycle.

Detach a GPU

info

This action requires the following IAM (Identity and Access Management) permissions:

  • compute.gpu.update
  1. From the left-hand side menu, click ComputeGPU.

    GPU: Image

  2. Select the GPU you want to detach and choose the Detach from the VM action. The "Detach from the VM" dialog box appears.

    GPU: Image

  3. Click Detach from the VM.

  4. A confirmation message appears at the bottom of the page indicating that the GPU is successfully detached from the VM.

warning

To finalize the detachment of the GPU, you must perform a stop and then a start of the VM. A simple restart is not sufficient, because the detachment of the GPU takes place when the VM passes through the stopped state.

For the difference between stop/start and restart, see VM lifecycle.

Cette page vous a-t-elle été utile ?