> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/reference/how-to-add-gpu-in-vm.md).

# 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.
{% 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.
