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

Support for Hyper-V on Windows #465

Closed
RaeesBhatti opened this issue Aug 9, 2016 · 18 comments
Closed

Support for Hyper-V on Windows #465

RaeesBhatti opened this issue Aug 9, 2016 · 18 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@RaeesBhatti
Copy link
Contributor

I have Hyper-V enabled on my Windows for Docker. When I try to run minkube cluster, it says that I have to disable Hyper-V for VirtualBox to work or use Hyper-V as the driver but Hyper-V is not supported by minikube.

Starting local Kubernetes cluster...
E0809 14:08:01.300772    8324 start.go:78] Error starting host:  Error creating. Error with pre-create check: "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)"

I purpose that Hyper-V be supported by minikube as the default driver for Windows.

@jimmidyson
Copy link
Member

We can easily enable hyperv, will send in a PR soon-ish unless someone else gets there soon. As for making it default, please comment on #270

@dlorenc
Copy link
Contributor

dlorenc commented Aug 11, 2016

We're still doing some testing here, we should get it in soon.

@dlorenc
Copy link
Contributor

dlorenc commented Aug 11, 2016

ref #476

@dlorenc dlorenc added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 11, 2016
@RaeesBhatti
Copy link
Contributor Author

Wohoooo!!! @dlorenc can you please make a new release with this update!

@dlorenc
Copy link
Contributor

dlorenc commented Aug 24, 2016

We'll try to get a release out early next week. In the meantime we have a CI job that does builds at each PR. You can grab this commit here: (467 is the PR id)

https://storage.googleapis.com/minikube-builds/467/minikube-windows-amd64.exe

@dlorenc
Copy link
Contributor

dlorenc commented Aug 24, 2016

We should add some hyper-v docs to the drivers documentation page. I think @aaron-prindle had to do some manual configuration with the virtual switch.

@jacktheruck
Copy link

We're waiting for new release with this update!
Also you're making install VM box a requirement for toolbox running and we don't need it while we have hyper-v installed. Please slove this problem cause no one want to waste some space on non-used apps.

@dlorenc
Copy link
Contributor

dlorenc commented Sep 1, 2016

We're going to cut 0.9 later today!

@rodcloutier
Copy link
Contributor

Any progress on this? Is it supported with 0.12?

@RaeesBhatti
Copy link
Contributor Author

@rodcloutier It was supposed to be fixed but there are some new issues with minikube, some are probably not related to Hyper-V but some are.
Take a look at #754 , #747 and #518

@melvincabatuan
Copy link

melvincabatuan commented Nov 3, 2016

I have a similar issue on Windows 10 pro:

$ docker-machine create -d virtualbox default
Running pre-create checks...
Error with pre-create check: "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)"

Without the vtx check though, it's stuck on '(default) Waiting for an IP...'

$ docker-machine create -d virtualbox --virtualbox-no-vtx-check default
Running pre-create checks...
Creating machine...
(default) Copying C:\Users\cobalt\.docker\machine\cache\boot2docker.iso to C:\Users\cobalt\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Waiting for an IP...

@jsdev
Copy link

jsdev commented Jan 4, 2017

=(

@wasimbloch
Copy link

Any update on this? I would like to run Minikube on Windows 10 64 bit machine with Hyper-V (not VirtualBox). Thanks

@odannyboy000
Copy link

Is Hyper-V supported yet? I get the error: "The connection to the server localhost:8080 was refused - did you specify the right host or port?" with a clean install of kubectl and docker-ce

@aaron-prindle
Copy link
Contributor

Yes, it is currently supported. If you can post a new github issue with some information on your virtual switch configuration and how you attempted to start minikube we can help investigate the issue that you are having.

@srivathsah
Copy link

@aaron-prindle You have mentioned minikube is supported with Hyper-V , however I am not able to use it with the latest release that was done only yesterday. I still get hyper-v not a valid driver message , What am I missing

@mreddimasi
Copy link

mreddimasi commented Jul 10, 2017

@srivathsah I used the following command on Windows 10 Pro, this is with version 0.20.0 of minikube

minikube start --vm-driver=hyperv --hyperv-virtual-switch="Primary Virtual Switch"

You would need to replace the "Primary Virtual Switch" with whatever you have, It worked for me on my local machine, hope this helps.

@stanspotts
Copy link

I'm running 0.20.0 and have Hyper-V and the added virtual switch, but when I try to start it still thinks I'm using VirtualBox:
$ minikube start --vm-driver=hyperv --hyperv-virtual-switch="Primary Virtual Switch"
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
E0720 12:33:22.991955 10436 start.go:127] Error starting host: Error starting stopped host: Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm minikube --type headless failed:
VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:01.200078 Power up failed (vrc=VERR_VMX_NO_VMX, rc=E_FAIL (0X80004005)).

Retrying.
E0720 12:33:22.994888 10436 start.go:133] Error starting host: Error starting stopped host: Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm minikube --type headless failed:
VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests