Skip to content

An Ansible Role that configures a Proxmox host to support vGPU on Nvidia Graphics Cards.

License

Notifications You must be signed in to change notification settings

mirceanton/ansible_role-proxmox_vgpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox: vGPU

An Ansible role that configures the vGPU unlock hack on a Proxmox VE 7.2 host.

This tutorial assumes you are using a clean install of Proxmox 7.2, or ymmv when using an existing installation. Make sure to always have backups!

Requirements

This role requires that you get a hold of the Nvidia vGPU driver version 510.85.03 for linux kvm. Details on how to obtain it can be found here.

Once you obtained the driver file, make sure to place it in the /opt/ directory before running the role. An example playbook is listed below.

Role Variables

To check the default variables, take a look at the defaults file.

Note: The roles defined in the dependencies can also have their variables customized. Take a look at their readmes for more information.

Dependencies

Example Playbook

---
- name: Enable vGPU on all PVE hosts
  hosts: pve
  remote_user: root

  pre_tasks:
    - name: Copy Nvidia Driver package
      ansible.builtin.copy:
        src: "files/NVIDIA-Linux-x86_64-510.85.03-vgpu-kvm.run"
        dest: "/opt/NVIDIA-Linux-x86_64-510.85.03-vgpu-kvm.run"
        owner: root
        group: root
        mode: u=rwx,g=rwx,o=r

  roles:
    - role: mirceanton.proxmox_vgpu

LICENSE

MIT

Credits

This project would not have been possible without the work and help of these people:

Author Information

A role developed by Mircea-Pavel ANTON.