-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
How to add IP address for minikube #10244
Comments
See https://minikube.sigs.k8s.io/docs/drivers/ssh/ on how to input the IP address to your existing virtual machine. If you don't already have one, you are better off using one of the other drivers and let minikube create it for you... |
I have the same error. Have you solved it? |
No. i couldn't find a solution for it till now! |
@Alenjojo if u find solution please send to us |
@Alenjojo Hi, 'minikube start --driver=ssh' is use for remote server. Maybe we need use "minikube start --driver=docker", And the docker need user rights。 |
It would be great if you could provide some more details, like how you are trying your providing your own VM ? Like the documentation says, it is a somewhat advanced feature when not able to use the usual drivers. You will have to install the operating system and the container runtime yourself, instead of letting minikube do it. The recommendation is to go with VirtualBox (or any hypervisor), until needing the more advanced drivers. |
OK, I think I can guess what happened here. No hypervisor or container engine was installed by the user (at all). And then the
That is a bug, I think. It needs to be opt-in, like the * although for a weird reason, "requires root" (but all drivers do) |
My os is “ubuntu 18.04”,docker version is 19.03.
This is another way to create a minikube cluster |
That is great, but it was not using --driver=ssh ? |
Created #10268 for when the driver got selected by default, when you didn't mean to use it.
Leaving this issue open for when you do want to use it, but "forgot" to provide the IP address.
Maybe the error message needs to be improved ?
Or provide a link to the documentation perhaps ?
|
So |
Yes. Should probably have some more examples of how to use key, port and user params as well.
Especially now, with the default keys and agent being broken* (although that is just temporary...) SSH(1)
SSH-AGENT(1)
* See #10289 But it ( We already have all the other hypervisor/VM drivers for that, i.e. like the traditional VirtualBox driver |
Supporting ssh-agent will take a while, so that will be scoped out (for now). To start with the usual key with minikube 1.17.0, use:
It's not possible to use ~/.ssh/id_rsa (or nothing), and not to use native (go) ssh. |
Hello What am i doing wrong here? sorry i am a beginner trying to learn K8s |
Just run |
mkdir flatcar
cd flatcar
wget https://stable.release.flatcar-linux.net/arm64-usr/current/flatcar_production_pxe.vmlinuz
wget https://stable.release.flatcar-linux.net/arm64-usr/current/flatcar_production_pxe_image.cpio.gz
qemu-system-aarch64 \
-M virt \
-m 2048M \
-smp 2 \
-cpu cortex-a57 \
-kernel flatcar_production_pxe.vmlinuz \
-initrd flatcar_production_pxe_image.cpio.gz \
-append "flatcar.first_boot=1 sshkey=\"ssh-rsa REDACTED brandonros@Brandons-MacBook-Air.local\"" \
-netdev user,id=mynet0,hostfwd=tcp::2222-:22 \
-device e1000,netdev=mynet0 \
-nographic minikube start --driver=ssh --container-runtime=cri-o --ssh-ip-address=127.0.0.1 --ssh-port=2222 --ssh-user=core --ssh-key='~/.ssh/id_rsa' --alsologtostderr --v=2
|
When i tart minikube i am facing the error saying that failed to start ssh bare metal machine and how to provide an IP into it.
All the software are upto date
`~$ minikube start --driver=ssh
😄 minikube v1.17.0 on Debian kali-rolling (vbox/amd64)
✨ Using the ssh driver based on existing profile
🧯 The requested memory allocation of 2200MiB does not leave room for system overhead (total system memory: 2996MiB). You may face stability issues.
💡 Suggestion: Start minikube with less memory allocated: 'minikube start --memory=2200mb'
👍 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
❌ Exiting due to GUEST_PROVISION: Failed to start host: config: please provide an IP address`
The text was updated successfully, but these errors were encountered: