I am running Unbuntu 24.04 on Hyper-V and unable to access my USB devices

Anonymous
2024-08-21T18:29:16+00:00

I have been attempting to bring up an ST Development board for the last few weeks, I am using a windows machine, so I need to use a VM in order to get it up and running. I am using Windows 11 and using Hyper-V gen 2 and running Unbuntu 24.04 on it and I am having troubles getting the USB device, Which I am using to flash the development board, to be recognized by the VM. I have it so when I go into Edit Session Settings on the Hyper-V manager it will allow me to select the right USB to be used when I go into the Enhanced Session, but when I go into the VM I am unable to do anything with the USB device and it doesn't show up as a device in the USB viewer. I am unsure of how to solve this at this point. Any help would be greatly appreciated. Thanks!

*** Moved from Windows / Windows 11 / Apps / Windows apps ***

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-08-23T02:50:28+00:00

    Hi Carson,

    Hope you're doing well.

    1. Ensure that Enhanced Session Mode is enabled both on the Hyper-V server and the VM. This can be done in the Hyper-V Manager under the settings for the VM.
    2. Make sure that the Hyper-V Integration Services are installed on your Ubuntu VM. This can help with device recognition and overall VM performance.
    3. Double-check the USB passthrough settings. Sometimes, re-selecting the USB device in the Edit Session Settings and restarting the VM can help.
    4. Verify that the USB device is compatible with Hyper-V. Some devices might have issues with passthrough in a virtualized environment.
    5. Ensure that both Hyper-V and your Ubuntu VM are fully updated. Sometimes, updates can resolve compatibility issues.
    6. If direct USB passthrough continues to be problematic, consider using a USB over network solution. This involves using software to share the USB device over the network, which can then be accessed by the VM.
    7. In the VM settings, ensure that the USB controller is properly configured. You might need to add a USB controller if it’s not already present.

    Please let me know if you need further assistance or if there's anything else I can help with!

    Best Regards

    0 comments No comments