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

FailFast if virtualbox is not installed. #5821

Closed
govargo opened this issue Nov 3, 2019 · 2 comments
Closed

FailFast if virtualbox is not installed. #5821

govargo opened this issue Nov 3, 2019 · 2 comments
Assignees
Labels
co/virtualbox kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@govargo
Copy link
Contributor

govargo commented Nov 3, 2019

This is related to #5478

The exact command to reproduce the issue:

If we start minikube while selecting virtualbox without installing virtualbox, of course the minikube start fail.

$ minikube start --vm-driver=virtualbox

The error message says the virtualbox install suggestion.
But minikube keeps starting virtualbox(Of course this is failing.)

We need to detect after the virtualbox is not installed and minikube should exit with the links to documentation how to install it.

The full output of the command that failed:


$ minikube start --vm-driver=virtualbox
😄 minikube v1.5.2 on Darwin 10.14.5

⚠️ 'virtualbox' driver reported a possible issue: unable to find VBoxManage in $PATH
💡 Suggestion: Install VirtualBox
📘 Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/virtualbox/

💿 Downloading VM boot image ...
> minikube-v1.5.1.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
> minikube-v1.5.1.iso: 143.76 MiB / 143.76 MiB [] 100.00% 2.13 MiB p/s 1m7s
🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path

💣 Unable to start VM
❌ Error: [VBOX_NOT_FOUND] create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
💡 Suggestion: Install VirtualBox, or select an alternative value for --vm-driver
📘 Documentation: https://minikube.sigs.k8s.io/docs/start/
⁉️ Related issues:
#3784

The output of the minikube logs command:

none

The operating system version:

Darwin 10.14.5(macOS)
minikube v1.5.2

I'll send PR to fix this(#5478 too).

@govargo
Copy link
Contributor Author

govargo commented Nov 3, 2019

/kind bug
/assign
/co virtualbox

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 3, 2019
@medyagh medyagh added co/virtualbox priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Nov 4, 2019
@govargo
Copy link
Contributor Author

govargo commented Nov 15, 2019

Fixed by #5840

@govargo govargo closed this as completed Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/virtualbox kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

3 participants