Announcement

Collapse
No announcement yet.

How to Passthrough USB Devices to Proxmox VE 8 Virtual Machines (VMs)

Collapse
X
Collapse
  •  

  • How to Passthrough USB Devices to Proxmox VE 8 Virtual Machines (VMs)


    You can passthrough USB devices from your Proxmox VE host to any of your Proxmox VE virtual machines (VMs) and access the USB devices from the Proxmox VE virtual machines in the same way as you do on any other computers.

    In this article, I will show you how to passthrough USB devices to a Proxmox VE virtual machine (VM) and access it from the virtual machine.



    Table of Contents

    1. Enabling USB Hotplug for Proxmox VE Virtual Machines (VMs)
    2. Proxmox VE USB Passthrough Methods
    3. Passthrough USB Devices to Proxmox VE Virtual Machines (VMs)
    4. Accessing the USB Device in the Proxmox VE Virtual Machine (VM)
    5. Removing the USB Device from the Proxmox VE Virtual Machine (VM)
    6. Conclusion
    7. References



    Enabling USB Hotplug for Proxmox VE Virtual Machines (VMs)

    USB Hotplug is a feature of Proxmox VE that allows you to add/remove USB devices in the virtual machine on the fly (even when the virtual machine is powered on). I highly recommend you to enable USB Hotplug on the Proxmox VE virtual machines where you need access to different USB devices.



    To configure Hotplug settings for a Proxmox VE virtual machine, navigate to the Options section of the VM[1], select Hotplug[2] and click on Edit[3].





    Make sure USB is selected in the Hotplug settings[1]. Once you’re done, click on OK to save the changes[2].

    In my case, USB Hotplug is already enabled. So, the OK button is disabled as no changes are made.







    Proxmox VE USB Passthrough Methods

    You can passthrough your USB devices on Proxmox VE virtual machines in one of two ways:
    • Using Vendor/Device ID of the USB device: If you use this method to passthrough a USB device on a Proxmox VE virtual machine, the USB device will be accessible from the VM regardless of the physical USB port (of your Proxmox VE host) you’ve connected the USB device to. You can call this USB Device Passthrough as well.
    • Using Host Bus and Port ID of the USB Port the USB Device is Connected to: If you use this method to passthrough a USB device on a Proxmox VE virtual machine, any USB device connected to the same physical USB port of your Proxmox VE host will be accessible from the VM. Unlike Vendor/Device ID USB passthrough, if you connect the same USB device in a different physical USB port of your Proxmox VE host, the device won’t be accessible from the VM. The problem with this method is that you may accidentally connect a wrong USB device on your Proxmox VE VM. The advantage of this method is that you can passthrough one or more physical USB ports of your Proxmox VE host on a Proxmox VE virtual machine and access any USB devices connected to those physical USB ports from the virtual machine without any configuration change. You can call this USB Port Passthrough as well.



    Passthrough USB Devices to Proxmox VE Virtual Machines (VMs)

    First, insert your desired USB device in any of the USB port of your Proxmox VE host.

    To passthrough the USB device to a Proxmox VE virtual machine, navigate to the Hardware section of the Proxmox VE virtual machine[1], and click on Add > USB Device[2].





    To passthrough a specific USB device to the Proxmox VE virtual machine, select Use USB Vendor/Device ID[1] and select your desired USB device from the dropdown menu[2].





    To passthrough a specific physical USB port (of your Proxmox VE host) and the USB device connected to the port on the Proxmox VE virtual machine, select Use USB Port[1] and select your desired USB device from the dropdown menu[2].





    Once you’ve selected your desired USB device/port for passthrough[1], click on Add[2].





    The USB device/port should be added to the Proxmox VE virtual machine.







    Accessing the USB Device in the Proxmox VE Virtual Machine (VM)

    Once you’ve added the USB device/port to the Proxmox VE virtual machine, you should be able to access it from the virtual machine as usual.





    Removing the USB Device from the Proxmox VE Virtual Machine (VM)

    Once you’re done working with the USB device, you can disconnect it from your Proxmox VE host or remove the USB device from the virtual machine.

    To remove the USB device from the Proxmox VE virtual machine, select the USB device from the Hardware section of the virtual machine[1] and click on Remove[2].





    Click on Yes to confirm the action.

    The USB device should be removed from the Proxmox VE virtual machine.





    Conclusion

    In this article, I have shown you how to passthrough a USB device or a physical USB port of your Proxmox VE host on a Proxmox VE virtual machine and access the USB device from the virtual machine. I have also shown you how to remove the USB device/port from the Proxmox VE virtual machine.



    References






    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