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

status on git bash: Error getting host status: state: Failed to find the VM status #5359

Closed
zaidqureshi2 opened this issue Sep 15, 2019 · 3 comments
Labels
co/hyperv HyperV related issues kind/support Categorizes issue or PR as a support question. os/windows

Comments

@zaidqureshi2
Copy link

I installed minikube on my windows machine enabled with Hyper V. I already have docker installed on my computer.

I started the minikube with the following command in PowerShell: minikube start --vm-driver=hyperv --hyperv-virtual-switch "Default Switch" --memory=4096

Please note I used the Default Switch instead of creating a new switch.

After the installation, in powershell:

PS C:\WINDOWS\system32> minikube status host: Running kubelet: Running apiserver: Running kubectl: Correctly Configured: pointing to minikube-vm at 172xxxxxxx

PS C:\WINDOWS\system32> minikube version
minikube version: v1.3.1
commit: ca60a42

The issue I am having is when I run commands like minikube status or minikube docker-env or minikube dashboard they fail from Gitbash:

$ minikube status * X Error getting host status: state: Failed to find the VM status * * Sorry that minikube crashed. If this was unexpected, we would love to hear fro m you: - https://github.com/kubernetes/minikube/issues/new/choose

$ minikube docker-env * X Error getting host status: state: Failed to find the VM status * * Sorry that minikube crashed. If this was unexpected, we would love to hear fro m you: - https://github.com/kubernetes/minikube/issues/new/choose

But when I run those commands through powershell, they are successful.

PS C:\WINDOWS\system32> minikube docker-env $Env:DOCKER_TLS_VERIFY = "1" $Env:DOCKER_HOST = "tcp://172.17.205.130:2376" $Env:DOCKER_CERT_PATH = "C:\Users\zqureshi\.minikube\certs" # Run this command to configure your shell: # & minikube docker-env | Invoke-Expression

Is this because I did the initialization through Powershell instead of Gitbash?

@tstromberg
Copy link
Contributor

I wonder if your Git Bash process doesn't have high enough privileges to talk to Hyper-V?

Do you mind sharing this output?

minikube docker-env --alsologtostderr -v=8

@tstromberg tstromberg changed the title Minikube commands working through PowerShell not through GitBash (MINGW) status on git bash: Error getting host status: state: Failed to find the VM status Sep 16, 2019
@tstromberg tstromberg added co/hyperv HyperV related issues os/windows kind/support Categorizes issue or PR as a support question. labels Sep 16, 2019
@medyagh
Copy link
Member

medyagh commented Oct 23, 2019

@zaidqureshi2 do you still have this issue ? if yes, do you mind please sharing the info tstromberg asked ?

@sharifelgamal
Copy link
Collaborator

Hopefully it's OK if I close this - there wasn't enough information to make it actionable, and some time has already passed. If you are able to provide additional details, you may reopen it at any point by adding /reopen to your comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/hyperv HyperV related issues kind/support Categorizes issue or PR as a support question. os/windows
Projects
None yet
Development

No branches or pull requests

4 participants