minishift: Virtual Switch not found with Hyper V on Windows

General information

  • Minishift version: v1.20.0+1bd6d5c
  • OS: Windows
  • Hypervisor: Hyper-V

Steps to reproduce

  1. Install Hyper V feature on Windows 10
  2. Copy minishift.exe to C:\minishift and add it to PATH
  3. Add to environment variables a MINISHIFT_USERNAME and MINISHIFT_PASSWORD with my OpenHat subscription credentials
  4. On git bash run minishift start --memory 8G --cpus 2

Expected

Openshift starting correctly

Actual

Checking if Hyper-V driver is configured to use a Virtual Switch ...
   'ExternalVmSwitch' ... FAIL

Logs

-- minishift version: v1.20.0+1bd6d5c
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://mirror.openshift.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.9.31' is valid ... OK
-- Checking if requested OpenShift version 'v3.9.31' is supported ... OK
-- Checking if requested hypervisor 'hyperv' is supported on this platform ... OK
-- Checking if Hyper-V driver is installed ... OK
-- Checking if Hyper-V driver is configured to use a Virtual Switch ...
   'ExternalVmSwitch' ... FAIL
   See the 'Setting Up the Virtualization Environment' topic (https://docs.openshift.org/latest/minishift/getting-started/setting-up-virtualization-environment.html) for more information

Things I tried:

No luck, same result. What am I missing here?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Running powershell as Administrator fixed that problem for me. I was getting the same error.

Launching the command prompt in Administrator mode solves the problem

for minishift

minishift config set hyperv-virtual-switch "External VM Switch"

for minikube

minikube config set hyperv-virtual-switch "External VM Switch"