# How to Add GPU in VM

{% hint style="success" %}
This guide only explains the installation of the L40s Passthrough GPU type. To find out some other L40S GPU types you can click this link.&#x20;
{% endhint %}

{% hint style="success" %}
Make sure you have a GPU quota, if you don't have a GPU quota, you can contact SuperAdmin.
{% endhint %}

{% hint style="danger" %}
To create a VM in the Deka GPU Portal Service, see the [Create a Virtual Machine](/deka-gpu/deka-gpu-vms/how-to-create-a-virtual-machine-on-service-portal.md) and to open the console on a VM in the Deka GPU Service Portal, see the [How to Access Console](/deka-gpu/deka-gpu-vms/feature-overview-of-virtual-machine/how-to-access-console.md).
{% endhint %}

You as a user must add the GPU used in the VM that has been created in the Deka GPU Service Portal. There are several steps for a VM to be able to use a GPU, namely installing kubectl, adding a GPU, checking the kernel version, and installing the NVIDIA driver. After successfully logging in to the VM via the console in the Deka GPU Service Portal, there are several configurations that you must carry out so that the GPU can be used on the VM.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/reference/how-to-add-gpu-in-vm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
