can't connect to USB with centOS stream on virtualbox

Issues related to applications and software problems and general support
Post Reply
anmac1789
Posts: 4
Joined: 2024/03/24 03:45:11

can't connect to USB with centOS stream on virtualbox

Post by anmac1789 » 2024/03/24 03:48:01

Hi everyone, I am using centOS stream 9 on virtualbox on a ubuntu 20.04 host. I have installed virtualbox extensions, have updated the linux kernel headers, have added the vboxsf users group but I still can't connect USB's or my android phone to the centOS vm. Can someone please help me ?

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: can't connect to USB with centOS stream on virtualbox

Post by TrevorH » 2024/03/24 13:27:39

If you cannot attach the USB device to the VM then that would be a VBox problem and you'd need to ask in a VBox venue.

If you can attach it but it isn't visible or isn't working in CentOS then that may be something to ask about here. If so then open a command prompt on the CentOS VM and run `dmesg -Tw` then attach the device to the VM and watch to see if any messages come out from the dmesg command as you do so.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

anmac1789
Posts: 4
Joined: 2024/03/24 03:45:11

Re: can't connect to USB with centOS stream on virtualbox

Post by anmac1789 » 2024/03/24 17:14:36

TrevorH wrote:
2024/03/24 13:27:39
If you cannot attach the USB device to the VM then that would be a VBox problem and you'd need to ask in a VBox venue.

If you can attach it but it isn't visible or isn't working in CentOS then that may be something to ask about here. If so then open a command prompt on the CentOS VM and run `dmesg -Tw` then attach the device to the VM and watch to see if any messages come out from the dmesg command as you do so.
the error I get in virtualbox is:

Failed to attach the USB device SAMSUNG_Android [0504] to the virtual machine centOS.
Failed to create a proxy device for the USB device. (Error: VERR_PDM_NO_USB_PORTS).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
Screenshot from 2024-03-24 13-14-09.png
Screenshot from 2024-03-24 13-14-09.png (121.4 KiB) Viewed 807 times

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: can't connect to USB with centOS stream on virtualbox

Post by TrevorH » 2024/03/24 17:33:24

Well that's a VBox error so you need to ask in a VBox venue - they have a forum. However at a guess based on the "Error: VERR_PDM_NO_USB_PORTS", have you added a USB controller of the right version to the VM and enabled it? That's a setting in the VBox settings for that VM.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

anmac1789
Posts: 4
Joined: 2024/03/24 03:45:11

Re: can't connect to USB with centOS stream on virtualbox

Post by anmac1789 » 2024/03/24 18:48:30

TrevorH wrote:
2024/03/24 17:33:24
Well that's a VBox error so you need to ask in a VBox venue - they have a forum. However at a guess based on the "Error: VERR_PDM_NO_USB_PORTS", have you added a USB controller of the right version to the VM and enabled it? That's a setting in the VBox settings for that VM.
yes, I've enabled USB 2.0
Screenshot from 2024-03-24 14-45-07.png
Screenshot from 2024-03-24 14-45-07.png (97.82 KiB) Viewed 789 times
and then reconnecting the phone under Devices --> USB --> selecting my galaxy s21 results in this error below:
Screenshot from 2024-03-24 14-48-15.png
Screenshot from 2024-03-24 14-48-15.png (94.58 KiB) Viewed 789 times

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: can't connect to USB with centOS stream on virtualbox

Post by TrevorH » 2024/03/25 00:46:14

That's almost certainly a USB 3.x device.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

anmac1789
Posts: 4
Joined: 2024/03/24 03:45:11

Re: can't connect to USB with centOS stream on virtualbox

Post by anmac1789 » 2024/03/25 01:57:25

TrevorH wrote:
2024/03/25 00:46:14
That's almost certainly a USB 3.x device.
So If i use USB 3.0 and re-run the VM
Screenshot from 2024-03-24 21-50-25.png
Screenshot from 2024-03-24 21-50-25.png (57.06 KiB) Viewed 718 times
Screenshot from 2024-03-24 21-56-33.png
Screenshot from 2024-03-24 21-56-33.png (108.26 KiB) Viewed 718 times
still getting the same message, what if the problem is that I can't add the vboxusers or vboxsf group ? How to add those ?

Post Reply