Forwarding printer in KVM

  • Hello everyone!


    I'm trying to connect a usb printer to an openwrt virtual machine. I'm facing a problem where I need to start printer first and then start the virtual machine. If the virtual machine starts before the printer, i needed shutdown and play VM.


    In VMs xml, I've added the option <source startupPolicy='optional'> to allow it to start without a usb device.

    In this scenario, OpenWRT shows that the usb device is not connected (To make printer visible in the VM, me need to turn off the VM in KVM and then turn it back on, rebooting doesn't help).

    How can I solve problem so that printer can be connected to a running VM as a hotplug?

    In all scenarios where the printer is passed through or not, OMV in lsusb displays connected printer to its system.


    Please do not recommend using CUPS, as I was unable to configure it due to old printer.

  • votdev

    Approved the thread.
    • New
    • Official Post

    What printer is it?


    The easiest way to do this is pass the whole usb controller to the VM but that would require a separate usb controller not used by the system.


    Have you cut&paste your post here into chatgpt? I'm sure it would have some suggestions. I haven't used a non-network printer in a very long time.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.3 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • What printer is it?


    The easiest way to do this is pass the whole usb controller to the VM but that would require a separate usb controller not used by the system.


    Have you cut&paste your post here into chatgpt? I'm sure it would have some suggestions. I haven't used a non-network printer in a very long time.

    Printer Xerox 3116.

    No I didn't use chatgpt or anything, he doesn't answer questions about non-mass-produced software well...


    I was able to start the printer using the cups service in OMV. Please answer me, where is Cups plugin now? I didn't find it in extras or docker compose.


    For those who are interested, printer-driver-splix package helped me by adding necessary driver to cups.

    • New
    • Official Post

    No I didn't use chatgpt or anything, he doesn't answer questions about non-mass-produced software well...

    I use a lot of AI (encouraged to at work) and I wouldn't have suggested it here if I didn't think it would give a good response. In this case, it gives a very good response.

    where is Cups plugin now? I didn't find it in extras

    The cups plugin has been gone for since OMV 3.x.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.3 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Sprunki Retake I ran into this too, and the best fix is to use a udev rule on your host to trigger a virsh attach-device command whenever the printer turns on. This forces the host to "inject" the printer into the running VM automatically, so the boot order doesn't matter anymore.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!