-
Notifications
You must be signed in to change notification settings - Fork 823
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
wsl2: using custom kernel on arm64 #4802
Comments
Are you by chance using an ARM64 device? Could you ensure you run WSL.exe --shutdown after adding the entry? |
Yup, Surface Pro X to be specific.
Yes, the shutdown command is run on every config update. |
Looking at the logs (via https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#start-collecting-logs), the only ErrorCode is 15003. What does this mean? What should I be looking for? In this case, I removed Are there specific events to look for related to the handling of custom kernel? |
The closest thing I could find in Event Viewer related to Both success/fail cases show the exact same "kernel" path in the VmBootSourceResult:
I'm guessing there's another mapping that WSL2 would've done before launching the VM. |
@zlim - Unfortunately the custom kernel .wslconfig option is not supported on ARM64 yet. We are looking to add support for this in the future. |
@benhillis - thanks for looking into adding support. |
Is there any other way to use the custom kernel on ARM64? |
|
Thanks for your help. |
I don't know what happens in ARM64 but I was doing those steps at first of WSL2 release (i.e. when custom kernel was not officially supported). |
Thanks for your info. Maybe this error is ARM64 specific |
2021 update. The .wslconfig kernel entry is still not being honored, but I was able to run a custom kernel replacing the kernel file under lxss. I didn't need a newer kernel, I just needed the same kernel, but with extra modules and supported features (from https://github.com/rpasek/usbip-wsl2-instructions) . The trick was to copy the current config and apply my chances on top of it with The kernel version I used is 5.4.72 from the output file: |
Feature added in https://github.com/microsoft/WSL/releases/tag/1.1.5. |
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.19041.1]
Attempting to use a custom kernel, per https://github.com/MicrosoftDocs/WSL/releases/tag/18947.
The following is added to
.wslconfig
:(In PS, confirmed
C:\\Users\\z\\wsl2\\Image
is a valid path.)WSL2 doesn't pick up the custom kernel as configured in
.wslconfig
.confirmed WSL2 only shows two processors.
Image
is valid image. WSL2 boots with custom kernel whenImage
is manually dropped in as replacement ofC:\Windows\System32\lxss\tools\kernel
.The text was updated successfully, but these errors were encountered: