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

no External vswitch found. A valid vswitch must be available for this command to run #5154

Closed
jpthirumalai opened this issue Aug 21, 2019 · 12 comments
Labels
co/hyperv HyperV related issues kind/support Categorizes issue or PR as a support question. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@jpthirumalai
Copy link

The exact command to reproduce the issue:
minikube start --vm-driver=hyperv

The full output of the command that failed:


C:\WINDOWS\system32>minikube start --vm-driver=hyperv

  • minikube v1.3.1 on Microsoft Windows 10 Pro 10.0.17763 Build 17763
  • Creating hyperv VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
    E0821 10:53:20.324513 108332 start.go:723] StartHost: create: precreate: no External vswitch found. A valid vswitch must be available for this command to run. Check https://docs.docker.com/machine/drivers/hyper-v/

X Unable to start VM

C:\WINDOWS\system32>

The output of the minikube logs command:

The operating system version:
Microsoft Windows [Version 10.0.17763.678]

@nascarj
Copy link

nascarj commented Aug 21, 2019

@sharifelgamal
Copy link
Collaborator

Yes, you need to create an external switch in Hyper-V as specified in the documentation in @speedysocks30 comment, and then specify the name of the switch in minikube start with the --hyperv-virtual-switch parameter.

@sharifelgamal sharifelgamal added kind/support Categorizes issue or PR as a support question. co/hyperv HyperV related issues priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Aug 21, 2019
@jpthirumalai
Copy link
Author

jpthirumalai commented Aug 22, 2019 via email

@tstromberg tstromberg changed the title Running minikube start is not working no External vswitch found. A valid vswitch must be available for this command to run Aug 22, 2019
@tstromberg tstromberg removed the kind/support Categorizes issue or PR as a support question. label Aug 22, 2019
@tstromberg
Copy link
Contributor

@jpthirumalai - Do you mind sharing the output of this PowerShell command:

Get-VMSwitch -SwitchType External

I would also like to see the command-line you use that includes --hyperv-virtual-switch, as well as the output of it. Thanks!

@tstromberg tstromberg added triage/needs-information Indicates an issue needs more information in order to work on it. kind/support Categorizes issue or PR as a support question. labels Aug 22, 2019
@jpthirumalai
Copy link
Author

jpthirumalai commented Aug 22, 2019

Get-VMSwitch -SwitchType External

Name        SwitchType NetAdapterInterfaceDescription
----        ---------- ------------------------------
switch4kube External   Intel(R) Ethernet Connection (4) I219-LM
Command used to start
minikube start --vm-driver=hyperv --hyperv-virtual-switch=switch4kue

And the output is

minikube v1.3.1 on Microsoft Windows 10 Pro 10.0.17763 Build 17763
Creating hyperv VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
E0821 10:53:20.324513 108332 start.go:723] StartHost: create: precreate: no External vswitch found. A valid vswitch must be available for this command to run. Check https://docs.docker.com/machine/drivers/hyper-v/

@jpthirumalai
Copy link
Author

Tried steps from resolved issue #1221
Also highlighted in One other Site
Summary:
1, Open "Window Security"
2, Open "App & Browser control"
3, Click "Exploit protection settings" at the bottom
4, Switch to "Program settings" tab
5, Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it
6, Click "Edit"
7, Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"
8, Start vmcompute from powershell "net start vmcompute"


But not working for me

@tstromberg
Copy link
Contributor

@jpthirumalai - Is it possible that there is a typo in your minikube command? I noticed it says switch4kue, whereas the name appears to be switch4kube?

@tstromberg
Copy link
Contributor

@author: I believe this issue is now addressed by minikube v1.4, as it no longer requires an external virtual switch. If you still see this issue with minikube v1.4 or higher, please reopen this issue by commenting with /reopen

Thank you for reporting this issue!

@aditya-bhuyan
Copy link

/reopen

Find this issue in latest version of minikube 1.4.0

@k8s-ci-robot
Copy link
Contributor

@aditya-bhuyan: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Find this issue in latest version of minikube 1.4.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Septem151
Copy link

/reopen

This issue is present in v1.12.0

@k8s-ci-robot
Copy link
Contributor

@Septem151: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

This issue is present in v1.12.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

6 participants