From 492f6eb6c31456385ec204d9f7950bc9670e48bc Mon Sep 17 00:00:00 2001 From: Ori Tzoran Date: Wed, 7 Aug 2019 01:10:50 +0300 Subject: [PATCH] streamline `grep` usage in minikube_before_you_begin (#15360) - tested on macOS with BSD's grep and GNU's. same flags, same output. - there are some 55 CPU flags on mac, so highlighting VMX makes it easier to grasp - using `egrep` on linux and `grep` on mac, not necessary - precision: the VT-x feature is NOT an OS feature... --- content/en/docs/tasks/tools/install-minikube.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/en/docs/tasks/tools/install-minikube.md b/content/en/docs/tasks/tools/install-minikube.md index f7c66a5dc8..278cf47b3b 100644 --- a/content/en/docs/tasks/tools/install-minikube.md +++ b/content/en/docs/tasks/tools/install-minikube.md @@ -18,17 +18,19 @@ This page shows you how to install [Minikube](/docs/tutorials/hello-minikube), a {{< tabs name="minikube_before_you_begin" >}} {{% tab name="Linux" %}} To check if virtualization is supported on Linux, run the following command and verify that the output is non-empty: -```shell -egrep --color 'vmx|svm' /proc/cpuinfo +``` +grep -E --color 'vmx|svm' /proc/cpuinfo ``` {{% /tab %}} + {{% tab name="macOS" %}} To check if virtualization is supported on macOS, run the following command on your terminal. ``` -sysctl -a | grep machdep.cpu.features +sysctl -a | grep -E --color 'machdep.cpu.features|VMX' ``` -If you see `VMX` in the output, the VT-x feature is supported on your OS. +If you see `VMX` in the output (should be colored), the VT-x feature is enabled in your machine. {{% /tab %}} + {{% tab name="Windows" %}} To check if virtualization is supported on Windows 8 and above, run the following command on your Windows terminal or command prompt. ```