VMmanager Knowledge Base
en En
es Es

USB device not recognized in Windows Server 2022 on VM with NoOS template

You can connect USB devices to a VM following the instructions in the article How to connect a USB device to a VM?

This article describes the steps to take when the guest OS does not detect a connected USB device.

Problem

The guest OS does not initialize the USB device under the following conditions:

  1. The VM is created from a NoOS template.
  2. Windows Server 2022 OS is installed on the VM from an ISO image.
  3. USB device is connected to the VM according to the instructions for How to connect a USB device to a VM?.

In this case:

  • node of the cluster sees the device, but it is not passed to the guest OS;
  • the VM configuration uses a USB controller of the piix3-uhci:
    <controller type='usb' index='0' model='piix3-uhci'>

Cause

Flash drive is incompatible with the USB controller model piix3-uhci. In the platform, VMs without OS are created only with this controller. Replacing the model with nec-xhci resolves the issue.

Diagnostics

To confirm the cause:

  1. Connect to the cluster node via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Get the internal VM name:
    virsh list --all --name
    Example output
    53_test00\ntest_vm_01
    Explanation:
    • 53_test00, test_vm_01 — internal VM names.
  3. Check the USB controller model in the VM configuration:
    virsh dumpxml <vm_name> | grep -i -E 'uhci|ehci|xhci'

    Explanation:

    • <vm_name> — internal VM name. Obtained in step 2;
    • uhci|ehci|xhci — USB controller model names, case-insensitive.
    Example output
    <controller type='usb' index='0' model='piix3-uhci'>
    If the output contains only piix3-uhci and no nec-xhci, this confirms the issue: the device is incompatible with the installed controller model.
  4. Make sure the cluster node sees the USB device:
    lsusb
    Example output
    Bus 002 Device 004: ID 8564:1000 Transcend Information, Inc. JetFlash

    Explanation:

    • Bus 002 Device 004: ID 8564:1000 Transcend Information, Inc. JetFlash — USB drive Transcend JetFlash is connected to bus 002 and recognized by the cluster node.
    If the device is present in the output , but is not detected in the guest OS, this confirms the issue. The failure occurs when passing the device to the guest OS, not at the node level.

Solution

To resolve the issue, replace the USB controller model with nec-xhci:

  1. Connect to the cluster node via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Save the current VM configuration. The command is executed on the cluster node:

    virsh dumpxml <vm_name> > <vm_name>.xml
  3. Open the configuration in edit mode:
    virsh edit <vm_name>
  4. In the XML configuration, find the USB controller section: the <controller> element with the type='usb' attribute:
    Configuration line example
    <controller type='usb' index='0' model='piix3-uhci'>
    Explanations:
    • type='usb' — controller type;
    • index='0' — controller serial number;
    • model='piix3-uhci' — current controller model that needs to be replaced.
  5. Replace the model with nec-xhci:

    Example of modified line
    <controller type='usb' index='0' model='nec-xhci'>
  6. Save the changes and exit the editor.
  7. Stop the VM:
    virsh shutdown <vm_name>
    Wait for the shutdown to complete. If high availability is enabled in the cluster, the VM will restart automatically. Changes will take effect after the restart.
  8. Check the configuration:

    virsh dumpxml <vm_name> | grep -i -E 'uhci|ehci|xhci'
    Example of correct output
    <controller type='usb' index='0' model='nec-xhci'>
  9. Log in to the guest OS and check if the USB device is recognized.