<p>I am new in kubernetes world and would like to try it out. So I've installed the minikube according to intallation instructions <a href="https://kubernetes.io/docs/tasks/tools/install-minikube/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tools/install-minikube/</a>.
My environment looks as follows:</p>

<p><a href="https://i.stack.imgur.com/a5UWU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a5UWU.png" alt="enter image description here"></a></p>

<p>The installation was successful and I have access to minikube. With the statement for example, <code>kubectl get services</code> I've got some output on the terminal console. Everthing works as expected on baremetal installation.   </p>

<p>Now, I've installed Xubuntu in a virtual machine and would like to access minikube via the terminal from Xubuntu.  </p>

<p>In addition, I've installed <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tools/install-kubectl/</a> on Xubuntu and when I try to start it, it says <code>localhost:8080 not found</code>? </p>

<p>How to setup the virtual machine to get the communication between Xubuntu and minikube working?   </p>

<p>Hint, I use virtual box.</p>

softshipper
<p>If I understood the setup, both the Xubuntu and minikube VMs are VirtualBox VMs on the same (baremetal) host?</p>

<p>For one, the two VMs need to be able to "talk" to each other with proper <a href="https://www.virtualbox.org/manual/ch06.html" rel="nofollow noreferrer">networking</a>. Here is a related question: <a href="https://superuser.com/a/119741">https://superuser.com/a/119741</a></p>

<p>This will make it possible for <code>kubectl</code> to connect to the Kubernetes API server in the minikube VM. You'd have to edit kubectl's configuration in the Xubuntu VM to specify the IP of the minikube's VM and security.</p>

<p>The Kubernetes Service(s) should be <a href="https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types" rel="nofollow noreferrer">published</a> to be accessible from outside the Kubernetes cluster/minikube, say, as <a href="https://kubernetes.io/docs/concepts/services-networking/service/#nodeport" rel="nofollow noreferrer">NodePort</a> or via <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">Ingress</a>. That should make a Service on minikube accessible by the minikube VMs IP and NodePort's port or Ingress' port. </p>

<p>By setting up <a href="https://www.virtualbox.org/manual/ch06.html#natforward" rel="nofollow noreferrer">port forwarding/NAT</a> in VirtualBox, the Kubernetes API and other Services on minikube will be accessible over <code>localhost</code> from the baremetal host.</p>
