Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ubuntu VM USB Issues - operation failed: Multiple USB devices for 46d:c52b, use to specify one

Featured Replies

Hi,

I'm trying to pass through my Logitech mouse and keyboard using two dongles but it can only pass through one at a time.

I have tried using the USB Plugin manager but have founnd it's not very stable, and have to continue to disconnect and reconnect on boot.

I have also had look here on the forums,but can't seem to get the XML right.

 

    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
      </source>
      <address type='usb' bus='0' port='4'/>
    </hostdev>


 

Here is the USB devices list:

 

Bus 001 Device 001:    ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002:    ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003:    ID 048d:8297 Integrated Technology Express, Inc. ITE Device(8595)
Bus 001 Device 004:    ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005:    ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 006:    ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 001:    ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002:    ID 0781:5581 SanDisk Corp. Ultra


 

Thanks in advance.

7 minutes ago, Ainsley said:

I have tried using the USB Plugin manager but have founnd it's not very stable

Maybe @SimonF can help with this, I think it's the best way to do what you want.

 

8 minutes ago, Ainsley said:

I have also had look here on the forums,but can't seem to get the XML right

If you want to do it directly in libvirt (xml) you need to add the source addresses of your usb devices since they both have the same vendor/product id: this worked for me but on some systems the addresses will change on reboot, that's why SimonF recommends the plugin.

Based on your data:

    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
        <address bus='1' device='4'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
        <address bus='1' device='6'/>
      </source>
      <address type='usb' bus='0' port='4'/>
    </hostdev>

 

  • Community Expert

Hi @Ainsley

 

How are you mapping the devices in USB Manager. Could you post your diagnostics so I can have a look.

 

Also a screen shot of USB Manager,

Edited by SimonF

  • Community Expert
2 hours ago, Ainsley said:

Thanks for getting back to me so quickly.

Hi,

 

Looks like the diagnostics is after the reboot so cannot see any messages for Mapping USB devices etc. So when you have started VM can you provide syslogs for the rc.usb_manager events or just the whole syslog if that is easier.

 

I think the issue is that the Serial numbers are identical and that is my key. Setting both to port may help but I think I may need to look at a fix for the status.

 

I suggest using the XML option for now if the port processing doesnt work. But as I am now picking up devices mapped outside of USB Manager it may show both connected but one as outside of my plugin.

 

Screen shot after the VM has been started would be useful.

Edited by SimonF

  • Community Expert
2 hours ago, Ainsley said:

I have atatched diagnostics & screenshot below.

I have found two mice that have the same serial number so can replicate. If you enable hub process in settings and remove the mappings for the ports and add a port mapping for your hub on 1-11 that may also fix your issue in the short term.

 

image.thumb.png.607cc2cb8e8b5d412c79cb8f3d39e572.png

Edited by SimonF

  • Author

Hi @SimonF

 

Thanks for your support.

 

It seems the mouse works out of the box when booting the VM. But I have to go and manually disconnect the ports and attach them again so that I am able to use the keyboard. I guess it doesn't help with the serials being exactly the same as they are both by Logitech. Somtimes I get a virsh error when trying to attach.

 

Would you be able to provide how I can add a port mapping? Not so sure what you mean there.


I have attached update screenshots, diagnostics and system log.

 

Screenshot 2022-01-15 at 13.40.24.png

Screenshot 2022-01-15 at 13.40.30.png

tower-diagnostics-20220115-1345.zip tower-syslog-20220115-1346.zip

  • Community Expert
9 minutes ago, Ainsley said:

Would you be able to provide how I can add a port mapping?

If it has the name of the device it is a device mapping as per the edit settings you have attached. If you have the device defined in the XML the plugin will not be able to map hence the maybe virsh error.  but if you hover over it will show the error.

 

Delete the device mapping in the historical settings by the red X for the device. A Device mappings are setup via the terminal icon and port mapping by the usb icon.

 

Goto settings and enable HUB processing. if you haven't already.

 

image.thumb.png.b301b7d5fa5a1f330fbf171c778fd21e.png

 

With hub process you should only need a single port 1-11 defined, So also delete the 1-11.4 port mapping also.

 

Make sure to enable the Auto connect options on the port 1-11 mapping.

 

See if this works.

  • Community Expert

Just did some more testing on my system I dont this will work either. Sorry I think you will need to use the XML option, but the BUS and DEV numbers will change. 

 

I will have to rewrite my key process for this to work, so may take time as it will be a large change.

25 minutes ago, SimonF said:

but the BUS and DEV numbers will change

I would give the xml edit a try, works in my case, the device doesn't change the address on reboot/shutdown.

  • Author

Thanks for your replies @ghost82 and @SimonF

 

Im still a little confused about how this XML should look (first comment).

everytime I try to edit it, it doesn’t work.

 

woukd you be able to point me in the right direction on how it should look?

 

sorry about the formatting but it’s above!

 

<hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x046d'/> <product id='0xc52b'/> <address bus='1' device='4'/> </source> <address type='usb' bus='0' port='3'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x046d'/> <product id='0xc52b'/> <address bus='1' device='6'/> </source> <address type='usb' bus='0' port='4'/> </hostdev

>

Replace this:

    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
      </source>
      <address type='usb' bus='0' port='4'/>
    </hostdev>

 

With this:

    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
        <address bus='1' device='4'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
        <address bus='1' device='6'/>
      </source>
      <address type='usb' bus='0' port='4'/>
    </hostdev>

 

  • Author

Thanks @ghost82


I’ll give that a go!

 

is there anyway to force the same addresses if they do change?

Just now, Ainsley said:

is there anyway to force the same addresses if they do change?

I don't know any method.

  • Author

@ghost82worked like a charm, thank you very much.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.