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

on wsl2, minikube deleted the folder and files in /proc/sys/fs/binfmt_misc/WSLInterop, caused the cannot run windows APP in wsl2 #17756

Closed
wy6688 opened this issue Dec 11, 2023 · 3 comments
Labels
co/docker-driver Issues related to kubernetes in container lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. os/wsl-windows microsoft wsl related issues triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@wy6688
Copy link

wy6688 commented Dec 11, 2023

What Happened?

on wsl2, minikube deleted the folder and files in /proc/sys/fs/binfmt_misc/WSLInterop, caused the wsl2 cannot run windows APP

Attach the log file

no logs. reproduce step:

  1. run wsl --shutdown on windows terminal
  2. run wsl2 ubuntu 22.04.
  3. in ubuntu 22.04 terminal: run:
    $ cat /proc/sys/fs/binfmt_misc/WSLInterop
    enabled
    interpreter /init
    flags: PF
    offset 0
    magic 4d5a
  4. run "minikube start --driver=docker"
  5. run "minikube stop" (optional step)
  6. run "cat /proc/sys/fs/binfmt_misc/WSLInterop" again:
    the result will be the following:
    cat: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory

this will cause my cmd in wsl2 "/mnt/c/windows/explorer.exe" out the following error:
"-bash: /mnt/c/windows/explorer.exe: cannot execute binary file: Exec format error"

Operating System

Ubuntu

Driver

Docker

@afbjorklund
Copy link
Collaborator

afbjorklund commented Dec 11, 2023

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container triage/duplicate Indicates an issue is a duplicate of other open issue. os/wsl-windows microsoft wsl related issues labels Dec 11, 2023
@wy6688
Copy link
Author

wy6688 commented Dec 12, 2023

minikube version

minikube version: v1.32.0
commit: 8220a6e

This bug appeared in latest minikube version

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. os/wsl-windows microsoft wsl related issues triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

4 participants