Page 1 of 2

USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 07:59
by zimbodel
I installed virtualbox on kxstudio.

1) I installed the newest version of virtualbox from the virtualbox website.
2) I successfully installed the extension package for USB and I can select USB 2.0 with no problem in the settings.
3) I made sure the kernel driver was successfully installed running the prescribed script in /sbin.
4) A windows 7 instaltion was done.

Question:
I cannot get any USB devices to show up when I click on the green icon in the USB settings as it should then show all avialable USB device my linux system already recognized.
I followed all advice from previous posts here and from google searches.

The problem is usually just that the account username is not added to the vboxusers group.
The problem is that after installing Virtualbox, I searched my goups and there was not even such a group "vboxusers" created by the installation of virtualbox.

Did the group change ? or is there a known problem not creating the group during install ?
If the group was not created, there is no way virtualbox can belong to it too as it should, but I would have no clue what the username for virtualbox would be.

Any help getting host detected USB devices to show in the USB section will be appreciated. Thanks.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 09:11
by socratis
zimbodel wrote:1) I installed the newest version of virtualbox from the virtualbox website.
Which one? Did you see any errors during the installation?
zimbodel wrote:3) I made sure the kernel driver was successfully installed running the prescribed script in /sbin.
Why did you have to do that. You shouldn't have to.
zimbodel wrote:I searched my goups and there was not even such a group "vboxusers" created by the installation of virtualbox.
Then something went wrong during the installation perhaps? How about reinstalling VirtualBox? And watching the installation output?

Re: USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 19:56
by zimbodel
I am not allowed to post links so I had to lobotomize the links to post anything.

Here it is.

Ubuntu 14.04 14.10 15.04 amd64 from virtualbox dot org
virtualbox-5.2_5.2.22-126460~Ubuntu~trusty_amd64.deb
and
VirtualBox 5.2.22 Oracle VM VirtualBox Extension Pack
All supported platforms
Oracle_VM_VirtualBox_Extension_Pack-5.2.22.vbox-extpack

There were no errors after either of the installs. The extension pack installed properly too without warnings.

Since it did not show any USB devices when I clicked on the little green icon on the rhs of the USB config I read online that sometimes running the script in the sbin directory helps. I did that and it created the kernel driver without incident.

I reinstalled twice. Same problem persists.
The core of the problem is seemingly that the group as mentioned in my original post is not created during installation.

Here is proof that the USB devices are recognized by the Linux hots.
$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0557:2221 ATEN International Co., Ltd Winbond Hermon
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0719 Genesys Logic, Inc. SATA adapter
Bus 001 Device 016: ID 1d57:0001 Xenta
Bus 001 Device 015: ID 194f:0103 PreSonus Audio Electronics, Inc. AudioBox 1818 VSL
Bus 001 Device 014: ID 18a5:0302 Verbatim, Ltd Flash Drive
Bus 001 Device 013: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 001 Device 012: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 003: ID 05ac:0304 Apple, Inc. Mighty Mouse [Mitsumi, M1152]
Bus 008 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Re: USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 21:02
by socratis
zimbodel wrote:The core of the problem is seemingly that the group as mentioned in my original post is not created during installation.
That's interesting, can't remember a similar incident. How about if you create it manually? Give that a shot...

Re: USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 21:10
by zimbodel
I did at the end create it manually, but it didnt work which is understandable. virtualbox istself must be a member of this group, but I cannot guess the username that virtualbox will use to be a member of this goup I cannot enter it. Just entering your usename does nothing as virtualbox itself is not allowed in it's own presumed group.

If you list the members in the group on your system, what comes up as the virtualbox user in the group mentioned?
If I know that I can create the virtualbox user and add it to the group and see if that helps. I doubt it will help but I can try.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 21:49
by Martin
Something must be wrong with your system or installation. Only my user is member of the vboxusers group.
Virtualbox only needs the correct group name and your user in that group to allow access to USB.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 29. Nov 2018, 22:40
by Dave B
Hi zimbodel,

Unless specifically need 14.04, since support ends in 2019, maybe a great time for a fresh 18.04 (Bionic) install?

Before installing 18.04, if your virtual machine/s are on a separate partition *** you could test everything works with your USB devices by running your preferred 18.04 Ubuntu flavour from USB as a live session.
Just remember to logout and back in after VirtualBox install, rather than restart. Then add the user to vboxusers group.


*** don't forget to first move your virtual machine/s to a separate partition before doing a fresh installation.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 30. Nov 2018, 00:15
by zimbodel
It is a brand new installation. No chance anything has been changed from the default installation.
I have to use it on that distribution, as that is what KXStudio uses as the latest and the kernel version is clearly listed as supported on the Virtualbox download page.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 30. Nov 2018, 05:21
by zimbodel
Let me know what the best distribution is I can try virtualbox on that gives me the best chance to get USB going.
I will install that distro on another partition to test out.
Using that I might figure out whats going on with the KXstudio distro.
Does the low latency kernel KXStudio uses maybe mess with the usb kernel module virtualbox extension tries to install ?

Re: USB issue Virtualbox onLinux -again I know.

Posted: 30. Nov 2018, 05:31
by socratis
zimbodel wrote:Let me know what the best distribution is I can try virtualbox on that gives me the best chance to get USB going.
One of the ones that you can find in the Linux distributions. Ubuntu/Mint, Fedora/CentOS, Debian, openSUSE, Oracle/RHEL, i.e. the major ones. Never had problems.
zimbodel wrote:Does the low latency kernel KXStudio uses maybe mess with the usb kernel module virtualbox extension tries to install ?
Your problem was not with the kernel modules, your problem was with the installer itself and its inability to create the 'vboxusers' group. For unknown reasons.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 30. Nov 2018, 09:23
by zimbodel
Thanks Socrates, I will try the newest distro. I prefer Debian, but I guess Ubuntu would maybe have some extras geared to multimedia.

I really have no clue why it wouldnt install on KXStudio. It was a clean install of KXStudio, but as you mentioned it is 4 generations old, although the kernel version is supported by Virtualbox.

I will try on a latest distro and report back.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 30. Nov 2018, 10:34
by socratis
If I have some time, I'll try to recreate your setup. Which version of KXStudio exactly did you use?

Re: USB issue Virtualbox onLinux -again I know.

Posted: 1. Dec 2018, 04:10
by zimbodel
I destroyed that KXStudio unfortunately. We agreed it was 4 generations old, so I moved on to something recent.
I installed a fresh version of AVLinux latest, which is Debian 9/Stretch.

During installation of virtualbox 64
https://download.virtualbox.org/virtual ... _amd64.deb
for stretch debian 9 (which is what avlinux is based o0n) I get the following error during installation, but it completed installation but yet again when I start virtualbox, there is no usb devices recognised
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
Here is the tail of dmesg, it is printed for every of my 24 cores, I attach for two.

Code: Select all

[20479.027642] BUG: scheduling while atomic: swapper/9/0/0x00000000
[20479.027689] Modules linked in: vboxdrv(O+) uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media btrfs zstd_compress zstd_decompress xxhash xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c dm_mod snd_hrtimer snd_seq_midi snd_seq_dummy snd_seq_midi_event snd_seq snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device nls_cp437 vfat fat fuse uinput cpufreq_userspace cpufreq_conservative cpufreq_powersave amd64_edac_mod edac_mce_amd kvm_amd ccp rng_core kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd sg mgag200 glue_helper ttm cryptd drm_kms_helper drm evdev button k10temp fam15h_power shpchp sp5100_tco snd_pcm snd_timer snd joydev soundcore serio_raw pcspkr acpi_cpufreq ipmi_si
[20479.027732]  ipmi_devintf ipmi_msghandler binfmt_misc parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sr_mod cdrom uas usb_storage hid_apple hid_generic usbhid hid sd_mod nls_ascii ohci_pci ata_generic ahci xhci_pci pata_atiixp libahci ohci_hcd ehci_pci xhci_hcd ehci_hcd libata igb crc32c_intel i2c_algo_bit psmouse dca i2c_piix4 usbcore scsi_mod
[20479.027768] Preemption disabled at:
[20479.027771] [<0000000000000000>]           (null)
[20479.027778] CPU: 9 PID: 0 Comm: swapper/9 Tainted: G      D W  O     4.16.12-rt5-avl1 #12
[20479.027779] Hardware name: Supermicro H8DGU/H8DGU, BIOS 3.5c       03/18/2016
[20479.027780] Call Trace:
[20479.027785]  dump_stack+0x5c/0x85
[20479.027788]  __schedule_bug+0x6e/0xc0
[20479.027791]  __schedule+0x518/0x640
[20479.027794]  ? check_preemption_disabled+0x70/0xf0
[20479.027796]  schedule_idle+0x23/0x40
[20479.027798]  do_idle+0x19e/0x260
[20479.027800]  cpu_startup_entry+0x41/0x50
[20479.027802]  start_secondary+0x178/0x1d0
[20479.027805]  secondary_startup_64+0xa5/0xb0
[20482.906498] BUG: scheduling while atomic: swapper/22/0/0x00000000
[20482.908388] Modules linked in: vboxdrv(O+) uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media btrfs zstd_compress zstd_decompress xxhash xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c dm_mod snd_hrtimer snd_seq_midi snd_seq_dummy snd_seq_midi_event snd_seq snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device nls_cp437 vfat fat fuse uinput cpufreq_userspace cpufreq_conservative cpufreq_powersave amd64_edac_mod edac_mce_amd kvm_amd ccp rng_core kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd sg mgag200 glue_helper ttm cryptd drm_kms_helper drm evdev button k10temp fam15h_power shpchp sp5100_tco snd_pcm snd_timer snd joydev soundcore serio_raw pcspkr acpi_cpufreq ipmi_si
[20482.908432]  ipmi_devintf ipmi_msghandler binfmt_misc parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sr_mod cdrom uas usb_storage hid_apple hid_generic usbhid hid sd_mod nls_ascii ohci_pci ata_generic ahci xhci_pci pata_atiixp libahci ohci_hcd ehci_pci xhci_hcd ehci_hcd libata igb crc32c_intel i2c_algo_bit psmouse dca i2c_piix4 usbcore scsi_mod
[20482.908461] Preemption disabled at:
[20482.908464] [<0000000000000000>]           (null)
[20482.908471] CPU: 22 PID: 0 Comm: swapper/22 Tainted: G      D W  O     4.16.12-rt5-avl1 #12
[20482.908471] Hardware name: Supermicro H8DGU/H8DGU, BIOS 3.5c       03/18/2016
[20482.908473] Call Trace:
[20482.908483]  dump_stack+0x5c/0x85
[20482.908487]  __schedule_bug+0x6e/0xc0
[20482.908490]  __schedule+0x518/0x640
[20482.908494]  ? check_preemption_disabled+0x70/0xf0
[20482.908496]  schedule_idle+0x23/0x40
[20482.908499]  do_idle+0x19e/0x260
[20482.908502]  cpu_startup_entry+0x41/0x50
[20482.908504]  start_secondary+0x178/0x1d0
[20482.908507]  secondary_startup_64+0xa5/0xb0
[20500.227555] BUG: scheduling while atomic: swapper/23/0/0x00000000
[20500.228167] Modules linked in: vboxdrv(O+) uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media btrfs zstd_compress zstd_decompress xxhash xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c dm_mod snd_hrtimer snd_seq_midi snd_seq_dummy snd_seq_midi_event snd_seq snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device nls_cp437 vfat fat fuse uinput cpufreq_userspace cpufreq_conservative cpufreq_powersave amd64_edac_mod edac_mce_amd kvm_amd ccp rng_core kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd sg mgag200 glue_helper ttm cryptd drm_kms_helper drm evdev button k10temp fam15h_power shpchp sp5100_tco snd_pcm snd_timer snd joydev soundcore serio_raw pcspkr acpi_cpufreq ipmi_si
[20500.228210]  ipmi_devintf ipmi_msghandler binfmt_misc parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sr_mod cdrom uas usb_storage hid_apple hid_generic usbhid hid sd_mod nls_ascii ohci_pci ata_generic ahci xhci_pci pata_atiixp libahci ohci_hcd ehci_pci xhci_hcd ehci_hcd libata igb crc32c_intel i2c_algo_bit psmouse dca i2c_piix4 usbcore scsi_mod
[20500.228238] Preemption disabled at:
[20500.228241] [<0000000000000000>]           (null)
[20500.228247] CPU: 23 PID: 0 Comm: swapper/23 Tainted: G      D W  O     4.16.12-rt5-avl1 #12
[20500.228248] Hardware name: Supermicro H8DGU/H8DGU, BIOS 3.5c       03/18/2016
[20500.228249] Call Trace:
[20500.228260]  dump_stack+0x5c/0x85
[20500.228264]  __schedule_bug+0x6e/0xc0
[20500.228267]  __schedule+0x518/0x640
[20500.228271]  ? check_preemption_disabled+0x70/0xf0
[20500.228274]  schedule_idle+0x23/0x40
[20500.228276]  do_idle+0x19e/0x260
[20500.228279]  cpu_startup_entry+0x41/0x50
[20500.228282]  start_secondary+0x178/0x1d0
[20500.228285]  secondary_startup_64+0xa5/0xb0
[20506.857378] retire_capture_urb: 383 callbacks suppressed
[20513.749468] BUG: scheduling while atomic: swapper/10/0/0x00000000
[20513.749499] Modules linked in: vboxdrv(O+) uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media btrfs zstd_compress zstd_decompress xxhash xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c dm_mod snd_hrtimer snd_seq_midi snd_seq_dummy snd_seq_midi_event snd_seq snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device nls_cp437 vfat fat fuse uinput cpufreq_userspace cpufreq_conservative cpufreq_powersave amd64_edac_mod edac_mce_amd kvm_amd ccp rng_core kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd sg mgag200 glue_helper ttm cryptd drm_kms_helper drm evdev button k10temp fam15h_power shpchp sp5100_tco snd_pcm snd_timer snd joydev soundcore serio_raw pcspkr acpi_cpufreq ipmi_si
[20513.749600]  ipmi_devintf ipmi_msghandler binfmt_misc parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sr_mod cdrom uas usb_storage hid_apple hid_generic usbhid hid sd_mod nls_ascii ohci_pci ata_generic ahci xhci_pci pata_atiixp libahci ohci_hcd ehci_pci xhci_hcd ehci_hcd libata igb crc32c_intel i2c_algo_bit psmouse dca i2c_piix4 usbcore scsi_mod
[20513.749723] Preemption disabled at:
[20513.749726] [<0000000000000000>]           (null)
[20513.749734] CPU: 10 PID: 0 Comm: swapper/10 Tainted: G      D W  O     4.16.12-rt5-avl1 #12
[20513.749735] Hardware name: Supermicro H8DGU/H8DGU, BIOS 3.5c       03/18/2016
[20513.749736] Call Trace:
[20513.749752]  dump_stack+0x5c/0x85
[20513.749757]  __schedule_bug+0x6e/0xc0
[20513.749762]  __schedule+0x518/0x640
[20513.749766]  ? check_preemption_disabled+0x70/0xf0
[20513.749770]  schedule_idle+0x23/0x40
[20513.749774]  do_idle+0x19e/0x260
[20513.749778]  cpu_startup_entry+0x41/0x50
[20513.749782]  start_secondary+0x178/0x1d0
[20513.749785]  secondary_startup_64+0xa5/0xb0
[20515.443022] retire_capture_urb: 2719 callbacks suppressed
[20523.752523] retire_capture_urb: 2244 callbacks suppressed
[20530.139099] retire_capture_urb: 3480 callbacks suppressed
Also when I start virtualbox the interface comes up normally. When I create a virtual machine and start it it says:
VERR_VM_DRIVER_OPEN_ERROR (rc=-1911)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_OPEN_ERROR (-1911) - Was not able to open the support driver. Generic open error used when none of the other ones fit.
So executing the script obviously as root user, I get:
/sbin/vboxconfig
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: failed: Cannot unload module vboxdrv.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 1. Dec 2018, 23:55
by zimbodel
The only thing I can see that I did wrong from my side, is that
a) Wrong architecture download, but I checked that I did that right
2) That the latest AVLinux is not based on Stretch, but I double checked both gcc and the kernel version and it complies with Stretch.
3) Broken installation, but that is not possible as this was a clean basically unused AVLinux install straight from the creator's site.


I cannot think of anything else I did wrong.

Re: USB issue Virtualbox onLinux -again I know.

Posted: 4. Dec 2018, 05:05
by zimbodel
Installed a fresh copy of Debian 9: on a competely different machine as in my previous post
cat /proc/version
Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
# cat /etc/os*release*
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
I used apt to install the available virtualbox

Yest again I get the kernel issues when starting virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.9.0-6-amd64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
I did /sbin/vboxconfig it compiled but did not seem to be able to do the insmod .

Does virtualbox work at all on Linux ?
Doesnt look like it.
Wherever on whatever hardware with whichever distro, Virtualbox fails to install.
I tried three distributions on 3 machines now. Virtualbox fail on all of them.
At this point I cant see that I do something obvious wrong and done the dilligence on my side.