Skip to content

Failure of minikube to connect with the virtual machine #21787

@Tadiwanashe39

Description

@Tadiwanashe39

What Happened?

After carefully installed the K8s and minikube and run the necessary command .
minikube failed to connect to the virtual machine displaying the following error:

  • minikube v1.37.0 on Microsoft Windows 11 Pro 10.0.22631.5549 Build 22631.5549
    E1024 09:36:31.710225 16268 start.go:829] api.Load failed for minikube: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
  • Using the virtualbox driver based on existing profile
  • Starting "minikube" primary control-plane node in "minikube" cluster
  • Creating virtualbox VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
    ! Failing to connect to https://registry.k8s.io/ from inside the minikube VM
  • To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
  • Preparing Kubernetes v1.34.0 on Docker 28.4.0 ...
  • Configuring bridge CNI (Container Networking Interface) ...
    • Using image gcr.io/k8s-minikube/storage-provisioner:v5
  • Verifying Kubernetes components...
    ! Enabling 'default-storageclass' returned an error: running callbacks: [sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.34.0/kubectl apply -f /etc/kubernetes/addons/storageclass.yaml: Process exited with status 1
    stdout:

stderr:
error: error validating "/etc/kubernetes/addons/storageclass.yaml": error validating data: failed to download openapi: Get "https://localhost:8443/openapi/v2?timeout=32s": net/http: request canceled (Client.Timeout exceeded while awaiting headers); if you choose to ignore these errors, turn validation off with --validate=false
]

  • Enabled addons: storage-provisioner

X Exiting due to GUEST_START: failed to start node: wait 6m0s for node: wait for healthy API server: apiserver healthz never reported healthy: cluster wait timed out during healthz check

log.txt

Attach the log file

please I kindly request your help to resolve this issue

Operating System

Windows

Driver

VirtualBox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions