View previous topic :: View next topic |
Author |
Message |
grooveman Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/11473736443e5a75084276d.jpg)
Joined: 24 Feb 2003 Posts: 1217
|
Posted: Mon Mar 15, 2010 5:57 pm Post subject: KVM USB Printer - Blue Screen |
|
|
Hi everyone,
I have an xp box running under qemu, and so far it has been working very well. Recently, I went to add USB support, as I need to use USB printer connected to the host system.
My printer is an epson stylus photo 2200:
Code: | Bus 001 Device 003: ID 04b8:0007 Seiko Epson Corp. Printer |
I add it to the kvm (qemu) command line like so:
Code: | -usb -usbdevice host:04b8:0007 |
The virtual XP box detects the printer, I install the drivers, and everything goes smoothly. However, when I go to print a test page, I get a blue screen (lasting only a split-second) and the XP box reboots. This is 100% replicable.
I'm getting this kind of output in my dmesg:
Code: |
usbfs 1-2:1.0: forced unbind
ehci_hcd 0000:00:12.2: port 2 high speed
ehci_hcd 0000:00:12.2: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT
usb 1-2: reset high speed USB device using ehci_hcd and address 3
ehci_hcd 0000:00:12.2: port 2 high speed
ehci_hcd 0000:00:12.2: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT
usblp 1-2:1.0: usb_probe_interface
usblp 1-2:1.0: usb_probe_interface - got id
drivers/usb/core/file.c: looking for a minor, starting at 0
usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007
usblp 1-2:1.0: disconnect by usbfs
drivers/usb/core/file.c: removing 0 minor
usblp0: removed
|
I have cups shut down on the host OS when I start the vm.
I'm using qemu-kvm-0.12.3 and gentoo-sources-2.6.31-r6.
Thanks for the help.
G _________________ To look without without looking within is like looking without without looking at all. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bbgermany Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14656390143b65679294bf.jpg)
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Mon Mar 15, 2010 7:47 pm Post subject: |
|
|
Hi,
you should go to system properties and disable auto reboot of your vm in case of a bsod. maybe its a driver issue of the windows driver.
bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mad Merlin Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 09 May 2005 Posts: 1155
|
Posted: Tue Mar 16, 2010 12:10 am Post subject: |
|
|
Is your printer USB 2.0 only? If so, you're out of luck, KVM only supports USB 1.1.
Theoretically USB 2.0 devices are supposed to fall back to 1.1 when the host only supports 1.1, but many don't.
Also, I know for PCI passthrough you need to make sure the device isn't in use on the host before you pass it to the guest, there's a kernel module called pci-stub or something like that which simply reserves the relevant resources to make sure they're not used. You may need to do something similar for USB passthrough. _________________ Game! - Where the stick is mightier than the sword! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grooveman Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/11473736443e5a75084276d.jpg)
Joined: 24 Feb 2003 Posts: 1217
|
Posted: Tue Mar 16, 2010 2:54 pm Post subject: |
|
|
bbgermany wrote: | Hi,
you should go to system properties and disable auto reboot of your vm in case of a bsod. maybe its a driver issue of the windows driver.
bb |
Yeah, I have done that, but unfortunately, google says nothing about those particular error codes. I have even tried several different drivers, including the generic text only driver for this printer. Crashes the system every time.
Quote: | Is your printer USB 2.0 only? If so, you're out of luck, KVM only supports USB 1.1. |
I doubt it, it is a fairly old printer.
Quote: | Also, I know for PCI passthrough you need to make sure the device isn't in use on the host before you pass it to the guest, there's a kernel module called pci-stub or something like that which simply reserves the relevant resources to make sure they're not used. You may need to do something similar for USB passthrough. |
I cannot find any info on using this... can you point me somewhere? Though I'm not sure it is appropriate here, as it isn't really a pci device, the usb controler is, but not the printer...
Thanks. _________________ To look without without looking within is like looking without without looking at all. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mad Merlin Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 09 May 2005 Posts: 1155
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kanal108 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Mar 2010 Posts: 7
|
Posted: Wed Sep 08, 2010 5:22 pm Post subject: |
|
|
Well ... I have the same problem.
I tried it first with qemu-kvm, then later with libvirt, but I have all the time a blue screen as soon as I try to do sth. with usb within the VM with Win XP. Is there a solution for this problem?
The devices I tried: 1x scanner, 1x printer, 1x usb stick, every time the same problem ... blue screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|