<p>Trying to start minikube on windows 10 but it is failing with below given error. Tried deleting context, config file itself and recreated it but issue persists.</p>

<p>X Failed to setup kubeconfig: writing kubeconfig: <code>Error writing file C:\Users\&lt;user name&gt;/.kube/config: error acquiring lock for C:\Users\&lt;user name&gt;/.kube/config: timeout acquiring mutex</code></p>

<p>Thank you.</p>

Baiju
<p>I have just downloaded <a href="https://github.com/kubernetes/minikube/releases/download/v1.5.2/minikube-windows-amd64.exe" rel="nofollow noreferrer">minikube-windows-amd64.exe</a>, copied to my <code>PATH</code> and started with <code>minikube start --vm-driver=virualbox</code>.</p>

<pre><code>C:\WINDOWS\system32&gt;minikube start --vm-driver=virtualbox
* minikube v1.5.2 on Microsoft Windows 10 Enterprise 10.0.18362 Build 18362
* Downloading VM boot image ...

minikube-v1.5.1.iso: 143.76 MiB / 143.76 MiB [] 100.00% 10.15 MiB 

* Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
* Preparing Kubernetes v1.16.2 on Docker '18.09.9' ...
* Downloading kubeadm v1.16.2
* Downloading kubelet v1.16.2
* Pulling images ...
* Launching Kubernetes ...
* Waiting for: apiserver
* Done! kubectl is now configured to use "minikube"

C:\WINDOWS\system32&gt;minikube status
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

C:\WINDOWS\system32&gt;
</code></pre>

<p>It seems that <strong>the issue is with today's (Dec-11-2019) release of  v1.6.0</strong> .</p>

<pre><code>C:\WINDOWS\system32&gt;minikube start --vm-driver=virtualbox
* minikube v1.6.0 on Microsoft Windows 10 Enterprise 10.0.18362 Build 18362
* Selecting 'virtualbox' driver from user configuration (alternates: [hyperv])
* Tip: Use 'minikube start -p &lt;name&gt;' to create a new cluster, or
'minikube delete' to delete this one.
* Using the running virtualbox "minikube" VM ...
* Waiting for the host to be provisioned ...
* Preparing Kubernetes v1.17.0 on Docker '19.03.5' ...
*
X Failed to setup kubeconfig: writing kubeconfig: Error writing file
C:\Users\&lt;username&gt;/.kube/config: error acquiring lock for
C:\Users\&lt;username&gt;/.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>

<p>I have submitted it on <a href="https://github.com/kubernetes/minikube/issues/6058" rel="nofollow noreferrer">minikube GitHub Issue Tracker</a>. </p>

<p><strong>EDIT 12-Dec-2019:</strong></p>

<p>v1.6.1 is now available with this bug fixed: <a href="https://github.com/kubernetes/minikube/releases/tag/v1.6.1" rel="nofollow noreferrer">https://github.com/kubernetes/minikube/releases/tag/v1.6.1</a></p>
