Virtualbox does not see ubuntu stick. How to configure USB ports in VirtualBox. Permanent setup and one-time connection

You need to run different platforms on one workstation. Nothing is easier than . What else is great about? But the fact that VirtualBox works well with USB devices and forwards ports from the host operating system. Everything is very transparent and convenient. With a little knack for manipulating USB devices, you'll love it. However, when using USB for the first time in VirtualBox, the extension pack is required (VirtualBox 4.2.12 Oracle VM VirtualBox Extension Pack ). Download it on the manufacturer's website (link to the manufacturer's website ). After that, you will be prompted to add the logins of all users to the group ‘ vboxusers‘.

USB Unable to Use Warnings

VirtualBox window about the request to add users to the 'vboxusers' group

Settings

To add yourself to the vboxusers group, run the command in the terminal, opening it with the keyboard shortcut CTRL + ALT + T, having previously replaced in the proposed version % username% to your username or the user who needs to give permission to use USB devices in the virtual machine:

Sudo gpasswd --add% username% vboxusers

You can also install the graphical "Users and Groups" utility:

Sudo apt-get install gnome-system-tools

If you have any other ideas on this, write in the comments below.

  1. How to connect a USB flash drive in VirtualBox? Hello everybody! I installed the latest operating system on a virtual machine and want VirtualBox to see my flash drive and external USB hard drive, how can this be done?
  2. Hello site, help me solve the problem, the operating system installed on the VirtualBox virtual machine does not see the USB flash drive with files connected to the computer, and my portable USB hard drive is also not visible. In the settings of the virtual machine, I chose Devices-\u003e USB Devices, then I select my USB flash drive and tick it, but the USB flash drive still does not appear in the Computer and Disk Management window.

How to connect a USB flash drive in VirtualBox

Hello friends. There are many situations when you need to connect a flash drive with your files or an external USB hard drive to the operating system installed on a virtual machine. For example, you want to install a program into a virtual machine, and the installer of this program is on a USB flash drive, or vice versa, you need to transfer some files from the virtual machine to the main operating system, and create a shared folder for you, and it's not very convenient and fast , or maybe you just want to connect a printer to the virtual machine! I assure you, it is very easy to do all this.

Note: There are articles on VirtualBox on our site and they may be of interest to you

In this article we will configure VirtualBox so that it will work with our external USB drive and flash drive.

First of all, we connect the USB flash drive to the computer and launch VirtualBox, then in the main window of the virtual machine select the machine you need with the left mouse (if you have several of them) and click on the button Tune.

We mark the points Enable USB controller

Enable USB 2.0 Controller (EHCI)

In the window USB device filters, add a new USB filter, click on + and select our flash drive (in my case, Kingston DataTraveler 3.0, mark it with the left mouse.

that's all, two new USB filters in the form of our flash drive and an external hard drive have been added to the virtual machine, click OK

We load the operating system installed on VirtualBox, for example Windows 10, then in the main window Devices->USB devices I select my Kingston DataTraveler 3.0 flash drive and mark it with a tick, just as I tick my Western Digital My Passport USB portable hard drive.

Click to enlarge the image with the left mouse

Now both devices: a USB flash drive and a portable hard drive are available in the Computer window of the Windows 10 operating system and in Disk Management.

If you need a flash drive to appear in the main operating system, then in the main window Devices -\u003e USB Devices, select your Kingston DataTraveler 3.0 flash drive and uncheck it

Click to enlarge the image with the left mouse

I think many have already been puzzled by the question of how to configure USB on Virtualbox in their beloved Ubuntu. Sometimes it is necessary to connect a USB flash drive directly to Virtualbox, but instead you have to copy data from a flash drive to a shared folder and from this folder already use the data in the virtual system (note my article "Share XP guest folder under Ubuntu"). I also tried to solve this problem for a long time, but something didn't work out for me, and I didn't really need it then, but now I accidentally stumbled upon a video from youtube where it was shown how you can connect your devices. 1. So first add yourself to the virtualbox group by running sudo gedit / etc / group and find the line vboxusers: x: 121: and add your username there. 2. Then write in the terminal getent group vboxusers and you will see in the output something like this vboxusers: x: 121 : user if you added the user to the group correctly in the previous step, then after the three-digit number there will be your login, in my case user. From this line we need to remember gid this is a three-digit number, in my case it is 123, I specially marked it in bold, you may have a completely different number. Attention: remember this number, it will be useful to us for the next step. 3. Open in a text editor fstab: sudo gedit / etc / fstab and insert the line there: none / sys / bus / usb / drivers usbfs devgid \u003d XXX, devmode \u003d 666 0 0 where XXX, the same qid that we memorized in the previous step. Save changes and restart your computer. 4. After rebooting, start Virtualbox and go to the properties of your virtual machine. Move to the USB section and there tick the "enable USB" and "enable USB 2.0" options (I have a system in English, translated these names on the fly, maybe it won't be called so little in the Russian interface). Then start the system and to connect USB devices in the navigation window of your virtual machine go to "Devices - USB devices" and tick the necessary devices. You can also add that USB devices are automatically attached when the virtual OS starts. To do this, in the settings of the virtual machine, in the USB section, add the required device to the filter. From the sponsor: Italian furniture factories are famous all over the world for their products. Such furniture is created in accordance with the requirements of European quality standards and will serve its owner for a long time. In addition, Italian furniture factories use natural materials in the production process. Buying furniture from Italian manufacturers means getting a quality product with a beautiful design at an affordable price.

VirtualBox is a popular program for emulating a personal computer and running various operating systems. You can connect various devices to your virtual machine, including USB devices connected to the main system.

But many users face the problem that VirtualBox does not see USB. The devices are connected to the system and work for sure, but they simply are not in the connection menu. In this article, we will look at what to do if virtualbox linux does not see the usb device. The article is intended primarily for Ubuntu, but also for users of other distributions.

Virtualbox error does not see USB

Most often, this error occurs because the user on whose behalf you launched VirtualBox does not have access to the necessary files. This can be solved very simply, you just need to add your user to the vboxusers group. To do this, run the command:

sudo usermod -a -G vboxusers $ USER

After that, you just need to log in again to make everything work. You can check if USB devices are detected with the command:

VBoxManage list usbhost

But this does not always help. You will also need to see if USB controller support is enabled for the virtual machine. To do this, open the context menu for it and select the item "Setting"then go to tab "USB":

There should be a check mark opposite "Enable USB controller"and one of the available interfaces has been selected. To support USB 2.0 or USB 3.0, you need to install the Virtualbox Extensions Pack. This is a set of proprietary extensions that also include support for this technology. Chances are you can already connect the usb virtualbox.

To do this, download the file for your version of Virtualbox from the official website. Then open the menu "File" -> "Settings" -> "Plugins" and connect the downloaded file here:

In Ubuntu 16.04, this can be done easier, just run the command:

sudo apt install virtualbox-ext-pack

Done, then you can enable USB 3.0 support.

On some distributions, for example, the Red Hat family, usb in virtualbox does not work because USB connectivity is disabled for security reasons. In this case, you will have to turn it on. To do this, you must first uncomment all SUBSYSTEM lines in /etc/udev/rules.d/60-virtualbox.conf. This can be done with the command:

sudo printf "% s \\ n" "g / ^ # SUBSYSTEM / s / ^ # //" w | ed -s /etc/udev/rules.d/60-vboxdrv.rules

Then copy this file to the / usr / lib / udev directory:

sudo cp -v /etc/udev/rules.d/60-vboxdrv.rules / usr / lib / udev /

And reload the rulesets:

sudo udevadm control --reload-rules
$ sudo systemctl restart vboxdrv.service

Now you can check again whether everything still does not see the Virtualbox usb device or everything is already working.

findings

In this article, we looked at what to do if VirtualBox does not see USB in Ubuntu or other Linux distributions. In most cases, the solution is very simple. I hope this information was helpful to you.

Related entries:


First you need to check the VirtualBOX settings, and the version of the extension. This is an important part of the process.

To solve the group problem, use the commands sudo addgroup vboxusers and sudo adduser USERNAME vboxusers, where USERNAME is your name user. Do both of these things on the host. Reboot device for this to take effect.

Note that the vboxsf you listed in your groups is actually the type of filesystem used by the mount command.

Download the correct expansion pack from of this page and when prompted open it with Virtualbox.

The final step is uSB support setting on your virtual machine, opening virtual machine settings in virtualbox with virtual machine off, selecting USB and enabling USB 2.0, and adding and activating filters as needed. See below:

Note... In the recent past, USB 3.0 controllers (XHCI) were not supported, but this functionality was added in Virtual Box 5.0

More information is available in the official documentation. If that doesn't sort it out for you, email me and I'll expand it.

To add a user to a group, follow these steps:

sudo usermod -aG vboxusers "Username"

Received error message:

usermod: group "vboxusers" does not exist

My groups are as follows:

karl adm cdrom sudo dip plugdev lpadmin sambashare vboxsf

I am using VirtualBox 5.0.14, Ubuntu 17.04, Guest Additions 5.0.14 and Extension 5.0.14. I can see my USB device on my operating system fine. I.e everything is working.

That is, if VirtualBox does not see USB in Ubuntu, you need to check settings such as:

  • Installed extensions
  • Vboxuser group

Saving these settings

let's do it again

First you need to make sure you have the Virtualbox expansion pack, this allows usb 2.0 to be used. usb 3.0 is not yet supported.

sudo usermod -a -G vboxusers

Sign in for the changes to take effect.

Enable USB 2.0 controller (EHCI) in settings for you VM

findings

If VirtualBox does not see USB in Ubuntu, there may be several reasons for this, which we have listed in the list above. They are accordingly a complete and quick solution to this error.

If you find an error, please select a piece of text and press Ctrl + Enter.

Did you like the article? To share with friends: