Announcement

Collapse
No announcement yet.

How to Passthrough an NVIDIA GPU to a Windows 11 Proxmox VE 8 Virtual Machine (VM)

Collapse
X
Collapse
  •  

  • How to Passthrough an NVIDIA GPU to a Windows 11 Proxmox VE 8 Virtual Machine (VM)


    Once you’ve configured your Proxmox VE 8 server and NVIDIA GPU for PCI/PCIE passthrough and created a Windows 11 virtual machine (VM) on your Proxmox VE 8 server, you need to add your NVIDIA GPU to the Windows 11 Proxmox VE virtual machine. You also need to install the NVIDIA GPU drivers on the Windows 11 virtual machine and connect a monitor, a keyboard, and a mouse to use the Windows 11 Proxmox VE 8 virtual machine as a normal PC.

    Table of Contents

    1. Preparing Proxmox VE 8 for NVIDIA GPU Passthrough
    2. Creating a Windows 11 Virtual Machine on Proxmox VE 8
    3. Adding Your NVIDIA GPU to the Windows 11 Proxmox VE 8 Virtual Machine (VM)
    4. Adding a Keyboard and Mouse to the Windows 11 Proxmox VE 8 Virtual Machine (VM)
    5. Checking if NVIDIA GPU Passthrough is Working on the Windows 11 Proxmox VE Virtual Machine
    6. Downloading and Installing NVIDIA GPU Drivers on the Windows 11 Proxmox VE Virtual Machine
    7. Removing the Virtual Graphics Adapter of the Windows 11 Proxmox VE Virtual Machine (VM)
    8. Conclusion



    Preparing Proxmox VE 8 for NVIDIA GPU Passthrough

    Before you can passthrough your NVIDIA GPU on Proxmox VE virtual machines (VMs), you must configure your NVIDIA GPU for PCI/PCIE passthrough on your Proxmox VE 8 server.

    For detailed information on how to configure NVIDIA GPUs for PCI/PCIE passthrough on Proxmox VE 8, read this article.



    Creating a Windows 11 Virtual Machine on Proxmox VE 8

    To passthrough your NVIDIA GPU to a Windows 11 Proxmox VE 8 virtual machine, you will of course need a Windows 11 virtual machine on your Proxmox VE 8 server.

    For detailed information on how to create a Windows 11 virtual machine on Proxmox VE 8, read this article.



    Adding Your NVIDIA GPU to the Windows 11 Proxmox VE 8 Virtual Machine (VM)

    To add your NVIDIA GPU to a Windows 11 Proxmox VE virtual machine, open the Windows 11 virtual machine in your Proxmox VE dashboard, navigate to the Hardware section of the Windows 11 virtual machine, and click on Add > PCI Device as marked in the screenshot below.





    From the Add: PCI Device window, select Raw Device[1] and select your NVIDIA GPU (not the NVIDIA Audio Device of the GPU) from the Device dropdown menu[2].





    Check All Functions[1], check PCI-Express[2], and click on Add[3].





    Your NVIDIA GPU should be added to your selected Windows 11 Proxmox VE virtual machine (VM).





    Adding a Keyboard and Mouse to the Windows 11 Proxmox VE 8 Virtual Machine (VM)

    To use the Windows 11 Proxmox VE virtual machine as a normal PC, you need to add a keyboard and mouse to the virtual machine.



    First, connect a USB keyboard and a USB mouse to the USB ports of your Proxmox VE 8 server.



    Then, open the Windows 11 virtual machine on Proxmox VE dashboard, navigate to the Hardware section, and click on Add > USB Device.





    From the Add: USB Device window, select Use USB Vendor/Device ID[1] and select your mouse from the Choose Device dropdown menu[2].





    Click on Add.





    The USB mouse should be added to your Windows 11 Proxmox VE virtual machine.





    In the same way, add your USB keyboard to the Windows 11 Proxmox VE virtual machine.





    The USB keyboard should be added to the Windows 11 Proxmox VE virtual machine.





    Checking if NVIDIA GPU Passthrough is Working on the Windows 11 Proxmox VE Virtual Machine

    To check if the NVIDIA GPU passthrough is working on the Windows 11 Proxmox VE virtual machine (VM), you need to start the Windows 11 virtual machine and see if it starts without any errors. If the NVIDIA GPU passthrough fails, the Windows 11 virtual machine won’t start.

    To start the Windows 11 virtual machine, open it on the Proxmox VE dashboard and click on Start.





    The Windows 11 virtual machine should start without any issues.





    If the NVIDIA GPU passthrough is successful, you will see two display adapters in the Device Manager of the Windows 11 virtual machine.

    NOTE: To open Device Manager on Windows 11, right-click (RMB) on the Start Menu and click on Device Manager.





    Downloading and Installing NVIDIA GPU Drivers on the Windows 11 Proxmox VE Virtual Machine

    Once you’ve added your NVIDIA GPU to the Windows 11 Proxmox VE virtual machine (VM), you need to install the NVIDIA GPU drivers on the Windows 11 virtual machine for it to work properly.

    The process of downloading and installing the NVIDIA GPU drivers on the Windows 11 virtual machine is the same as on a real Windows 11 PC.



    To download the latest version of the NVIDIA GPU drivers, visit the official NVIDIA GPU Drivers downloads page from a web browser on the Windows 11 virtual machine.

    Once the page loads, select your NVIDIA GPU from the Product Type, Product Series, and Product dropdown menus[1]. Then, select Windows 11 from the Operating System dropdown menu[2], select the type of driver (GRD – Game Ready Driver or SD – Studio Driver) you want to download from the Download Type dropdown menu[3], select your language from the Language dropdown menu[4], and click on Search[5].





    Click on Download.





    Click on Download.





    Your browser should start downloading the NVIDIA GPU drivers installer file. It will take a while to complete.





    At this point, the NVIDIA GPU drivers installer file should be downloaded.





    Once the NVIDIA GPU drivers installer file is downloaded, you will find it in the Downloads folder of your Windows 11 virtual machine.

    To install the NVIDIA GPU drivers on the Windows 11 Proxmox VE virtual machine, double-click (LMB) on the NVIDIA GPU drivers installer file.





    Click on Yes.





    Click on OK.





    NVIDIA Drivers installer is being extracted to your computer.





    Once the NVIDIA Drivers installer is extracted, NVIDIA drivers installer should window be displayed.

    To install only the NVIDIA GPU drivers (not the GeForce Experience), select NVIDIA Graphics Driver[1] and click on AGREE AND CONTINUE[2].





    Select Custom (Advanced)[1] and click on NEXT[2].





    Check the Graphics Driver, HD Audio Driver, and PhysX System Software components from the list[1], check Perform a clean installation[2], and click on NEXT[3].





    NVIDIA GPU drivers are being installed on the Windows 11 Proxmox VE virtual machine. It will take a while to complete.





    Once the NVIDIA GPU drivers installation is complete, click on CLOSE.





    You can confirm that the NVIDIA GPU (that you’ve added to the Windows 11 Proxmox VE virtual machine) is recognized from the Device Manager app of Windows 11.





    You can also confirm that your NVIDIA GPU is working correctly (on the Windows 11 Proxmox VE virtual machine) from the Performance section of the Task Manager app of Windows 11.

    NOTE: The Task Manager app can be opened on Windows 11 using the keyboard shortcut + + . You can also right-click (RMB) on the start menu and click on Task Manager to open the Task Manager app on Windows 11. For more information on opening the Task Manager app on Windows 10/11, read this article.





    Removing the Virtual Graphics Adapter of the Windows 11 Proxmox VE Virtual Machine (VM)

    Once the NVIDIA GPU is added to the Windows 11 Proxmox VE virtual machine and the NVIDIA GPU drivers is installed on the Windows 11 virtual machine, you can remove the virtual graphics adapter of the Windows 11 virtual machine so that you only get video output on the monitor/monitors directly connected to your NVIDIA GPU and get the best performance from the NVIDIA GPU, just like your real computer. You can use it like you do your real Windows PC, you won’t notice any difference.

    To remove the virtual graphics adapter from the Windows 11 Proxmox VE virtual machine (VM), first, click on Shutdown from the top-right corner of the Proxmox VE dashboard to shutdown the Windows 11 virtual machine.





    Click on Yes.





    Once the Windows 11 virtual machine is shut down, navigate to the Hardware section, select Display, and click on Edit.





    Select none from the Graphic card dropdown menu[1] and click on OK[2].





    The virtual graphics adapter should be removed from the Windows 11 Proxmox VE virtual machine (VM).





    As you can see, the screen of the Windows 11 Proxmox VE virtual machine (VM) is displayed on the monitor connected to the NVIDIA GPU via HDMI cable, just like a real computer.





    The virtual graphics adapter is removed from the Windows 11 virtual machine and only the NVIDIA GPU of the virtual machine is used for displaying the screen of the virtual machine.





    I am running the UNIGINE Heaven benchmark on the Windows 11 Proxmox VE virtual machine and I am getting good framerates as you can see in the screenshot below.





    Conclusion

    In this article, I have shown you how to passthrough an NVIDIA GPU, a keyboard, and a mouse to a Windows 11 Proxmox VE 8 virtual machine. I have also shown you how to install the NVIDIA GPU drivers on the Windows 11 Proxmox VE virtual machine and configure it to work just like any other Windows PC.







    More...
      Posting comments is disabled.

    Categories

    Collapse

    Article Tags

    Collapse

    There are no tags yet.

    Latest Articles

    Collapse

    • Dd Command Examples on Linux
      by Kasimba
      The dd command, or data duplicator, is a robust and versatile utility famous for its disk manipulation features. While its primary purpose is to create disk images, it also lets you clone data, convert file formats, take backups, and more.
      Whether you’re a Linux beginner or an experienced user, understanding the various applications of the dd command can be beneficial. In this short tutorial, we’ll explore multiple examples of the dd command in Linux you can learn with no hassles.
      Create

      ...
      Yesterday, 05:48 PM
    • How To Restart SSH Service in Linux
      by Kasimba
      The Secure Socket Shell, or SSH, is a widely used utility for controlling servers remotely. It can also be used to operate, monitor, and manage remote machines. SSH uses the cryptographic protocol to establish connections, ensuring safety and privacy.
      Although the SSH service becomes active right after installation, you may need to restart it for reasons like configuration changes, system troubleshooting, software updates, etc. This quick tutorial will explain how to easily restart the SSH...
      Yesterday, 05:48 PM
    • How to Log Out of SSH
      by Kasimba
      Secure Shell utility connects to remote devices and servers, allowing you to operate and monitor them efficiently. It establishes the connection through a cryptographic protocol, ensuring a safe and secure environment.




      In addition to administration, you can also use it to transfer files, troubleshoot network issues, etc. Although it is easy to log in and use SSH, many still need to learn how to log out of it. This is the most basic yet crucial aspect you should...
      Yesterday, 05:48 PM
    • How to Use SSH to Access a Remote Server in Linux
      by Kasimba
      Secure Socket Shell (SSH) is a robust tool for accessing remote machines and servers. It establishes the connection via a cryptographic protocol, ensuring utmost privacy and security.

      You can use SSH to transfer files, execute commands, remotely administer the system, troubleshoot underlying issues, and more. This tutorial is for you if you also want to learn how to use SSH to access the remote server. Here, we have listed the methods of SSH to access the remote server in Linux....
      Yesterday, 05:48 PM
    • How to Setup and Use Sshfs in Linux
      by Kasimba
      The SSH File System, or SSHFS, is a filesystem client that you can mount on your local device to interact with files on the remote device. SSH establishes this connection using the Secure Shell File Transfer Protocol (SFTP).
      Moreover, using its cryptographic protocol, SSH ensures data integrity and confidentiality. If your daily tasks include administrating a remote device or server, you are bound to use SSHFS. Hence, you need to learn how to use the SSH File System. So, this short guide will...
      Yesterday, 05:48 PM
    • How To Add SSH Key to GitHub
      by Kasimba
      GitHub is a famous platform for developers to create, store, share, and manage program codes. Here, you can control an application’s versions, host repositories, collaborate and socialize with other users, and many more.
      GitHub has a fantastic feature lets you access and manage your repositories through SSH. However, this connection requires an access key known as an SSH key on your Linux. So, in this article, we will explain how to add an SSH key to GitHub without hassles.
      How To Add

      ...
      Yesterday, 05:48 PM
    Working...
    X