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

    • How to Change Your Prompt in Bash Shell in Ubuntu
      by Kasimba
      I don’t like my prompt, i want to change it. it has my username and host, but the formatting is not what i want. This blog will get you started quickly on doing exactly that.
      This is my current prompt below:



      To change the prompt you will update .bashrc and set the PS1 environment variable to a new value.

      Here is a cheatsheet of the prompt options:

      You can use these placeholders for customization:

      \u – Username

      ...
      Today, 01:15 AM
    • How to Install ZSH shell on Rocky Linux
      by Kasimba
      In this post I will show you how to install the ZSH shell on Rocky Linux. ZSH is an alternate shell that some people prefer instead of BASH shell. Some people say ZSH has better auto-completion, theme support, and plugin system. If you want to give ZSH a try its quite easy to install and give it a try. This post is focused on the Rocky Linux user and how to install ZSH and get started with its usage.
      Before installing anything new, it’s good practice to update your system packages:...
      12-25-2024, 02:01 AM
    • 5 Compelling Reasons to Choose Linux Over Windows
      by Kasimba



      by George Whittaker


      Introduction

      In the world of operating systems, Windows has long held the lion’s share of the market. Its user-friendly interface and wide compatibility have made it the default choice for many. However, in recent years, Linux has steadily gained traction, challenging the status quo with its unique offerings. What was once considered the domain of tech enthusiasts and developers is now...
      12-21-2024, 06:52 AM
    • NGINX vs Apache; Web Server Comparison
      by Kasimba
      Overview of NGINX and Apache

      NGINX and Apache are leading web server solutions utilized for hosting websites and web applications. Apache, developed by the Apache Software Foundation, offers robust configuration options and extensibility. NGINX, created by Igor Sysoev, is known for its efficiency in handling numerous concurrent connections with low resource utilization. Both servers function not only as HTTP servers but also as reverse proxies, load balancers, and more.

      What is

      ...
      12-21-2024, 03:54 AM
    • Monthly News – November 2024
      by Kasimba
      Hi everyone, I hope you are enjoying the BETA so far! This release introduces new features, tools, and artwork, so we anticipate a good number of bug reports. Every single fix helps us refine and improve the final release. Your feedback during the BETA phase is extremely important to us. Linux Mint 22.1 is our […]

      More...
      12-16-2024, 11:50 AM
    • Mastering OpenSSH for Remote Access on Debian Like a Pro
      by Kasimba



      by George Whittaker


      Introduction

      Remote access is a cornerstone of modern IT infrastructure, enabling administrators and users to manage systems, applications, and data from virtually anywhere. However, with great power comes great responsibility—ensuring that remote access remains secure is paramount. This is where OpenSSH steps in, providing robust, encrypted communication for secure remote management....
      12-13-2024, 10:31 PM
    Working...
    X