Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube issue when not providing an IP address for ssh driver #10266

Closed
tejas0026 opened this issue Jan 26, 2021 · 6 comments
Closed

minikube issue when not providing an IP address for ssh driver #10266

tejas0026 opened this issue Jan 26, 2021 · 6 comments
Labels
co/generic-driver kind/support Categorizes issue or PR as a support question. os/linux

Comments

@tejas0026
Copy link

  • Starting control plane node minikube in cluster minikube
    ! StartHost failed, but will try again: config: please provide an IP address
  • Failed to start ssh bare metal machine. Running "minikube delete" may fix it: config: please provide an IP address

X Exiting due to GUEST_PROVISION: Failed to start host: config: please provide an IP address
*

@afbjorklund afbjorklund added co/generic-driver os/linux kind/support Categorizes issue or PR as a support question. labels Jan 26, 2021
@afbjorklund
Copy link
Collaborator

Hmm, this is the same question as in #10244 - wonder if the documentation needs updating ?

https://minikube.sigs.k8s.io/docs/drivers/ssh/

@afbjorklund afbjorklund changed the title minikube issue minikube issue when providing an IP address for ssh driver Jan 26, 2021
@afbjorklund
Copy link
Collaborator

afbjorklund commented Jan 26, 2021

Added PR #10269 for this issue, i.e. when it selected the "ssh" driver by accident because nothing else was available

X Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/

@mdtnpll
Copy link

mdtnpll commented Jan 27, 2021

Open a PowerShell console as Administrator, and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

@afbjorklund afbjorklund changed the title minikube issue when providing an IP address for ssh driver minikube issue when not providing an IP address for ssh driver Jan 28, 2021
@afbjorklund
Copy link
Collaborator

Fixed in minikube 1.17.1.

Now it will not pick the "ssh" driver by default, but instead try to find an available driver.

* Unable to pick a default driver. Here is what was considered, in preference order:
  - vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
  - docker: Not installed: exec: "docker": executable file not found in $PATH
  - kvm2: Not installed: exec: "virsh": executable file not found in $PATH
  - none: Not installed: exec: "iptables": executable file not found in $PATH
  - podman: Not installed: exec: "podman": executable file not found in $PATH
  - virtualbox: Not installed: unable to find VBoxManage in $PATH

X Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/

If you do want to use the new "ssh" driver, you need to select it using --driver=ssh

@Nagaraja-H
Copy link

  1. install docker engine
  2. run sudo usermod -aG docker $USER
  3. newgrp docker
  4. minikube start --driver=docker

It worked for me

@RoFz
Copy link

RoFz commented May 5, 2022

I was also getting:

I0505 15:25:48.157164 48952 main.go:130] libmachine: (minikube) DBG | executing: /Applications/VMware Fusion.app/Contents/Public/vmrun deleteVM /Users/rofz/.minikube/machines/minikube/minikube.vmx nogui
W0505 15:25:48.306739 48952 out.go:241] 🤦 StartHost failed, but will try again: creating host: create: Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

/Applications/VMware\ Fusion.app/Contents/Public/vmrun start /Users/rofz/.minikube/machines/minikube/minikube.vmx nogui was saying only this:

2022-05-05T15:29:56.331| ServiceImpl_Opener: PID 50044
Error: The operation was canceled

But when executed without the nogui parameter (opening the minikube.vmx from the GUI also works), I've got this:

Memory size 5433 MB is not a multiple of 4 MB.
Module 'MainMemEarly' power on failed. Failed to start the virtual machine

After adding --memory=6144 (or any other amount divisible by 4) the cluster starts fine.

Why does minikube choose an incompatible amount of RAM (5433) for its node(s)? I'm deploying a three-node cluster.

I0505 15:23:35.835430 48952 start.go:126] createHost starting for "" (driver="vmware")
I0505 15:23:35.883436 48952 out.go:203] 🔥 Creating vmware VM (CPUs=2, Memory=5433MB, Disk=20000MB) ...
I0505 15:23:35.883590 48952 main.go:130] libmachine: Found binary path at /usr/local/bin/docker-machine-driver-vmware
I0505 15:23:35.883622 48952 main.go:130] libmachine: Launching plugin server for driver vmware
I0505 15:23:35.893550 48952 main.go:130] libmachine: Plugin server listening at address 127.0.0.1:57818
I0505 15:23:35.893961 48952 main.go:130] libmachine: () Calling .GetVersion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/generic-driver kind/support Categorizes issue or PR as a support question. os/linux
Projects
None yet
Development

No branches or pull requests

5 participants