Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Discussions related to using VirtualBox on Linux hosts.
Post Reply
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Hello together,
I am struggling with the following problem for more than one week now:

I had a Windows7 Prof. 64 guest running on an Ubuntu 20.04 and 22.04 host using VirtualBox 6.1.x for many years. A scanner and other devices (e.g. USB Stick) have been connected and USB filters have been set for auto connection to the guest.

Now I upgraded VirtualBox to 7.0.12 and the following problem systematically occurs (tested on two different computers):
Once I start the Guest, log in and plug in the usb stick (same with scanner), Win7 tries to install the USB driver (it had been installed
before already and worked like a charm with VBox 6.x) and it fails and the device is listed in the windows device manager as unknown under
the recognized USB 2.0 master. The VBox extension pack 7.0.12 is installed.
Here some detailed information:
Groups (output of id command):

Code: Select all

uid=1000(thomas) gid=1000(thomas) Gruppen=1000(thomas),4(adm),7(lp),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),133(lxd),134(sambashare),136(vboxusers)
vboxmanage version:

Code: Select all

7.0.12r159484
Installed Extension Packs: vboxmanage list extpacks:

Code: Select all

Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:        7.0.12
Revision:       159484
Edition:        
Description:    Oracle Cloud Infrastructure integration, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe, full VM encryption.
VRDE Module:    VBoxVRDP
Crypto Module:  VBoxPuelCrypto
Usable:         true
Why unusable:   
vboxmanage list usbfilters:

Code: Select all

Global USB Device Filters:

<none>
vboxmanage list usbhost: (relevant is the SanDisk Cruzer in this context)

Code: Select all

Host USB Devices:

UUID:               a66bcea7-XXXX
VendorId:           0x5986 (5986)
ProductId:          0x118c (118C)
Revision:           104.24 (10424)
Port:               3
USB version/speed:  2/High
Manufacturer:       Generic
Product:            Integrated Camera
SerialNumber:       200901010001
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4//device:/dev/vboxusb/003/003
Current State:      Busy

UUID:               13bebf13-XXXX
VendorId:           0x17ef (17EF)
ProductId:          0x3103 (3103)
Revision:           0.66 (0066)
Port:               1
USB version/speed:  2/Full
Manufacturer:       Lenovo
Product:            Lenovo USB-C Dock USB Audio
SerialNumber:       000000000000
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2//device:/dev/vboxusb/003/007
Current State:      Busy

UUID:               b1aaa958-XXXX
VendorId:           0x17ef (17EF)
ProductId:          0x30fc (30FC)
Revision:           16.7 (1607)
Port:               2
USB version/speed:  2/Full
Manufacturer:       Lenovo
Product:            40B5
SerialNumber:       1SSDXXXX
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.3//device:/dev/vboxusb/003/008
Current State:      Available

UUID:               07a0cc0c-XXXX
VendorId:           0x1395 (1395)
ProductId:          0x006d (006D)
Revision:           2.1 (0201)
Port:               0
USB version/speed:  2/Full
Manufacturer:       Sennheiser
Product:            Sennheiser SP 30
SerialNumber:       A002340201600800
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.1/3-6.1.3/3-6.1.3.4/3-6.1.3.4.1//device:/dev/vboxusb/003/012
Current State:      Busy

UUID:               52fdb1ea-XXXX
VendorId:           0x0c4b (0C4B)
ProductId:          0x0500 (0500)
Revision:           0.1 (0001)
Port:               0
USB version/speed:  2/Full
Manufacturer:       REINER SCT
Product:            cyberJack RFID standard
SerialNumber:       2628192263
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.1/3-6.1.3/3-6.1.3.1//device:/dev/vboxusb/003/023
Current State:      Available

UUID:               75866311-XXXX
VendorId:           0x0bda (0BDA)
ProductId:          0x8153 (8153)
Revision:           49.35 (4935)
Port:               0
USB version/speed:  3/Super
Manufacturer:       Realtek
Product:            Realtek USB LAN
SerialNumber:       3213000001
Address:            sysfs:/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-3/2-3.1//device:/dev/vboxusb/002/003
Current State:      Busy

UUID:               206f6d04-XXXX
VendorId:           0x0781 (0781)
ProductId:          0x5567 (5567)
Revision:           1.38 (0138)
Port:               1
USB version/speed:  2/High
Manufacturer:       SanDisk
Product:            Cruzer Blade
SerialNumber:       4C53XXXX
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.1/3-6.1.3/3-6.1.3.2//device:/dev/vboxusb/003/024
Current State:      Busy

UUID:               cd1991a9-XXXX
VendorId:           0x06cb (06CB)
ProductId:          0x00f9 (00F9)
Revision:           0.0 (0000)
Port:               2
USB version/speed:  2/Full
Manufacturer:       Synaptics, Inc.
SerialNumber:       a511de134930
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3//device:/dev/vboxusb/003/002
Current State:      Available

UUID:               01b8a7cf-XXXX
VendorId:           0x05e3 (05E3)
ProductId:          0x1205 (1205)
Revision:           1.0 (0100)
Port:               3
USB version/speed:  1/Low
Manufacturer:       Genesys Logic, Inc.
Product:            USB Mouse              
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.1/3-6.1.3/3-6.1.3.4/3-6.1.3.4.4//device:/dev/vboxusb/003/015
Current State:      Busy

UUID:               695a9c53-XXXX
VendorId:           0x046d (046D)
ProductId:          0xc52b (C52B)
Revision:           18.16 (1816)
Port:               2
USB version/speed:  2/Full
Manufacturer:       Logitech
Product:            USB Receiver
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.1/3-6.1.3/3-6.1.3.4/3-6.1.3.4.3//device:/dev/vboxusb/003/014
Current State:      Busy

UUID:               cdca6108-XXXX
VendorId:           0x046d (046D)
ProductId:          0x0826 (0826)
Revision:           0.16 (0016)
Port:               1
USB version/speed:  2/High
Manufacturer:       Logitech, Inc.
Product:            HD Webcam C525
SerialNumber:       8C1E8BE0
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.1/3-6.1.3/3-6.1.3.4/3-6.1.3.4.2//device:/dev/vboxusb/003/013
Current State:      Busy
vboxmanage show vminfo:

Code: Select all

Name:                        Windows7Professional64
Encryption:     disabled
Groups:                      /
Guest OS:                    Windows 7 (64-bit)
UUID:                        89a3c9fa-XXXX
Config file:                 /home/thomas/VirtualBoxVMs/Windows7Professional64/Windows7Professional64.vbox
Snapshot folder:             /home/thomas/VirtualBoxVMs/Windows7Professional64/Snapshots
Log folder:                  /home/thomas/VirtualBoxVMs/Windows7Professional64/Logs
Hardware UUID:               89a3c9fa-7c5d-4035-a2df-f35ebf7802d4
Memory size:                 4096MB
Page Fusion:                 disabled
VRAM size:                   128MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     ich9
Firmware:                    BIOS
Number of CPUs:              4
PAE:                         disabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      disabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               Floppy
Boot Device 2:               DVD
Boot Device 3:               HardDisk
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
BIOS NVRAM File:             /home/thomas/VirtualBoxVMs/Windows7Professional64/Windows7Professional64.nvram
RTC:                         local time
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 disabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
AMD-V Virt. Vmsave/Vmload:   enabled
IOMMU:                       None
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   HyperV
State:                       powered off (since 2024-01-15T22:31:55.000000000)
Graphics Controller:         VBoxSVGA
Monitor count:               2
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:          
Teleporter Password:         
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:       
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:            
VM process priority:         default
Storage Controllers:
#0: 'SATA', Type: IntelAhci, Instance: 0, Ports: 2 (max 30), Bootable
  Port 0, Unit 0: UUID: 97797712-18da-4660-bbe5-90c878157443, non-rotational (SSD)
    Location: "/home/thomas/VirtualBoxVMs/Windows7Professional64/Windows7Professional64.vdi"
  Port 1, Unit 0: UUID: 6f7b40f3-451e-42bb-bb4f-144c6927e201
    Location: "/usr/share/virtualbox/VBoxGuestAdditions.iso"
NIC 1:                       MAC: 080027B08523, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:                       disabled
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
NIC 9:                       disabled
NIC 10:                      disabled
NIC 11:                      disabled
NIC 12:                      disabled
NIC 13:                      disabled
NIC 14:                      disabled
NIC 15:                      disabled
NIC 16:                      disabled
NIC 17:                      disabled
NIC 18:                      disabled
NIC 19:                      disabled
NIC 20:                      disabled
NIC 21:                      disabled
NIC 22:                      disabled
NIC 23:                      disabled
NIC 24:                      disabled
NIC 25:                      disabled
NIC 26:                      disabled
NIC 27:                      disabled
NIC 28:                      disabled
NIC 29:                      disabled
NIC 30:                      disabled
NIC 31:                      disabled
NIC 32:                      disabled
NIC 33:                      disabled
NIC 34:                      disabled
NIC 35:                      disabled
NIC 36:                      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)
Audio playback:              enabled
Audio capture:               enabled
Clipboard Mode:              Bidirectional
Drag and drop Mode:          Bidirectional
VRDE:                        disabled
OHCI USB:                    enabled
EHCI USB:                    enabled
xHCI USB:                    disabled
USB Device Filters:
Index:                       0
  Active:                    yes
  Name:                      SAMSUNG_Android [FFFF]
  VendorId:                  04e8
  ProductId:                 6865
  Revision:                  ffff
  Manufacturer:              SAMSUNG
  Product:                   SAMSUNG_Android
  Remote:                    0
  Serial Number:             5210XXXX
Index:                       1
  Active:                    yes
  Name:                      LG Electronics Inc. LGE Android Phone [0318]
  VendorId:                  1004
  ProductId:                 633a
  Revision:                  0318
  Manufacturer:              LG Electronics Inc.
  Product:                   LGE Android Phone
  Remote:                    
  Serial Number:             LGH9XXXX
Index:                       2
  Active:                    yes
  Name:                      SanDisk Cruzer Blade [0126]
  VendorId:                  0781
  ProductId:                 5567
  Revision:                  
  Manufacturer:              
  Product:                   
  Remote:                    0
  Serial Number:             
Bandwidth groups:            <none>
Shared folders:              

Name: 'DatenThomas', Host path: '/home/thomas/DatenThomas' (machine mapping), writable, auto-mount
Name: 'DatenThomasE', Host path: '/home/thomas/DatenThomasE' (machine mapping), writable, auto-mount
Name: 'SoftwareWindows', Host path: '/home/thomas/Downloads/SoftwareWindows' (machine mapping), readonly, auto-mount

Recording enabled:           no
Recording screens:           2
 Screen 0:
    Enabled:                 yes
    ID:                      0
    Record video:            yes
    Destination:             File
    File:                    /home/thomas/VirtualBoxVMs/Windows7Professional64/Windows7Professional64-screen0.webm
    Options:                 vc_enabled=true,ac_enabled=true,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
 Screen 1:
    Enabled:                 no
    ID:                      1
    Record video:            yes
    Destination:             File
    File:                    /home/thomas/VirtualBoxVMs/Windows7Professional64/Windows7Professional64-screen1.webm
    Options:                 vc_enabled=true,ac_enabled=true,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
* Guest:
Configured memory balloon:   0MB
The VBox.log and VBoxSVC.log are attached in zip files.
The following sniplet out of the Windows7 VM's VBox.log

Code: Select all

00:00:23.166262 EHCI: USB Suspended
00:00:47.953714 VUSB: Attached '00007fc7bc30aae0[proxy 0781:5567]' to port 1 on RootHub#0 (HighSpeed)
00:00:47.954640 EHCI: USB Operational
shows, that the SanDisk Cruzer Blade is recognized. But then something must happen that it is connected such, that
Windows 7 doesn't find the driver for it. (and: with VirtualBox 6.1.x everything worked well).
(--> see screenshot below)
I tried to reinstall drivers under Win7, update Windows 7 to the very last available patches, nothing changed.
Everything tried with different guest addition versions, nothing changed (guest additions shouldn't have an impact
on this anyway - right?).
Now after one week of reading all kind of online forums, I am really running out of ideas and would be grateful, if somebody could give some hints ...
Attachments
Win7 Device Manager showing unrecognized USB stick
Win7 Device Manager showing unrecognized USB stick
ScreenshotDeviceManager.png (59.24 KiB) Viewed 3603 times
Windows7Professional64-2024-01-16-11-29-09_VBox.zip
Win7 Guest VBox.log
(43.64 KiB) Downloaded 252 times
VBoxSVC.zip
(3.09 KiB) Downloaded 230 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by scottgus1 »

The Cruzer device does get attached one time at startup and detached one time at shutdown:
00:00:47.953714 VUSB: Attached '00007fc7bc30aae0[proxy 0781:5567]' to port 1 on RootHub#0 (HighSpeed)
00:02:07.129999 VUSB: Detached '00007fc7bc30aae0[proxy 0781:5567]' from port 1 on RootHub#0
Curious that you have chosen the ICH9 chipset instead of the default PIIX3:
00:00:01.077100 [/Devices/ich9pci/] (level 2)
Can you please comment on why?
THol wrote: 16. Jan 2024, 13:25 (guest additions shouldn't have an impact
on this anyway - right?)
Guest Additions don't influence USB passthrough.
THol wrote: 16. Jan 2024, 13:25 using VirtualBox 6.1.x for many years ... Now I upgraded VirtualBox to 7.0.12 and the following problem systematically occurs
Everything in the USB configuration looks set up correctly, and nothing odd seems to appear in the log.

If you downgrade to 6.1 again, does the problem go away?

You could also try USB 3 in the VM, see USB basics and troubleshooting and add the correct drivers for Windows 7, see post #6.
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Same test with Windows 10 as VM-Guest:
usb stick is recognized and can be accessed from within Win10

Same test with XUbuntu 22.04 as VM-Guest:
usb stick is NOT recognized when plugged in.
sudo dmesg (on client) delivers:

Code: Select all

[ 2383.290983] usb 2-1: new high-speed USB device number 6 using ehci-pci
[ 2383.706488] usb 2-1: device descriptor read/64, error -32
[ 2384.234483] usb 2-1: device descriptor read/64, error -32
[ 2384.746471] usb 2-1: new high-speed USB device number 7 using ehci-pci
[ 2385.162598] usb 2-1: device descriptor read/64, error -32
[ 2385.690729] usb 2-1: device descriptor read/64, error -32
[ 2385.798972] usb usb2-port1: attempt power cycle
Last edited by THol on 16. Jan 2024, 23:49, edited 1 time in total.
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Curious that you have chosen the ICH9 chipset instead of the default PIIX3:
00:00:01.077100 [/Devices/ich9pci/] (level 2)
Can you please comment on why?
Yes, originally I had PIIX3 and since I couldn't resolve the problem, I switched to ICH9 (since in one forum somebody recommended this -
I know that ICH9 is experimental). Now, after reading your reply, I switched back to PIIX3 and tested it again, but still the same issue.
If you downgrade to 6.1 again, does the problem go away?
Yes, I did this with our scanner PC a couple of weeks ago. Same issue with VirtualBox 7. After downgrade to VirtualBox V 6.1.x everything worked well again. I left it for a couple of weeks, but then after application of a kernel update, something with VirtualBox V6.1.x got messed up. I had to recompile the kernel drivers and got trouble that the compiler versions didn't match (they were exactly the same compilers, but had slightly different names). Therefore I decided that one day I have to go to VirtualBox V 7.x anyway and then the struggle took its way.
You could also try USB 3 in the VM, see USB basics and troubleshooting and add the correct drivers for Windows 7, see post #6.
Thank you for sending the link: it is an excellent forum page and I had already studied it a couple of times forward and backward (I also followed this page for generating the required logs for this post). USB 3 setting I tried, but it didn't work. Then I upgraded Win7 to the very last patch and tried to install the Intel extensible USB 3.0 host controller driver, but this driver installer didn't start, claiming that the Win7 doesn't fulfill some installation requirement (very unspecific message). I checked the related readme and didn't get an idea what should be missing.
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Today I downgraded our second computer (scanner computer) back to VirtualBox 6.1.48 and everything (scanner and USB stick) worked like a charm again.
Since I like VirtualBox very much and recommend the usage of this Virtualization engine to my personal environment, I would be very happy if someone could find out, what is the problem in with 7.0.12 and if it could be fixed. At one point the day will come, when VirtualBox 6.1.xx won't be compliant to a newer Linux kernel version ... .

The are other people which had the same problem as well, e.g.

https://forums.linuxmint.com/viewtopic.php?t=396151


I would be very grateful, if the VirtualBox programmer's team will find a solution to this.

My second computer I will keep on VirtualBox 7.0.12 for the first, and I am ready to support the process with testing.

Thanks in advance!!!
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by scottgus1 »

Since returning to 6.1 works again, a post on the Bugtracker with vbox.logs of a working run with 6.1 and a failing run with 7.0 will help the devs figure out what's wrong. Also include a link to this topic.
fth0
Volunteer
Posts: 5678
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by fth0 »

THol wrote: 20. Jan 2024, 19:42 At one point the day will come, when VirtualBox 6.1.xx won't be compliant to a newer Linux kernel version ...
FWIW, since Oracle's support for VirtualBox 6.1 ended in December 2023, and VirtualBox 6.1.50 (released at 2024-01-16) was the last expected VirtualBox 6.1.x release update, that day could very well be near ...
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Thank you for your replies,

I followed scottgus1's proposal and opened a ticket on the Bugtracker:

https://www.virtualbox.org/ticket/21970
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Upgraded to VirtualBox 7.0.14r161095 - same problem still exists
just4lynne
Posts: 11
Joined: 13. Mar 2023, 16:14

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by just4lynne »

It is a Problem with Ubuntu . . they changed the USB programming so very little works . . There is a thing called Britty

This is the fix of Britty
Listing 2: Disabling brltty service
$ sudo systemctl stop brltty-udev.service
$ sudo systemctl mask brltty-udev.service

There is more to this . . I don't use 22.04 any more ! !
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Thank you for your hint regarding the brltty service: I tested it out and disabled it. Unfortunately this didn't solve this problem (not before
and not after reboot of the system)

Since the problem occurs with Win7 as client, but not with Win10 as client I didn't expect an impact, but it was worth a try.
Since everything works with VirtualBox 6.x in the same Host/Client configuration, it should be a problem of VirtualBox 7.x.
just4lynne wrote: 5. Feb 2024, 02:29 It is a Problem with Ubuntu . . they changed the USB programming so very little works . . There is a thing called Britty

This is the fix of Britty
Listing 2: Disabling brltty service
$ sudo systemctl stop brltty-udev.service
$ sudo systemctl mask brltty-udev.service

There is more to this . . I don't use 22.04 any more ! !
THol
Posts: 8
Joined: 16. Jan 2024, 12:41

Re: Ubuntu 22.04 host + Win7 guest: USB driver activation problem in Win7

Post by THol »

Current status of the ticket:
https://www.virtualbox.org//ticket/21970#comment:4
The problem will be fixed by the developer team - until then: limit the RAM of the guest VM to 2GB and the problem will disappear!
Post Reply