Okay, so I have been really experimenting with Xen and trying to virtualize many of my machines with different configurations.
I have had a lot of success with using the pciback.hide command with Network Adapters and then assigning them to a VM in the configuration file. One of the virtual machines is a Samba print server which I would like to add print server abilities with CUPS and Samba. I thought I would try same PCI hiding technique for the USB printer.
Here is some background:
Code:
root@big10:~# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 03f0:6204 Hewlett-Packard DeskJet 5150c
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
root@big10:~# lspci | grep USB
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
I have tried only forwarding the USB controller that has the printer plugged in. I saw the printer (/dev/usb/lp0) in the VM, but test prints to the printer resulted in a bunch of jibberish printed on the paper. I tried forwarding all the controllers with the same result.
Has anyone had any luck and willing to share how they set up a USB printer in a VM?
Recent comments
1 day 4 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 16 hours ago
2 days 1 hour ago
2 days 10 hours ago
2 days 11 hours ago
2 days 15 hours ago
2 days 19 hours ago
2 days 19 hours ago