<p>I have installed <strong>kubectl</strong> and <strong>minikube</strong> on my windows environment, but when running <strong>minikube start</strong> it creates the VM on vitualBox but I got this error when it trying to prepare kubernetes on Docker.</p>

<pre><code>C:\Users\asusstrix&gt;minikube start

* minikube v1.6.0 on Microsoft Windows 10 Home 10.0.18362 Build 18362
* Selecting 'virtualbox' driver from user configuration (alternates: [])
* Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
* Preparing Kubernetes v1.17.0 on Docker '19.03.5' ...
*
X Failed to setup kubeconfig: writing kubeconfig: Error writing file C:\Users\asusstrix/.kube/config: error acquiring lock for C:\Users\asusstrix/.kube/config: timeout acquiring mutex
*
* Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
  - https://github.com/kubernetes/minikube/issues/new/choose
</code></pre>

SWEEPY
<p>According to the official documentation:</p>

<blockquote>
  <p>To confirm successful installation of both a hypervisor and Minikube,
  you can run the following command to start up a local Kubernetes
  cluster: </p>
  
  <p><code>minikube start --vm-driver=&lt;driver_name&gt;</code></p>
  
  <p>For setting the --vm-driver with minikube start, enter the name of the
  hypervisor you installed in lowercase letters where  is
  mentioned below. A full list of --vm-driver values is available in
  specifying the <a href="https://kubernetes.io/docs/setup/learning-environment/minikube/#specifying-the-vm-driver" rel="nofollow noreferrer">VM driver
  documentation</a>.</p>
</blockquote>

<p>So in your case it would be: <code>minikube start --vm-driver=&lt;virtualbox&gt;</code></p>

<p>If you want ot make sure your previous steps were correct you can go through the whole <a href="https://kubernetes.io/docs/tasks/tools/install-minikube/" rel="nofollow noreferrer">tutorial</a>.</p>

<p>Please let me know if that helped. </p>

<p><strong>EDIT:</strong></p>

<p>There is a <a href="https://github.com/kubernetes/minikube/issues/6058" rel="nofollow noreferrer">Github thread</a> showing the same issue.</p>

<p>Basically you still should use <code>minikube start --vm-driver=&lt;driver_name&gt;</code> but it will not work with v1.6.0 yet. Consider downgrading to v1.5.2 instead. </p>
