I am seeing some inconsistent behavior in PVE 1.9 vs PVE 2.0. I have been able to successfully pass through a USB connection from the host machine to a guest KVM, but the functionality of the device has changed and I am struggling to find any errors or indications of something not working correctly. Any insight would be greatly appreciated.
I am trying to pass through a MFC Brother printer/scanner from host machine to guest machine. The printer AND scanner were functioning perfectly in PVE 1.9. After upgrading to PVE 2.0 I got the printer to function normally, however the scanner is not working. The guest machine sees it as a scanner, but when I actually attempt to scan something (using simple scan) the program can never actually communicate with the scanner. It eventually times out and fails. I am not seeing errors in the guest or host machine indicating that there is an issue with USB pass through, however the functionality no longer exists.
I even started from scratch with a fresh install on a new KVM guest (same OS, same scanner driver[brscan2-0.2.5-1.i386.deb]) and have seen the same results -- the printer works as expected, however the scanner does not respond.
-----------------------------------------------------------------------------
Guest Machine - Ubuntu 11.10 KVM
print@print:~$ lsusb; sane-find-scanner; scanimage -L
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04f9:0183 Brother Industries, Ltd DCP-7020
Bus 004 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
# 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.
found USB scanner (vendor=0x04f9, product=0x0183) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# 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.
device `brother2:bus3;dev1' is a Brother DCP-7020 USB scanner
I tried to also use xsane and that gives me an error message that says failed to start scanner.
-----------------------------------------------------------------------------
If this was the first time installing the scanner in Ubuntu 11.10 I might attribute it to a Ubuntu bug issue, however as it was functioning with PVE 1.9 and Ubuntu 11.10 as the guest OS (using same VM As 1.9 and attempting new install on 2.0) but no longer functions after switching to PVE 2.0 logic seems to point at perhaps USB pass through isn't actually allowing the guest KVM to communicate/start the host-attached scanner device.
I am seeing this message in the host machine syslogs, not sure if it is relevant
Feb 22 20:00:22 desmo kernel: usb 3-1: usbfs: interface 0 claimed by usblp while 'kvm' sets config #1
Anyone else experiencing similar odd behavior with USB pass through? I plan on attempting to create Windows VM and see if I can reproduce the scanner behavior, but haven't got to that point yet. Will update thread with results.
I am trying to pass through a MFC Brother printer/scanner from host machine to guest machine. The printer AND scanner were functioning perfectly in PVE 1.9. After upgrading to PVE 2.0 I got the printer to function normally, however the scanner is not working. The guest machine sees it as a scanner, but when I actually attempt to scan something (using simple scan) the program can never actually communicate with the scanner. It eventually times out and fails. I am not seeing errors in the guest or host machine indicating that there is an issue with USB pass through, however the functionality no longer exists.
I even started from scratch with a fresh install on a new KVM guest (same OS, same scanner driver[brscan2-0.2.5-1.i386.deb]) and have seen the same results -- the printer works as expected, however the scanner does not respond.
-----------------------------------------------------------------------------
Guest Machine - Ubuntu 11.10 KVM
print@print:~$ lsusb; sane-find-scanner; scanimage -L
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04f9:0183 Brother Industries, Ltd DCP-7020
Bus 004 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
# 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.
found USB scanner (vendor=0x04f9, product=0x0183) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# 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.
device `brother2:bus3;dev1' is a Brother DCP-7020 USB scanner
I tried to also use xsane and that gives me an error message that says failed to start scanner.
-----------------------------------------------------------------------------
If this was the first time installing the scanner in Ubuntu 11.10 I might attribute it to a Ubuntu bug issue, however as it was functioning with PVE 1.9 and Ubuntu 11.10 as the guest OS (using same VM As 1.9 and attempting new install on 2.0) but no longer functions after switching to PVE 2.0 logic seems to point at perhaps USB pass through isn't actually allowing the guest KVM to communicate/start the host-attached scanner device.
I am seeing this message in the host machine syslogs, not sure if it is relevant
Feb 22 20:00:22 desmo kernel: usb 3-1: usbfs: interface 0 claimed by usblp while 'kvm' sets config #1
Anyone else experiencing similar odd behavior with USB pass through? I plan on attempting to create Windows VM and see if I can reproduce the scanner behavior, but haven't got to that point yet. Will update thread with results.