USB Printer to KVM

BitRausch

Renowned Member
Mar 16, 2009
140
0
81
Muenster
Hi @all,

I could not find the right information on the forum.
Can you tell me how I can connect a usb printer to a kvm vm?
I found some information for openvz but I am not sure if this information are valid for KVM.

kind regards
BitRausch
 
Hi Dietmar,

Thank you!. I did check the qm (qm set <VMID> -hostusb 03f0:3617) but it did not work. That means the usb printer (HP Color LaserJet 2605) is not recognized by SBS 2008 VM. lsusb show me the right information. info usbhost show me the information too but it does not show up in the windows vm. So I gave up on that.
But I was wondering if I could use the pve host to actually add the printer as a network printer with samba/cups and make it available to all Windows VM.
Is that possible?

Kind regards
BitRausch
 
I've tried this command qm set 101 -hostusb xxxx:xxxx and nothing ocurred in the Windows machine...

Maybe I'm doing something wrong???
 
I have recently build a new VM with Windows XP, thrown this command in the root terminal qm set 102 -hostusb xxxx:xxxx and nothing. stopped, started etc the VM but doesn't appear the USB device.

This seems pretty strange, since the lsusb displays the USB printer there:
Bus 008 Device 010: ID 06bc:00cb Oki Data Corp.

What can be happening?
 
Qemu only supports USB1. Most devices expect USB2.

So even if the device is properly detected and drivers are installed, it may still not function. Or even BSOD Windows (i.e. very common with printers).

I wonder if USBIP would work better - i.e. Proxmox VE as a host, Windows KVM as a client.
But last time I tried, it wasn't very stable.
 
Since I cannot connect directly most of the usb devices (because most are 2.0, worst soon, 3.0), then best idea might be to connect the printer to the linux host (if there are proper drivers, most of the times, there isn't) and try to broadcast it via cups or any other printer sharing server... to connect it to the windows host.

But for some reason, I could not make through linux make that printer work... so thats why I was trying to connect it directly via USB to the client.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!