Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel in 2.3.11 no longer monolithic? #11792

Closed
1 of 2 tasks
polyzen opened this issue Jul 18, 2024 · 6 comments
Closed
1 of 2 tasks

Kernel in 2.3.11 no longer monolithic? #11792

polyzen opened this issue Jul 18, 2024 · 6 comments

Comments

@polyzen
Copy link

polyzen commented Jul 18, 2024

Windows Version

Microsoft Windows [Version 10.0.19045.4651]

WSL Version

2.3.11

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.36.3

Distro Version

Arch Linux

Other Software

usbipd-win

Repro Steps

  1. usbipd.exe attach --wsl --hardware-id 'blah'
  2. Receive error saying WSL kernel is not USBIP capable, due to cat /sys/devices/platform/vhci_hcd.0/status failing
  3. sudo modprobe vhci-hcd
  4. usbipd.exe attach --wsl --hardware-id 'blah'
  5. Device attaches

Expected Behavior

Module already loaded

Actual Behavior

Try to attach USB device, find the vhci-hcd module needs to be loaded:
dorssel/usbipd-win#995

Diagnostic Logs

No response

@polyzen
Copy link
Author

polyzen commented Jul 18, 2024

From usbipd-win dev:

BTW: it worthwhile noting thay CONFIG_USBIP_HOST=m makes absolutely no sense. It used to be # CONFIG_USBIP_HOST is not set. WSL can never be a USB host. There is no physical USB, and the Linux USBIP subsystem does not allow forwarding client USB devices.

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@polyzen
Copy link
Author

polyzen commented Jul 18, 2024

Can provide the logs the bot requested, but not sure if they're necessary here.

@elsaco
Copy link

elsaco commented Jul 18, 2024

@polyzen are you using systemd? The vhci_hcd modules loads okay on a distro with systemd=true but won't load on a non-systemd distro. In fact no modules would load on a non-systemd WSL distro.

Look in /lib/modules/6.6.36.3-microsoft-standard-WSL2/kernel/drivers/usb/usbip and you'll find vhci-hcd.ko module.

ubuntu@eleven:~$ modinfo vhci-hcd
filename:       /lib/modules/6.6.36.3-microsoft-standard-WSL2/kernel/drivers/usb/usbip/vhci-hcd.ko
license:        GPL
description:    USB/IP 'Virtual' Host Controller (VHCI) Driver
author:         Takahiro Hirofuchi
depends:        usbcore,usbip-core,usb-common
retpoline:      Y
intree:         Y
name:           vhci_hcd
vermagic:       6.6.36.3-microsoft-standard-WSL2 SMP preempt mod_unload modversions

Looks like modules are mounted by:

ubuntu@eleven:~$ systemctl list-units --type=mount
  UNIT                                                            LOAD   ACTIVE SUB     DESCRIPTION                                      
  ---cut---
  usr-lib-modules-6.6.36.3\x2dmicrosoft\x2dstandard\x2dWSL2.mount loaded active mounted /usr/lib/modules/6.6.36.3-microsoft-standard-WSL2
  ---cut---

@polyzen
Copy link
Author

polyzen commented Jul 18, 2024

Yes, this is with systemd. Maybe you misread, but I was able to load the module.

@github-actions github-actions bot mentioned this issue Jul 18, 2024
2 tasks
@polyzen
Copy link
Author

polyzen commented Jul 18, 2024

#11789 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants