-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
VM_BOOT_FAILED_HYPERV_ENABLED message should mention --driver=hyperv as a solution #4783
Comments
Try |
Thank you for your answer!
goroutine 1 [running]: |
Ouch. Yeah, I suppose that's a bug in the hyperv driver :-( Trying to run this PowerShell command: @(Get-Module -ListAvailable hyper-v).Name | Get-Unique But apparently doesn't like the response. Hopefully someone that knows Windows is able to help out... |
In case someone is blocked by the same problem I found a solution. You should run the command in Windows Power Shell with administrator rights. Also, you should configure Virtual Switch to your Hyper-V following this steps. And after that you will be able to execute minikube start by specifying the Virtual Switch: minikube start --vm-driver hyperv --hyperv-virtual-switch "Primary Virtual Switch". But I still have problems. So I wonder am I doing something wrong ? Why is this so hard? 😥 |
We will have a check for this in the future (administrator for hyperv) Previously Hyper-V (in Minikube) has suffered from a lack of tests and shortage of Windows developers... Reference: "hyperv: Assert that the user has correct permissions" #4745 |
Thanks Ivanka. Your solution was extremely helpful. As a result, I got through this tutorial: https://kubernetes.io/docs/tutorials/hello-minikube Except for this: X disable failed: [disabling addon deploy/addons/heapster/influx-grafana-rc.yaml.tmpl: Process exited with status 1]
Also minikube stop seems to hang now. |
While this issue is a good collection of friction points for Hyper-V usage, the path toward resolving the first item would be improving the string here: minikube/pkg/minikube/problem/err_map.go Line 142 in 4178c44
It should also point to documentation for setting up minikube & HyperV. If you have a suggested way of wording this to help users, I'd be eager to review a PR that makes it happen. Help wanted! |
@ivankatashkova - Thanks for reporting the issue! Could you please tell us more about the issues you are facing after starting minikube on Hyper-V? Is the initial issue resolved or is Minikube still not starting? @tstromberg - I think we should have a section on that documentation regarding Windows. This issue is happening because by default, the driver which is passed (when minikube is started only using minikube/cmd/minikube/cmd/start.go Line 166 in 6552436
I can think of the following 2 ways -
What do you think? |
Hi, everyone! After resolving this issue I was blocked by hanging process on Thanks and best regards, |
@lewijw - Thanks for reporting the issue ! I have created a new issue (#4848) for this and I am also able to reproduce this on my machine. @ivankatashkova - Glad to hear that the issue got resolved! I have created an issue (#4846) to add the documentation for both Hyper-V and Virtualbox setup with minikube on Windows. Feel free to take a stab at it :) -Pranav |
Same as @hh186011, just run as admin: -minikube delete It solved the issue. |
I'm following a tutorial from kubernetes.io to install Kubernetes with minikube for Windows. The first time I executed minikube start I got the missing VirtualBox issue, but I actually want to use Hyper-V. After installing VirtualBox, now I get the other known issue with Hyper-V. Please find more information below.
The exact command to reproduce the issue:
minikube start
The full output of the command that failed:
$ minikube start
E0717 13:02:10.679444 20092 start.go:559] StartHost: create: precreate: This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)
X Unable to start VM
Error: [VM_BOOT_FAILED_HYPERV_ENABLED] create: precreate: This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)
Advice: Disable Hyper-V when you want to run VirtualBox to boot the VM
Related issues:
If the above advice does not help, please let us know:
The output of the
minikube logs
command:The operating system version:
minikube version: v1.2.0
Windows 10 Enterprise
The text was updated successfully, but these errors were encountered: