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
- Install Hyper V feature on Windows 10
- Copy minishift.exe to C:\minishift and add it to PATH
- Add to environment variables a MINISHIFT_USERNAME and MINISHIFT_PASSWORD with my OpenHat subscription credentials
- 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:
- As per https://docs.openshift.org/latest/minishift/getting-started/setting-up-virtualization-environment.html I created a Virtual Switch on Hyper-V Manager as External, associated to my wireless network card and called ExternalVmSwitch
- As per https://github.com/minishift/minishift/issues/2635 created an environment variable MINISHIFT_HYPERV_VIRTUAL_SWITCH with value ExternalVmSwitch because I tried with HYPERV_VIRTUAL_SWITCH and the logs said it was deprecated.
- As per https://docs.openshift.org/latest/minishift/getting-started/setting-up-virtualization-environment.html I run
minishift config set hyperv-virtual-switch "ExternalVmSwitch"orminishift config set hyperv-virtual-switch ExternalVmSwitchand in any case I get a[Virtual Switch not found]
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)
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
for minikube