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

Minikube Tunnel --bind-address fails on windows/hyperv #19460

Open
rlyshw opened this issue Aug 16, 2024 · 0 comments
Open

Minikube Tunnel --bind-address fails on windows/hyperv #19460

rlyshw opened this issue Aug 16, 2024 · 0 comments

Comments

@rlyshw
Copy link

rlyshw commented Aug 16, 2024

What Happened?

I am running on windows11, hyperv as the driver. I start the minikube with
minikube start --hyperv-virtual-switch bridge

I then attempt to expose a tunnel to the load-balancer with minikube tunnel --bind-address='*'

The tunnel fails to start with no indication as to exactly why. I have not been able to find any reference on how to solve the DRV_PORT_FORWARD error.

It seems like something is trying to exec hyperv but I can't tell if it's referenced internally (in the minikube vm) or external (my ps session). I'm not sure windows ships a ps utility just called hyperv, nor can I find reference to any linux cli utility named 'hyperv'. What am I doing wrong?

I'm posting here primarily because of the warning text, which does not actually include any "above advice". Maybe it should for this error?

PS> minikube tunnel --bind-address='*'
E0816 10:41:45.840236   33336 out.go:448] unable to execute error getting ssh port: get port 22 for "minikube": hyperv container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube: exec: "hyperv": executable file not found in %PATH%
stdout:

stderr:
: template: error getting ssh port: get port 22 for "minikube": hyperv container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube: exec: "hyperv": executable file not found in %!P(string=index)ATH&{%!
(string=index of untyped nil)}stdout:

stderr:
:1:92: executing "error getting ssh port: get port 22 for \"minikube\": hyperv container inspect -f \"'{{(index (index .NetworkSettings.Ports \"22/tcp\") 0).HostPort}}'\" minikube: exec: \"hyperv\": executable file not found in %PATH%\nstdout:\n\nstderr:\n" at <index .NetworkSettings.Ports "22/tcp">: error calling %!s(MISSING): %!w(MISSING) - returning raw string.

❌  Exiting due to DRV_PORT_FORWARD: error getting ssh port: get port 22 for "minikube": hyperv container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube: exec: "hyperv": executable file not found in %PATH%
stdout:

stderr:


╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                 │
│    😿  If the above advice does not help, please let us know:                                                   │
│    👉  https://github.com/kubernetes/minikube/issues/new/choose                                                 │
│                                                                                                                 │
│    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.                          │
│    Please also attach the following file to the GitHub issue:                                                   │
│    - C:\Users\RLYSHW~1.TOA\AppData\Local\Temp\minikube_tunnel_7b52c6b9692bdef292d16c62911b4f7fdc0c9c58_1.log    │
│                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Attach the log file

logs.txt

minikube_tunnel_7b52c6b9692bdef292d16c62911b4f7fdc0c9c58_1.log

Operating System

Windows

Driver

Hyper-V

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

1 participant