Menu

libusbip: error: udev_device_new_from_subsystem_sysname failed

Help
Pio
2024-02-02
2024-02-02
  • Pio

    Pio - 2024-02-02

    Hi,
    I am trying to access Windows 10 with Yubikey 5 NFC from Ubuntu 18.04.1(5.4.0-1122-azure) hosted on Azure.
    Ubuntu has usbip installed by default (usbip-utils 2.0) and Windows has 4.0.0 version installed.
    On Windows Yubikey is shared:

    C:\WINDOWS\system32>usbipd list
    Connected:
    BUSID  VID:PID    DEVICE                                                        STATE
    1-1    1050:0407  USB Input Device, Microsoft Usbccid Smartcard Reader (WUDF)   Shared (forced)
    

    I think it does not add to the problem but, if I omit "force" when binding the device warning is displayed:

    usbipd bind --busid=1-1
    
    usbipd: warning: Unknown USB filter 'CsDeviceControl' may be incompatible with this software; 'bind --force' may be required.
    usbipd: warning: USB filter 'TsUsbFlt' is known to be incompatible with this software; 'bind --force' will be required.
    

    Tried to monitor what is happening by running it with:

    C:\WINDOWS\system32>usbipd server Logging:LogLevel:Default=Trace
    dbug: Microsoft.Extensions.Hosting.Internal.Host[1]
          Hosting starting
    dbug: Usbipd.PcapNg[1000]
          usbipd:PcapNg:Path = ''
    dbug: Usbipd.Server[1000]
          usbipd:Port = 3240
    dbug: Usbipd.Server[1000]
          4.0.0+182.Branch.master.Sha.2ffe37ec799b9e73eb9d23d051d980fefb616ce1
    info: Microsoft.Hosting.Lifetime[0]
          Application started. Press Ctrl+C to shut down.
    info: Microsoft.Hosting.Lifetime[0]
          Hosting environment: Production
    info: Microsoft.Hosting.Lifetime[0]
          Content root path: C:\Program Files\usbipd-win\
    dbug: Microsoft.Extensions.Hosting.Internal.Host[2]
          Hosting started
    dbug: Usbipd.Server[1000]
          new connection from 1.1.1.1
    dbug: Usbipd.ConnectedClient[1000]
          Received opcode: OP_REQ_IMPORT
    dbug: Usbipd.ConnectedClient[1000]
          Claiming took 1 ms
    info: Usbipd.ConnectedClient[1]
          Client 1.1.1.1 claimed device at 1-1 (USB\VID_1050&PID_0407\5&1ED586E8&0&1).
    dbug: Usbipd.ConnectedClient[1000]
          Unbind or unplug while attached
    info: Usbipd.ConnectedClient[2]
          Client 1.1.1.1 released device at 1-1 (USB\VID_1050&PID_0407\5&1ED586E8&0&1).
    dbug: Usbipd.Server[1000]
          connection close: Unable to read beyond the end of the stream.
    dbug: Usbipd.Server[1000]
          connection closed
    

    The problem is on Ubuntu side:

    usbip attach --remote=1.1.1.2  --device=1-1
    libusbip: error: udev_device_new_from_subsystem_sysname failed
    usbip: error: open vhci_driver
    

    Any ideas?
    Thank you ,
    Piotr

     
  • Pio

    Pio - 2024-02-02
    azureuser@test-18:~$ sudo modprobe vhci-hcd
    modprobe: FATAL: Module vhci-hcd not found in directory /lib/modules/5.4.0-1122-azure
    
     

Log in to post a comment.