In the first step to add a GPU to a VM in the Deka GPU Portal Service you need to export the downloaded kubeconfig file via the Deka GPU Portal Service. If you haven't downloaded kubeconfig, you can press this link for further explanation. To export the kubeconfig file on the Linux operating system, you can run the following syntax.
setKUBECONFIG=C:\path\to\your\kube-config.yaml
Meanwhile, if you use the Windows operating system, you can run the following syntax.
After exporting the KUBECONFIG Variable file, verify the connection to the Kubernetes cluster using the “cluster-info” command.
kubectlcluster-info
cluster-info
Turn off the VM that is being configured via the Deka GPU Service Portal by click the More button and select Turn Off.
Turn Off VM
The "Turn Off Virtual Machine" window appears. Click the Yes button to continue turning off the VM. After successfully shutting down the VM, run the following syntax to ensure the VM has stopped running.
check status vm
Change the manifest that the VM uses by running the following command, and add the GPU to the devices list.
In the specs section, above the disk, add this line.
So the vm-l40s-passthrough manifest looks like below.
add gpu
Restart the VM in use via the Virtual Machine page in the Deka GPU Portal Service by pressing the More button and selecting Turn On.
Turn On VM
Run the following command to see a list of NVIDIA devices.