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

The "virtualbox" driver should not be used with root privileges. #7659

Closed
ts7101990 opened this issue Apr 14, 2020 · 8 comments
Closed

The "virtualbox" driver should not be used with root privileges. #7659

ts7101990 opened this issue Apr 14, 2020 · 8 comments
Labels
kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful

Comments

@ts7101990
Copy link

I am trying to install minikube and run it. So I have followed the below steps:

  1. Installed Oracle Virtual box.
    VBoxManage -version --> 6.0.14_Ubuntur132055

  2. Installed Kubectl.
    kubectl version --client --> Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.1", GitCommit:"7879fc12a63337efff607952a323df90cdc7a335", GitTreeState:"clean", BuildDate:"2020-04-08T17:38:50Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

  3. Installed minikube but when I tried "minikube start" it didn't work. Please refer the below details for more information.

root@osboxes:/home/osboxes# minikube start
😄 minikube v1.9.2 on Ubuntu 19.10
✨ Using the virtualbox driver based on user configuration
🛑 The "virtualbox" driver should not be used with root privileges.
💡 If you are running minikube within a VM, consider using --driver=none:
📘 https://minikube.sigs.k8s.io/docs/reference/drivers/none/
root@osboxes:/home/osboxes# minikube start --driver=none;
😄 minikube v1.9.2 on Ubuntu 19.10
✨ Using the none driver based on user configuration
💣 Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path
root@osboxes:/home/osboxes# minikube start --driver=docker;
😄 minikube v1.9.2 on Ubuntu 19.10
✨ Using the docker driver based on user configuration
🛑 The "docker" driver should not be used with root privileges.
💡 If you are running minikube within a VM, consider using --driver=none:
📘 https://minikube.sigs.k8s.io/docs/reference/drivers/none/

Let me know what I can do next.

@tstromberg
Copy link
Contributor

tstromberg commented Apr 14, 2020

I would strongly encourage you to make a non-root user. The root user in UNIX is for administrative commands, not interactive developer tools.

We should see about removing the guidance for using --driver=none.

@tstromberg tstromberg changed the title Unable to start minikube in Ubuntu(it's installed in VM). The "virtualbox" driver should not be used with root privileges. Apr 14, 2020
@tstromberg tstromberg added needs-solution-message Issues where where offering a solution for an error would be helpful kind/support Categorizes issue or PR as a support question. labels Apr 14, 2020
@abdullaheldemerdash
Copy link

try to add --force

@medyagh
Copy link
Member

medyagh commented Jun 10, 2020

@ts7101990 we dont recommend using minikbue with root user. please reopen if you really think this is needed

@medyagh medyagh closed this as completed Jun 10, 2020
@vivekshwarup
Copy link

vivekshwarup commented Feb 25, 2021

Please try with
minikube start --driver=docker --force

@Sahilgupta942
Copy link

Please try with
minikube start --driver=docker --force

Thank you for the help.....after trying all other methods, this method worked

@pingdhinakaran
Copy link

its works! # sudo minikube start --force

@karinagrullon
Copy link

Please try with minikube start --driver=docker --force

Added "sudo" at the beginning too!

@Bhavesh-Muleva
Copy link

Don't write this command: minikube start --driver=(virtualbox or any other) as the root user
Just exit from the root user and execute this command as a non-root user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful
Projects
None yet
Development

No branches or pull requests

9 participants