[Fixed] USB scanner stopped working in Virtualbox 6.0.6. (#18593)

This is for discussing general topics about how to use VirtualBox.
mipri
Posts: 23
Joined: 20. Sep 2016, 16:05

[Fixed] USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by mipri »


ModEdit; related ticket: #18593: USB Printer not work (ver. 5.2.28 or 6.0.6)
Hello,

I am using a (pretty old) USB scanner HP ScanJet 5470C. There is no driver for my host's OS (Win 7), so I've installed it in a VM running Windows XP. I created a permament filter in the USB-settings of the VM, so the USB device is grabbed immediately when the VM starts. This setup worked for many years now, but with VirtulBox 6.0.6 it doesn't:

After starting the scanner application (HP Precisionscan Pro 3.1) the scanner is recognized and can be accessed. After starting a previev scan, the scanner carriage moves to the starting position, but then nothing more happens. The application says "warming up" forever and the actual scan does not start.

After killing and restarting the scanner application, it tells that there is no scanner installed. After switching the scanner off and on again and restarting the application, it recognizes the scanner, but the problem remains as described above.

Attached is a log recorded while trying to perform a scan.
Attachments
VBox.zip
(29.3 KiB) Downloaded 254 times
Last edited by socratis on 16. Jul 2019, 19:41, edited 2 times in total.
Reason: Marked as [Fixed].
glendale
Posts: 2
Joined: 4. May 2019, 13:29

Re: USB scanner stopped working in Virtualbox 6.0.6.

Post by glendale »

Hi,

+1

I have a similar issue since the new version of VirtualBox. I use a WindowsXP box (with guest extensions installed) to run an old software for an old synthesizer. It worked fine with previous versions but with the new version it connects to the synth but data transfer gets interrupted. I'm curious whether it's the same issue as described here :)

Best regards,
glen
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: USB scanner stopped working in Virtualbox 6.0.6.

Post by andyp73 »

mipri wrote:I am using a (pretty old) USB scanner HP ScanJet 5470C
Judging by the fact that this has two connection options - parallel port and USB I am assuming that it only supports USB 1.1. That would probably make the following entries in the VBox.log file pertinent:
VBox.log wrote:
00:02:01.157898 OHCI#0: Raising unrecoverable error
00:02:01.158123 OHCI: Software reset
00:02:01.161208 OHCI: USB Operational
00:02:01.161977 OHCI#0: Raising unrecoverable error
00:02:01.162141 OHCI: Software reset
00:02:01.162190 OHCI: USB Operational
mipri wrote:This setup worked for many years now, but with VirtulBox 6.0.6 it doesn't
We (the devs possibly) are going to need to some help to determine which version(s) of VirtualBox do and don't work. Do you remember which version you were using previously? Can you try downgrading to 5.2.28 to see if the 5.2.x version still works and also try 6.0.0 to determine if it has always been an issue with the 6.0.x versions.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
mipri
Posts: 23
Joined: 20. Sep 2016, 16:05

Re: USB scanner stopped working in Virtualbox 6.0.6.

Post by mipri »

The scanner is an USB 1.1 device. It is connected to an USB 2.0 hub which is connected to the host. I also tried to connect the scanner directly to the host, this makes no difference.

I am using VirtualBox since version 4.3.12 on this host with this scanner and installed nearly every version since then. The scanner was usable with all of them as far as they did not have generic problems with providing USB ports to a guest.

After also testing version 5.2.28 and 6.0.0 the results summarize as follows:

5.2.24: scanner is working
5.2.28: scanner is not working

6.0.0: scanner is working
6.0.4: scanner is working
6.0.6: scanner ls not working

I've attached a ZIP file containing the logs from both versions 5.2.28 and 6.0.0.
Attachments
vbox_logs.zip
(54.55 KiB) Downloaded 238 times
glendale
Posts: 2
Joined: 4. May 2019, 13:29

Re: USB scanner stopped working in Virtualbox 6.0.6.

Post by glendale »

Hi,

thanks for your reply and investigation. It also works in my case with version 6.0.4 *yeay*

Maybe it helps: I tried USB 1.1, USB 2.0 and USB 3.0 in 6.0.6 - I got the error message with 1.1 and 2.0, with 3.0 WinXP prompted me to install a new USB device (which I declined).

I guess, this is the ticket it is related to: https://www.virtualbox.org/ticket/18593

Cheers from Berlin,
glen
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

USB scanner unable to work on VM

Post by satimis »

Hi all,

Host - Ubuntu 16.04
VM - Ubuntu 18.04
Epson scanner 3490
XSane

The scanner is working on Host XSane but unable to work on VM.

On VM:
$ lsusb

Code: Select all

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ scanimage -L

Code: Select all

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
$ sane-find-scanner

Code: Select all

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.
  # Not checking for parallel port scanners.
  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)

$ ls -al /usr/share/sane/snapscan/

Code: Select all

total 72
drwxr-xr-x 2 root    root     4096 May 13 21:56 .
drwxr-xr-x 4 root    root     4096 May 13 21:55 ..
-rwxrwxrwx 1 satimis satimis 64000 May 13 21:54 Esfw52.bin
On Host
⟫ cat /etc/group | grep vboxuser

Code: Select all

vboxusers:x:129:satimis
User already registered.

Edit-1
====
$ ls -ald /usr/share/sane

Code: Select all

drwxr-xr-x 4 root root 4096 May 13 21:55 /usr/share/sane
$ ls -ald /usr/share/sane

Code: Select all

drwxr-xr-x 4 root root 4096 May 13 21:55 /usr/share/sane
$ ls -ald /usr/share/sane/snapscan/

Code: Select all

drwxr-xr-x 2 root root 4096 May 13 21:56 /usr
Do I need to change all of them to satimis:satimis ?

Edit-2
Problem solved as follow:
===================

VM VirtualBox Manager
--> Settings --> USB

USB Device Filters
right click the "Blank window"
--> Add Filter From Device
--> select [EPSON Scanner [0110]]
--> OK

Restart VM
now Epson scanner is working on VM. XSane finds the scanner.

Regards
satimis
Dave S
Posts: 12
Joined: 18. May 2019, 22:31

Cannot use USB scanner since upgrade

Post by Dave S »

I was running an older 5.x version of VB within Win10 to run XP, as my Canon scanner does not work in Win10 64bit. All worked fine till I recently upgraded to 5.2.28

Now Win XP within VB sees the scanner in Device Manager when I insert it, I see it as an option for the scanning device in my scanning program, but when I try to scan, it says it cannot communicate with the scanner.

I have VBoxGuestAdditions_5.2.26 and Oracle_VM_VirtualBox_Extension_Pack-5.2.28 installed

I have re-installed Canon Scangear, tried to re-install the driver, but it tells me I have the best one already.

Help please !
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB scanner stopped working in Virtualbox 6.0.6.

Post by socratis »

@mipri
Great detective work, just what the developers would need to track the issue down.

@glendale
Good job finding the ticket. I'll post a link.

@both
There have been updates it seems. Could you see the ticket for more info, try the testbuilds and let the developers know?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Dave S
Posts: 12
Joined: 18. May 2019, 22:31

Re: USB scanner stopped working in Virtualbox 6.0.6.

Post by Dave S »

Interesting, My USB scanner won't work in 5.2.28, worked fine in a previous 5.x version, can't say which version though.

Logs attached.
Attachments
XP-2019-05-19-18-11-04.log
(115.5 KiB) Downloaded 166 times
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by socratis »

@Dave S
I merged a thread that you had opened with this one. No need to have multiple "fronts" open.

Please read my previous post about visiting the ticket USB Printer not work (ver. 5.2.28 or 6.0.6) and trying the Testbuilds.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by socratis »

@satimis
Same merge for you for your thread.

Moving this to "Using VirtualBox".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Dave S
Posts: 12
Joined: 18. May 2019, 22:31

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by Dave S »

Thanks socratis

good to know this is not just me and a fix is in sight.
mipri
Posts: 23
Joined: 20. Sep 2016, 16:05

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by mipri »

I've tried Testbuild 6.0.9-130662 today, and the scanner is working again.

Thank you very much.
Dave S
Posts: 12
Joined: 18. May 2019, 22:31

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by Dave S »

Any news on when the fix will be rolled out for the 5.2 build ?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Post by socratis »

@Dave S
Did you try the 5.2.x testbuild and there was no fix?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply