FailFast if virtualbox is not installed. #5821
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.
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.
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
💡 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
⁉️ Related issues:
❌ 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/
▪ #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).
The text was updated successfully, but these errors were encountered: