Page 1 of 1
SOLVED -- NO USB devices available
Posted: 26. Jul 2017, 21:13
by leon244
After a new install of VBox, I have no usb devices available;
I have added my username to the vboxusers group.
/etc/vbox/vbox.cfg is
Code: Select all
# VirtualBox installation directory
INSTALL_DIR='/opt/VirtualBox'
# VirtualBox version
INSTALL_VER='5.1.24'
INSTALL_REV='117012'
# Build type and user name for logging purposes
BUILD_TYPE='release'
USERNAME='vbox'
/etc/udev/rules.d/60-vboxdrv.rules is
Code: Select all
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
KERNEL=="vboxdrvu", NAME="vboxdrvu", OWNER="root", GROUP="root", MODE="0666"
KERNEL=="vboxnetctl", NAME="vboxnetctl", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh --remove $major $minor"
Per a post online I tried changing the "$attr{bDeviceClass}" entries in lines #4 and #5 above with "vboxusers", but that did nothing so I went back to the original file
ls -la /dev/vboxusb is
Code: Select all
total 0
drwxr-x--- 2 root vboxusers 40 Jul 26 13:44 ./
drwxr-xr-x 21 root root 4400 Jul 26 13:44 ../
the last
log output after trying to add usb devices and getting the error is as follows, but does not seem to contain any useful info about USB devices
Code: Select all
00:00:15.953669 main ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={4afe423b-43e0-e9d0-82e8-ceb307940dda} aComponent={MediumWrap} aText={Medium '/Data2/VitualBox_VMs/Windows_7_64.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=false aResultDetail=0
00:00:15.953815 main ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={4afe423b-43e0-e9d0-82e8-ceb307940dda} aComponent={MediumWrap} aText={Medium '/Data/Virtual_Machines/ubuntu.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=false aResultDetail=0
00:00:15.999525 Watcher ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={0169423f-46b4-cde9-91af-1e9d5b6cd945} aComponent={VirtualBoxWrap} aText={The object is not ready}, preserve=false aResultDetail=0
00:00:20.954233 main {00007fdeec015ae0} HostPowerServiceLinux::~HostPowerServiceLinux: RTThreadWait() for 5000 ms failed with VERR_TIMEOUT
00:00:20.954590 main VirtualBox: object deleted
prior to installing this version I was able to get the usb devices.
Thank you in advance for any help you can offer.
Re: NO USB devices available
Posted: 26. Jul 2017, 21:31
by socratis
leon244 wrote:I have added my username to the vboxusers group.
Did you logout/reboot after that? What does "id" show?
Did you install the ExtPack?
Where did you get your VirtualBox from?
What's your host?
Take a look at
USB basics and troubleshooting, all of the posts. If you still have a problem after reading through the whole thing, please follow the advice of the last post.
Re: NO USB devices available
Posted: 26. Jul 2017, 21:58
by leon244
Thank you.
Yes I am in the vboxusers group.
Yes I rebooted actually, multiple times.
Yes, I have the extension pack that matches the VirtualBox version
Host: Linux Mageia 6: Kernel: 4.9.35-desktop-1.mga6
VBoxManage -version: 5.1.24r117012
id:
Code: Select all
uid=1001(leon) gid=1001(leon) groups=1001(leon),4(adm),7(lp),10(wheel),43(usb),100(users),969(wireshark),970(vboxusers),971(saned),978(ctools),979(ntools),980(xgrp),981(scanner),983(rpm)
VBoxManage list extpacks:
Code: Select all
Oracle VM VirtualBox Extension Pack
Version: 5.1.24
Revision: 117012
Edition:
Description: USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
VBoxManage list usbhost:
VBoxManage list usbfilters
VBoxManage showvminfo "<Your_Virtual_Machine_Name>":
Code: Select all
Name: Windows_7_64
Groups: /
Guest OS: Windows 7 (64-bit)
UUID: 10a6b70b-97b4-4622-a7fb-c9da4a27bc7c
Config file: /home/leon/VirtualBox VMs/Windows_7_64/Windows_7_64.vbox
Snapshot folder: /home/leon/VirtualBox VMs/Windows_7_64/Snapshots
Log folder: /home/leon/VirtualBox VMs/Windows_7_64/Logs
Hardware UUID: 10a6b70b-97b4-4622-a7fb-c9da4a27bc7c
Memory size: 3072MB
Page Fusion: off
VRAM size: 140MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 3
PAE: off
Long Mode: on
Triple Fault Reset: off
APIC: on
X2APIC: off
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): HardDisk
Boot Device (2): DVD
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
BIOS APIC mode: APIC
Time offset: 0ms
RTC: local time
Hardw. virt.ext: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: HyperV
State: powered off (since 2017-07-26T17:15:48.000000000)
Monitor count: 1
3D Acceleration: on
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): SATA
Storage Controller Type (0): IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 30
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): IDE
Storage Controller Type (1): PIIX4
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 2
Storage Controller Port Count (1): 2
Storage Controller Bootable (1): on
SATA (0, 0): /Data2/VitualBox_VMs/Windows_7_64.vdi (UUID: 87739c6e-f3d5-4db4-8bcb-efe2c7dba8d4)
IDE (0, 0): /opt/VirtualBox/additions/VBoxGuestAdditions.iso (UUID: 1acf7cf1-8bf3-4d03-a959-52c596511346)
NIC 1: MAC: 080027A7F245, Attachment: Bridged Interface 'enp7s0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: PulseAudio, Controller: HDA, Codec: STAC9221)
Clipboard Mode: Bidirectional
Drag and drop Mode: Bidirectional
VRDE: disabled
USB: enabled
EHCI: enabled
XHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders: <none>
Video capturing: not active
Capture screens: 0
Capture file: /home/leon/VirtualBox VMs/Windows_7_64/Windows_7_64.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Guest:
Configured memory balloon size: 0 MB
lsusb:
Code: Select all
Bus 004 Device 005: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 004 Device 003: ID 1058:1110 Western Digital Technologies, Inc. My Book Essential (WDBAAF), My Book for Mac (WDBAAG)
Bus 004 Device 002: ID 1058:1100 Western Digital Technologies, Inc. My Book Essential Edition 2.0 (WDH1U)
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 002: ID 046d:0a38 Logitech, Inc. Headset H340
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04f9:0263 Brother Industries, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0bc2:50a1 Seagate RSS LLC FreeAgent GoFlex Desk
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
And lastly ls -la /dev |grep vboxusb
Code: Select all
drwxr-x--- 2 root vboxusers 40 Jul 26 15:05 vboxusb/
All devices plugged in and VM not running when commands above were run. I also tried adding the Brother printer manually, but that failed, too.
Thank you.
Re: NO USB devices available
Posted: 26. Jul 2017, 22:43
by Perryg
"VBoxManage list usbhost" should have seen something but it failed. This usually means the issue is in the host side VirtualBox driver for what ever reason. I see you uid/gid == 1001 so you are not the one that installed the host, correct? Was VirtualBox installed by you or whom ever has uid/gid ==1000? Also it is unusual for VirtualBox to be installed in /opt ( does not follow lsb defaults ) by default unless it is a fork or self compiled. Can you explain this?
Re: NO USB devices available
Posted: 26. Jul 2017, 23:18
by leon244
I did install it but after I had installed the new OS Mageia 6. I added previously saved .vdi which I had detached from the old VirtualBox before removing the old OS. With the new OS, my uid changed. The installation to opt was under the install from VirtualBox using the generic amd64 download (*.run). I ahd used this on other installations and it has worked fine and it has always been installed to /opt. I have used this so I can install the latest, but maybe I should uninstall and begin again or maybe check the permissions of the .vdi's? Note: I installed VirtualBox to /opt as root.
Re: NO USB devices available
Posted: 27. Jul 2017, 00:00
by Perryg
I am not all that familiar with mangia but a new install should not have decided to up the default uid/gid number unless the new installer from the publisher requires it. Your explanation of using the .run makes sense as well now that I know what the host really is. Since this is not really a supported guest you may need to ask the mangia folks about this. Someone that uses mangia may come by and help here but there are not that many I am afraid.
Re: NO USB devices available
Posted: 27. Jul 2017, 00:20
by leon244
So I am a little confused. the *.run installation I have used multiple time previously. I also do not understand that it is not supported as Oracle offers it. I am also not sure of why this should happen. the *.vdi belongs to uid /gid 1001 and was attached to the VirtualBox after it was given its owner. VirtualBox is owned by root:root and has worked before. /dev/vboxusb is in group 'vboxuser' and so am I. I installed the host. The client was created under a different uid, but was attached to the host under my current uid. I assigned the uid when I installed the updated OS, but I don't understand why that would make a difference as the entire install is as root. Obviously, I am missing something right in front of my face, but can't see it, so help me please! What is it the usb host looks for? What permissions does it look for?
Re: SOLVED -- NO USB devices available
Posted: 27. Jul 2017, 00:53
by leon244
Thank you all for your time and thoughtfulness. After all this agony, it was resolved by removing and the reinstalling VirtualBox to /opt. Runs fine now. Go figure. I don't know what the problem was and apologize for not trying this earlier and saving us all grief.
best to all
Re: SOLVED -- NO USB devices available
Posted: 27. Jul 2017, 01:08
by Perryg
I am not saying that the .run package is not supported. Just the mangia OS is not directly supported. Since mangia is a Linux OS it is possible that VirtualBox will work but may have certain quirks that are not familiar to us here. Usually these are handled by the OS publisher. But you have it working now so things are looking up.
http://www.oracle.com/technetwork/serve ... index.html
Re: SOLVED -- NO USB devices available
Posted: 27. Jul 2017, 01:51
by leon244
Thank you. I understand. FWIW, it works with the .run file. Has done so for the past couple of years as long as I have been using VBox. This was the first problem. Thanks again. Appreciate the help.