If you do not have a minikube setup just use the below link to setup.
https://kubernetes.io/docs/setup/learning-environment/minikube/
It will help you connect to the minikube API server and schedule deployments.
curl -LO "https://storage.googleapis.com/kubernetes-release/release/
$(curl -s https://storage.googleapis.com/kubernetes-release/release/
stable.txt)/bin/linux/amd64/kubectl"
Once the setup is done open the network setting of minikube in VirtualBox and adds port forwarding to 8443. Port 51928 is mapped to 8443 of minikube in network settings below.
#kubernetes #minikube #kubectl #remote machine