Sitelet https://web.archive.org/web/20200917182843im_/https://github.com/minishift/minishift/issues/1337
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

Document VT-x/AMD-v requirement #1337

Open
coolbrg opened this issue Sep 1, 2017 · 8 comments
Open

Document VT-x/AMD-v requirement #1337

coolbrg opened this issue Sep 1, 2017 · 8 comments

Comments

@coolbrg
Copy link
Contributor

@coolbrg coolbrg commented Sep 1, 2017

With issues like this #1335, I feel we need to document enabling of VT-x/AMD-v prior to starting minishift.

Even minikube has documented in its requirement list.

I feel this is required for users who are trying first time any virtualization stuff.

@gbraad
Copy link
Member

@gbraad gbraad commented Sep 1, 2017 •

For some reason, it got rewritten and lost. I agree this needs to be documented again.


We need to add that only a single hypervisor per host is supported. Shared access to VTx can cause instability issues, and in other cases it prevents the second hypervisor to even start.

@chrisfalter
Copy link

@chrisfalter chrisfalter commented Sep 1, 2017

You should be aware that when Hyper-V is enabled, it prevents any other hypervisor (such as VirtualBox) from accessing VT-x., per this Technet discussion thread.

Some users may wish to install both Hyper-V and Virtual-Box, enabling only one at a time. Such users evidently can only use minishift with Virtualbox, as the presence of an installed (and disabled) Virtualbox means that minishift will try to use it, even when the user passes in the command-line argument "vm-driver=hyperv". That was certainly my experience, as mentioned in #1335

@LalatenduMohanty
Copy link
Member

@LalatenduMohanty LalatenduMohanty commented Sep 1, 2017

@budhrg agree lets add it to the documentation.

@gbraad
Copy link
Member

@gbraad gbraad commented Sep 1, 2017 •

@chrisfalter And this is expected. I know this is what people use to kinda play with having two hypervisors on Windows, But when VTx is disabled it means that VirtualBox does not run optimally, as it can not use the Virtualization Extensions. Hyper-V requires exclusive access to the VTx: https://technet.microsoft.com/en-us/library/cc731898(v=ws.11).aspx, https://technet.microsoft.com/en-us/library/hh831531(v=ws.11).aspx

In short; you can not install both at the same time (and expect them to work). This is a known limitation: https://en.wikipedia.org/wiki/Hyper-V#VT-x_handling I was unable to find the related TechNet articles, but if Wikipedia states it, it must be true ;-). The same goes for using VirtualBox or xhyve on macOS, and VirtualBox or KVM on Linux. You can not use both on the same host. See also: https://forums.virtualbox.org/viewtopic.php?f=6&t=69011#p328864 However, you might be able to try the BCDedit workaround: https://derekgusoff.wordpress.com/2012/09/05/run-hyper-v-and-virtualbox-on-the-same-machine/ But there is no support from us for this and it is not a setup we will ever consider or recommend. I personally test only on exclusive hypervisor setups (stability and consistency is important)

The behaviour as you mentioned is due to libmachine. When VirtualBox is installed alongside the requested 'other' hypervisor, libmachine willp ignore the passed vm-driver. I believe they handle the same reasoning for this due to the shared VTx limitation.

@LalatenduMohanty
Copy link
Member

@LalatenduMohanty LalatenduMohanty commented Sep 26, 2017

For KVM users, We should ask to cross check if kvm kernel module is loaded or not. If the kvm kernel module is not loaded that means either the required module is not loaded or VTx is not enabled in the BIOS.

$ sudo lsmod | grep kvm
[sudo] password for lmohanty: 
kvm_intel             200704  4
kvm                   598016  1 kvm_intel
irqbypass              16384  1 kvm
@LalatenduMohanty LalatenduMohanty added this to the v1.8.0 milestone Sep 26, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.8.0, v1.9.0 Oct 9, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.9.0, v1.10.0 Nov 2, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.10.0, v1.11.0 Nov 27, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.11.0, v1.12.0 Dec 13, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.12.0, v1.13.0, v1.14.0 Jan 18, 2018
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.14.0, v1.15.0 Feb 15, 2018
@LalatenduMohanty LalatenduMohanty self-assigned this Feb 15, 2018
@LalatenduMohanty LalatenduMohanty removed this from the v1.15.0 milestone Mar 7, 2018
@gbraad
Copy link
Member

@gbraad gbraad commented Apr 13, 2018

@robin-owen old, but very relevant issue

@gbraad
Copy link
Member

@gbraad gbraad commented Apr 13, 2018

BTW, support for VT-x can be tested for with msr-tools, but that would be an entry in the troubleshooting section.

@LalatenduMohanty LalatenduMohanty modified the milestones: v1.17.0, v1.18.0 Apr 19, 2018
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.18.0, v1.19.0 May 9, 2018
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.19.0, v1.20.0 May 31, 2018
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.20.0, v1.21.0 Jun 21, 2018
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.22.0, v1.23.0 Jul 13, 2018
@LalatenduMohanty LalatenduMohanty removed this from the v1.23.0 milestone Aug 1, 2018
@stale
Copy link

@stale stale bot commented Sep 30, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale label Sep 30, 2018
@stale stale bot removed the status/stale label Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.