<p>I installed minikube as instructed here <a href="https://github.com/kubernetes/minikube/releases" rel="nofollow">https://github.com/kubernetes/minikube/releases</a>
and started with with a simple <code>minikube start</code> command. </p>

<p>But the next step, which is as simple as <code>kubectl get pods --all-namespaces</code> fails with</p>

<p><code>Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout</code></p>

<p>What did I miss?</p>

<p>I faced a similar issue on win7 when changed work environment, as you said it is working fine at home but not working at office, high chance it caused by firewall policy, cannot pass TLS verification.</p>

<p>Instead of waste time on troubleshoot(sometimes nothing to do if you cannot turn off firewall), if you just want to test local minikube cluster, would suggest to disable TLS verification.</p>

<p>This is what I have done:</p>

<pre><code># How to disable minikube TLS verification 

## disable TLS verification 
$ VBoxManage controlvm minikube natpf1 k8s-apiserver,tcp,127.0.0.1,8443,,8443
$ VBoxManage controlvm minikube natpf1 k8s-dashboard,tcp,127.0.0.1,30000,,30000
$ kubectl config set-cluster minikube-vpn --server=https://127.0.0.1:8443 --insecure-skip-tls-verify
$ kubectl config set-context minikube-vpn --cluster=minikube-vpn --user=minikube
$ kubectl config use-context minikube-vpn

## test kubectl
$ kubectl get pods

## enable local docker client
$ VBoxManage controlvm minikube natpf1 k8s-docker,tcp,127.0.0.1,2374,,2376
$ eval $(minikube docker-env) 
$ unset DOCKER_TLS_VERIFY
$ export DOCKER_HOST="tcp://127.0.0.1:2374"
$ alias docker='docker --tls' 

## test local docker client 
$ docker ps 

## test minikube dashboard
curl http://127.0.0.1:30000
</code></pre>

<p>Also I make a <a href="https://github.com/robertluwang/docker-hands-on-guide/blob/master/minikube-no-tls-verify.md" rel="nofollow noreferrer">small script</a> for this for your reference.</p>

<p>Hope it is helpful for you.</p>
