Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Running scanner software in a Windows virtual machine on Linux works by passing the physical scanner’s USB connection from the Linux host to the Windows guest. VirtualBox and KVM/libvirt can both attach a host USB device to a guest, but successful USB passthrough only proves that the device was handed to Windows; you still need a Windows driver and scanner application that support the exact scanner model and your guest Windows version.

This guide shows the complete setup for both hypervisors, how to verify the attachment, how to release the scanner safely, and what to check when Windows sees the USB device but the scanning program does not.

What does USB passthrough do in a scanner VM?

USB passthrough gives the Windows guest direct control of a USB device connected to the Linux host. Oracle describes the capability this way: “Oracle VirtualBox can enable virtual machines to access the USB devices on your host directly.” In practice, the hypervisor detaches the scanner from normal host use and presents it to Windows as a USB device.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The arrangement has three separate layers:

  1. Physical connection: the scanner is plugged into the Linux computer, usually directly rather than through an unpowered hub.
  2. Virtual hardware: VirtualBox or libvirt attaches that USB device to the Windows VM.
  3. Windows support: Windows loads a driver, and the scanner application communicates with that driver.

A failure at the third layer is not fixed by changing passthrough settings. A scanner may appear in the guest’s USB list yet remain unusable because its manufacturer supplies no driver for the guest Windows release, the application requires a particular driver interface, or the software refuses to run in a virtual machine. The hypervisor documentation covers USB attachment generally, not compatibility for a particular scanner or application.

Popular on Amazon
CloudValley Adjustable Laptop Stand, Magnetic Phone Holder, Black | Aluminum Slim Monitor Side Mount Clip for iPhone MagSafe & All Phones, Portable Foldable Computer Expansion Bracket
  • Aluminum Slim Computer Side Mount Clip: Compatible with all phones, featuring a portable foldable expansion bracket in sleek black finish
  • Upgraded Magnetic Mount Technology: Designed for laptop, desktop monitor, MacBook, iPad and Tesla car screen with stable adsorption, adjustable angle, and dual-screen interaction support for improved office efficiency
  • High-End Metal Craftsmanship: Selected high-hardness aluminum alloy with CNC precision machining, matte plating process, delicate texture that is wear-resistant and anti-scratch
  • Strong Magnetic Attachment: Features upgraded high strength magnet with 200% increased magnetic force for firm phone attachment, innovative ring-shaped heat dissipation design prevents overheating and ensures no signal interference
  • Wide Range of Compatibility: Works with iPhone 18/17/16/15/14/13/12 series including Pro Max/Mini versions, includes 2 metal rings for non-magnetic phones or cases for full device compatibility

What should I have ready before configuring the VM?

Prepare the host, guest, and scanner information first. This prevents you from treating a Windows driver problem as a Linux permissions problem.

  • A Linux account that can launch the chosen hypervisor.
  • A powered-on USB scanner connected to the Linux host.
  • The exact scanner model and revision, as printed on its label or identified by the host.
  • A supported Windows guest version and the scanner manufacturer’s driver and application installer for that version.
  • A VM that is fully shut down while you change virtual USB-controller settings.
  • A way to identify the scanner’s USB vendor/product or bus/device values.

On Linux, list USB devices with:

lsusb

For VirtualBox, Oracle also documents:

VBoxManage list usbhost

Record the line that corresponds to the scanner. Unplugging and reconnecting it while watching the list can help distinguish it from a keyboard, webcam, or other USB equipment. Do not assume that a bus/device number is permanent: Linux can assign different numbers after a reconnect or reboot.

How do I pass the scanner through with VirtualBox?

VirtualBox offers a graphical USB controller and device filters. The VM must be stopped while you enable the controller or edit filters; the scanner can then be attached automatically at startup or manually while the guest is running.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

1. Give VirtualBox permission to access host USB devices

On Linux, VirtualBox exposes host USB device files to members of the vboxusers system group. Add the account that actually runs VirtualBox to that group using your distribution’s administrative tools, then start a new desktop session (or log out and back in) so the group membership is applied.

Check the current groups with:

groups

If vboxusers is absent after you were added, do not continue troubleshooting the VM yet. A stale login session can make VirtualBox behave as though the permission change never happened. The VirtualBox 7.2 user guide explains the Linux USB-access requirement.

2. Enable a virtual USB controller

  1. Power off the Windows VM completely. Do not leave it in a saved state.
  2. Open VirtualBox Manager, select the VM, and choose Settings > USB.
  3. Enable the USB controller.
  4. Choose an appropriate controller type. Oracle recommends xHCI in most cases. A legacy Windows guest may need a third-party xHCI driver; if that guest cannot use xHCI, select the controller type it supports instead.
  5. Save the settings.

Changing the controller type changes the virtual hardware Windows sees. If Windows was installed with a different controller and later stops booting or loses USB devices, power off the VM and return to the previous controller type before investigating the scanner.

3. Create a scanner USB filter

In the same Settings > USB panel, add a USB filter for the scanner. A filter can match identifying fields such as the vendor, product, serial number, or other values shown by VirtualBox. The more specific the match, the less likely it is that a different device will be attached accidentally.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
AboveTEK Portable Laptop Lap Desk w/Retractable Left/Right Mouse Pad Tray, Non-Slip Heat Shield Tablet Notebook Computer Stand Table w/Sturdy Stable Work Surface for Bed Sofa Couch or Travel
  • Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
  • Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
  • Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
  • EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
  • Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.

Use a serial-number match when the scanner exposes one and you have multiple identical scanners. If it does not, select the device by its vendor and product information and avoid broad filters that could capture every device from the same manufacturer.

When the filter is present, VirtualBox can attach a matching scanner as the VM starts. A filter is optional: you can attach the device manually after Windows boots.

4. Start Windows and attach the scanner

  1. Connect the scanner to the Linux host and turn it on.
  2. Start the Windows VM.
  3. If you created a filter, wait for the guest to claim the matching device.
  4. For manual attachment, open the VM window’s Devices > USB menu and select the scanner. A check mark indicates that the guest has claimed it.

Once Windows claims the scanner, Linux applications should no longer be able to use it. This handoff is intentional; it prevents two operating systems from sending commands to the same device at the same time.

How do I pass the scanner through with KVM and libvirt?

KVM/libvirt uses a host-device attachment rather than a VirtualBox filter. The Red Hat procedure identifies the scanner with lsusb, adds it with virt-xml, and verifies the resulting VM definition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

1. Identify the scanner’s bus and device values

With the scanner connected, run:

lsusb

You will see entries containing a bus number and a device number, for example Bus 001 Device 004. Confirm the entry by disconnecting and reconnecting the scanner if necessary. Because device numbers can change, repeat this check after reconnecting rather than reusing an old number blindly.

2. Attach the USB device to the VM

Replace VMNAME, BUS, and DEVICE with the values from your system:

virt-xml VMNAME --add-device --hostdev BUS.DEVICE

For a running VM, Red Hat documents adding --update to apply the change to the live guest:

Also popular on Amazon
Sale
LAPGEAR Home Office Lap Desk – Pink, Fits 15.6” Laptops | Built-In Mouse Pad & Phone Slot, Integrated Device Ledge, Dual-Bolster Microbead Cushion, Carry Handle
  • Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
virt-xml VMNAME --add-device --hostdev BUS.DEVICE --update

Attaching while the guest is stopped is generally easier to reason about. If the command reports that the device cannot be found, rerun lsusb; a reconnect may have changed the bus/device pair, or another process may already own the scanner.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Inspect the VM definition

Use:

virsh dumpxml VMNAME

Look for a USB host-device entry in the XML. This confirms that libvirt stored an attachment for the VM, but it does not confirm that Windows loaded a driver. Start the guest and verify the scanner in Windows before assuming the setup is complete.

The Red Hat guide to attaching host devices provides the virt-xml and XML-inspection workflow.

How do I install and verify the Windows scanner software?

Install the scanner manufacturer’s Windows driver first, then install the scanning application that is documented to work with that driver and guest Windows version. Use the exact model designation; a driver for a visually similar model is not evidence of compatibility.

  1. With the scanner attached to the guest, open Windows Device Manager.
  2. Check whether the scanner appears under an imaging or USB-related category without a warning icon.
  3. Install or update the manufacturer’s supported driver if Windows reports an unknown device or missing driver.
  4. Install the scanner application and select the scanner from its device list.
  5. Run a small preview or single-page scan, then confirm that the resulting file opens correctly.

Windows detection and application operation are separate checks. Device Manager can show a USB device while the application fails because it expects a different driver interface, cannot access the device, or does not support the Windows edition in the VM. The consulted hypervisor documentation does not certify any scanner model, driver, or application.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What is the difference between VirtualBox and KVM/libvirt for scanner passthrough?

Both approaches can hand a host USB scanner to Windows. VirtualBox is usually more approachable when you prefer a desktop settings panel; KVM/libvirt is a natural fit for Linux systems already managed with libvirt and provides explicit XML configuration.

Concern VirtualBox KVM/libvirt
Configuration style Settings > USB panel, filters, and a Devices > USB menu virt-xml host-device attachment and VM XML
Host identification VBoxManage list usbhost or Linux lsusb Linux lsusb bus/device values
Linux access prerequisite The account running VirtualBox must have access through vboxusers The device must be visible on the host and attachable by the libvirt configuration
Automatic attachment USB filters can match a scanner at VM startup The host-device entry is stored in the VM definition
Live attachment Select the scanner from Devices > USB Use virt-xml ... --update when applying to a running guest
Release behavior VirtualBox explicitly disconnects the device from the host when the guest starts using it The guest likewise owns the attached USB device until it is detached

Neither hypervisor removes the need for a compatible Windows driver and application. Choose the approach that matches how you already administer the VM rather than expecting one to make unsupported scanner software work.

Also popular on Amazon
MNN 15.6" 1080P Portable Monitor IPS USB-C HDMI Gaming Screen for Laptop | 15.6" FHD IPS HDR, USB-C one-cable, PC/Mac/Phone/Switch, Smart Case,Laptop , low blue, work&game
  • Full HD Portable Monitor - MNN 15.6inch portable laptop monitor with 1920*1080 resolution, advanced IPS glossy screen support 178° full viewing angle, it renders accurate and bright color, draws you into the video or game with lifelike colors and amazing detail.It can effectively reduce blue light radiation damage, no flickering, eye-care, and make it easier to watch for a long time.A second monitor for working from home.
  • Double Type-C Port -For Plug & Play, the MNN monitor provides 2 Full Feature Type-C ports. Only One USB Type-C Cable is required to connect to the power supply & display signal transmission. NOTE: Your device should support thunderbolt 3.0 or USB 3.1 Type C DP ALT-MODE.which supports multiple connect ways to your laptops, PC, Phones, Macbooks, PS5/PS4, Xbox, and Switch.
  • Lightweight Ultra Slim for Travel - As a portable external monitor,MNN portable laptop monitor easily accommodate to every suitcase and backpack and stress-free when you are holding it for a long time. They are truly portable computer monitors for travelers, students, gamers,engineers, and everyone.
  • Give consideration to work and games - through multiple display modes [Copy Mode/Extended Mode/Second Screen Mode/Portrait Mode], we can bring you a clear second screen in the meeting, and expand the screen anytime and anywhere to improve work efficiency and improve the quality of life. Adjusting to HDR mode can upgrade the image to a new level, providing you with brighter highlights,deeper and more realistic colors, more realistic images, and amazing viewing/gaming experience.
  • Powerful Smart Cover - MNN portable external monitor can work in both landscape and portrait mode, can be used as a gaming monitor, screen extender for laptop or phone. Comes with a scratch-proof smart cover made of durable PU leather exterior, doubles as a stand, provides comprehensive protection for this portable computer monitor.

How should I hand the scanner back to Linux?

Treat the scanner as belonging to one operating system at a time. Close the Windows scanning application, finish any pending transfer, and use the hypervisor’s detach or release action before unplugging the cable.

In VirtualBox, remove the check mark from the scanner in Devices > USB, or shut down the guest cleanly and allow the device to return to the host. Oracle warns that when a guest starts using a USB device, it is disconnected from the host without a proper shutdown. Do not unplug the scanner while Windows is writing a scan or while the application is communicating with it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After release, wait for Linux to enumerate the scanner again before opening a host scanning program. If it does not reappear, disconnect and reconnect the cable and rerun lsusb. A clean handoff is especially important when the scanner has internal firmware operations or a moving feed mechanism.

Why does Windows see the USB device but the scanner application fail?

That symptom usually means passthrough succeeded but software compatibility did not. Work through these checks in order:

  1. Confirm the guest owns the device. In VirtualBox, the scanner should be checked under Devices > USB. In libvirt, confirm the host-device entry with virsh dumpxml.
  2. Check Device Manager. A warning icon, an unknown device, or a generic USB entry indicates a Windows driver issue rather than a VM attachment issue.
  3. Match model and Windows version. Verify the driver’s supported scanner model and guest Windows release. Do not substitute a driver solely because its name is similar.
  4. Check the application’s device interface. Some programs require a particular vendor driver or imaging interface. Install the application’s documented driver package, not only a generic Windows USB driver.
  5. Close competing software. A second Windows imaging application can hold the scanner open. Exit it and retry.
  6. Reconnect in a controlled order. Shut down or release the guest device, unplug the scanner, reconnect it, then attach it again. Recheck the USB identity because Linux bus/device numbers may change.

If the scanner works in a native Windows installation but not in the VM, compare the driver version, Windows edition, and application configuration. The difference may be an unsupported guest environment rather than a passthrough error.

What should I do when VirtualBox cannot list or attach the scanner?

  • The scanner is absent from VBoxManage list usbhost: confirm that Linux sees it with lsusb, power the scanner on, and reconnect it. If Linux itself cannot enumerate the device, fix the cable, hub, or host USB issue first.
  • The device appears but cannot be selected: check that the logged-in account belongs to vboxusers and that you started a new session after changing group membership.
  • The filter attaches the wrong device: edit the filter to include more identifying fields, preferably a serial number, or delete the filter and attach manually.
  • The scanner vanishes from Linux while Windows runs: this is expected ownership behavior. Release it from the guest before using it on Linux.
  • Windows reports a USB-controller problem: power off the VM and try the controller type supported by that guest. Oracle recommends xHCI in most cases but notes that legacy guests may require additional xHCI support.

What should I do when KVM/libvirt attachment fails?

  • virt-xml cannot find the device: rerun lsusb and use the current bus/device values. A reconnect can change them.
  • The XML has no USB host-device entry: repeat the attachment command and inspect virsh dumpxml VMNAME again. Make sure you edited the intended VM name.
  • The guest is running but does not see the scanner: apply the attachment with --update or shut down and restart the VM, then check Windows Device Manager.
  • The scanner is visible but unusable: investigate the Windows driver and application support. XML confirmation only proves that libvirt has a device definition.
  • The host needs the scanner again: stop the Windows application, detach the host device from the guest, and wait for Linux to enumerate it.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Is USB passthrough reliable enough for regular scanning?

It can be practical for occasional or routine document scanning when the scanner has a supported Windows driver and the VM is dedicated to that task. Reliability depends on the scanner, driver, Windows guest, USB controller, and application together; the cited documentation provides no general passthrough success rate or scanner-performance benchmark.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep the scanner connected directly to a stable host port when possible, avoid changing controller settings after the guest is configured, and shut down or release the device before suspending the host. If several people need the scanner simultaneously, a single USB passthrough assignment is the wrong model: the guest owns the device exclusively while attached.

Also popular on Amazon
AIKOKOK Wireless Bluetooth Mouse, Rechargeable Dual Mode Mouse, Black | BT 5.2 & 2.4G USB Receiver, 3 Adjustable DPI,LED Lights,Slim,Silent,Portable Computer Mouse for Laptop,PC,MacBook,iPad,Tablet
  • 【Rechargeable Optical Mouse/Energy Saving】:Computer Mouse Built-in Durable Rechargeable Battery,High Cycle Life,No Need Change Battery;Laptop Mouse Wireless Can Be Easily Charged Using the Included USB Cable,Just 2 Hours Charging,Mouse Wireless Can Use Than 5 Days of Working Time and 30 Days of Standby Time,Standby Time is Very Long;Tablet Mouse Will Fall Asleep After 5 Minutes No-Operation to Save Power and Provides Long Term Usage;You Can Wake ipad Mouse Up By Clicking any Button
  • 【LED Colorful Breathing Light】:This Wireless Mice With 7 Different Colorful LED Breathing Lights,7 Different Color Changes Randomly While in Use,Offering Soothing Lighting;Creating Cool and Fancy Atmosphere for Office and Gaming,LED Mouse Can Give You More Fun During
  • 【Wireless Bluetooth Mouse Dual Mode】:Mouses(BT5.2/3.0 and 2.4 G)Dual Mode Realize the Free Switching of One Wireless Bluetooth Mice Between Two Devices;Bluetooth Mouse Mode Can Connect One Device Through BT5.2/3.0 and Wireless Mouse Mode Another Device Through a 2.4G USB Receiver,No Need to Install any Driver,Plug and Play;Wireless/Bluetooth Technology Provides Powerful and Reliable Connection,Which Can Enables Fast Data Transmission Without Delays or Dropouts,Effective Up to 10 Meters(33 feet)of Range
  • 【Silent/Fingerprint-proof】:Silent Laptop Mice Button Silent Click Design Reduces 90% Noises,Help You Concentrate on Your Work、Study Without Disturbing Others Besides You;Apple Mouse Fingerprint-proof Surface Coating Technology Design Gives Your a Skin-Like Touch,The sturdy anti-slip rubber scroll wheel ensures that your hand will not slip when scrolling;Slim Mouse Offers Your Hand Maximum Support and Comfort
  • 【Wide Compatibility Wireless Mouse】:Wireless Bluetooth Mouse For Laptop/Computer/Apple/Notebook/Tablet/Macbook/ipad/iPhone;Mice is Compatible With Android/Chromebook/Windows/Vista/Linux/Notebook/Mac OS and Other Bluetooth Devices

Should I buy a different scanner for a Windows VM?

Not necessarily. If your existing scanner has a Windows driver and application that support the guest version, passthrough may be all you need. If you are choosing hardware, treat “USB document scanner” as a category search and verify the exact model’s Windows-driver support before purchase; passthrough instructions alone do not establish compatibility for any particular product.

Network-scanning features, vendor-specific security software, or applications that require direct access to a physical Windows installation can change the decision. Confirm those requirements in the scanner’s documentation before spending money.

How do I confirm the setup is complete?

Use this end-to-end checklist:

  • Linux lists the powered-on scanner with lsusb.
  • VirtualBox lists it with VBoxManage list usbhost, or libvirt identifies its bus/device values.
  • The Linux account has the required VirtualBox USB-group access, if applicable.
  • The VM has a compatible virtual USB controller enabled.
  • The scanner is attached to the Windows guest and no longer available to Linux.
  • Windows Device Manager shows the scanner without a driver warning.
  • The manufacturer’s supported driver and scanning application are installed.
  • A preview and a completed single-page scan succeed.
  • The guest can release the scanner and Linux can reacquire it afterward.

Only when all of these checks pass can you say the complete workflow works. A check mark in a hypervisor menu is only the transport step.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How we built this procedure

The VirtualBox steps follow Oracle’s USB-controller, Linux vboxusers, filter, and manual-attachment guidance. The KVM/libvirt steps follow Red Hat’s lsusb, virt-xml --add-device --hostdev, optional --update, and virsh dumpxml workflow. Both sources describe generic USB host-device access, so scanner-model, driver, and application compatibility must be verified separately.

Frequently Asked Questions

Can I scan from Linux while the scanner is attached to the Windows VM?

No. USB passthrough assigns the device to one system at a time. Release or detach it from Windows and wait for Linux to enumerate it again before opening a Linux scanning application.

Do I need to install a scanner driver on Linux?

Linux needs to enumerate the USB device so the hypervisor can claim it, but the scanning driver used for this workflow is installed inside Windows. A Linux driver may still be needed for host-side scanning when the device is not passed through.

Will a USB hub work with a scanner passed to a VM?

It may, but the hypervisor still passes through the scanner as a USB device and the guest driver must support it. For troubleshooting, connect the scanner directly to a powered host port first so hub power or enumeration issues are not involved.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I attach the same scanner to two Windows VMs at once?

A normal USB passthrough assignment gives control to one guest at a time. Detach it from the first VM before attaching it to another, and close the scanning application so the device is released cleanly.

What if the scanner has no Windows driver for my guest version?

Passthrough cannot provide a missing driver. Use a supported Windows version or a scanner/application combination documented by the manufacturer, or scan from an operating system that the device officially supports.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of December 6, 2026 12:59 am GMT.