USB connection to VirtualBox

How to connect USB device to Virtual Box virtual machine.

usb virtual box with виртуальные машины and ПО|lower


HOW TO CONNECT USB TO VIRTUALBOX

  1. Install VirtualBox extension pack from Virtualbox.org. Then open VirtualBox->Preferences->Extension->+

  2. I’ve got an error Helper version mismatch - expected 0x30000 got 0x3

  3. Probably version mismatch. My Virtualbox is 6.1.26, but extension pack 6.1.30. $tup1d a$ |=uc|<.

  4. I go to download.virtualbox.org/virtualbox/6.1.26 and download extension for 6.1.26 and it is installed.

  5. But usb still doesn’t detected. People say that user shoud belong to vboxusers group. Lets try. Type $ sudo usermod -aG vboxusers <yourUSERnameHERE> or $ sudo adduser $USERNAME vboxusers

  6. Lets check $ groups <yourUSERnameHERE>

  7. Reboot // Helped

  8. I can attach USB to virtual machine from menu VB but when I run VM I got an error Failed to create a proxy device for USB port.

  9. Maybe I need Virtual Box guest additions. VboxGuestAdditions.iso should be inside installation VirtualBox folder. Type $ whereis virtualbox and find this .iso

  10. Run guest machine→Menu→Devices→Insert Disc Guest Additions →Choose download. Then run script ./VboxLinuxAdditions.run // Failed I have to install gcc, make and perl.

  11. I installed dependancies then run the script again. It seems to be installed.

  12. Reboot

    Doesn’t work (doesn’t see usb). Copy to clip board is worked after activationg theis option in Preferences.

  13. From host machine I’ve downloaded GuestAdditions.iso from download.virtualbox.org/virtualbox/6.1.26 and mount it as CD-Rom for guest.

  14. $ sudo apt-get install virtualbox-guest-additions-iso from guest then reboot. // Still don’t help but it seems to damaged my linux a bit because it updated kernel.

  15. Try in guest to add user to vboxusers group and reboot machine // Helped

  16. Tried to start Virtualbox with sudo but it doesn’t help.

  17. If you move one of you virtual machines to Virtualbox opened as a root this VM became unavailable for current user. You have to change owner. $ sudo chown <yourUSER> <fileName>

  18. I still don’t know what to do with this…. To be continued.