Saturday, October 12, 2019

VirtualBox can't find USB devices in Linux host

VirtualBox
This is the common problem I have seen in almost every Linux distros (especially Debian based distros. Such as Linux Mint, Ubuntu, POP OS, etc), that VirtualBox unable to find USB devices connected to the host OS, even you installed the VirtualBox Extension Pack.

Undetected USB devices

What are the needs to have USB support for Virtual Machines?

1. Data Transfer - Suppose you want to create a backup of your Virtual Machine, or just want to transfer data from your Pen drive to Virtual Machine, in that case, you must have an active USB connection.

2. Wifi Adapters - If you want to connect your USB dongles, Wifi adapter to your Virtual Machines, you need USB support.

How to enable USB support for your Virtual Machines?

Solution 1

Extensions Pack

1. Check if you already installed an extension pack or not?

Steps  Open VirtualBox ---> Click on File menu ---> Preferences (Ctrl+G) ---> Extensions tab

VirtualBox Extension Pack
If you don't find any installed extension pack, go to the VirtualBox download page (https://www.virtualbox.org/wiki/Downloads) and look for Oracle VM VirtualBox Extension Pack, download and installed it. (* Extension Pack must be the same version of your VirtualBox) [If you don't know what is your's VirtualBox version, just click on Help menu ---> About VirtualBox]

I hope you installed VirtualBox Extension Pack successfully.

Now select your Virtual Machine ---> Right-click on it and choose Settings (Ctrl+S). ---> Come to the USB tab. Check on Enable USB controller and select USB 2.0 (EHCI) Controller or USB 3.0 (xHCI) Controller, any one of them (By default USB 1.1 (OHCI). Now click on Add USB icon.


* If you don't find any active USB list, follow the Solution 2

Solution 2

Add user to the vboxusers group

1. Open your terminal, type sudo su and enter your account password.
sudo

2. Type the following command sudo usermod -aG vboxusers mir (*In the last command, instead of mir use your admin account name such as nick, peter, etc.)
vboxusers

3. Finally, reboot your PC and check the USB settings again.


No comments:

Post a Comment