Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deprecated VirtualBox with warning #21631

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

Open
divysinghvi wants to merge 2 commits into kubernetes:master
base: master
Choose a base branch
Loading
from divysinghvi:VirtualBox

Conversation

Copy link
Contributor

@divysinghvi divysinghvi commented Sep 24, 2025
edited
Loading

This PR adds a deprecation warning for the VirtualBox driver, similar to the existing hyperkit deprecation warning. The VirtualBox driver will display a clear warning message to users indicating it will be removed in a future release and suggesting alternative drivers.
Before

Before

😄 minikube v1.37.0 on Darwin 15.6.1 (arm64)
✨ Using the virtualbox driver based on user configuration
👍 Starting "minikube" primary control-plane node in "minikube" cluster 

After

divysinghvi@Divys-MacBook-Air minikube % ./out/minikube start --driver=virtualbox
😄 minikube v1.37.0 on Darwin 15.6.1 (arm64)
✨ Using the virtualbox driver based on user configuration
❗ The 'virtualbox' driver is deprecated and will be removed in a future release.
 You can use alternative drivers such as 'vfkit', 'qemu', or 'docker'.
 https://minikube.sigs.k8s.io/docs/drivers/vfkit/
 https://minikube.sigs.k8s.io/docs/drivers/qemu/
 https://minikube.sigs.k8s.io/docs/drivers/docker/

After suggested change

✨ Using the virtualbox driver based on user configuration
❗ The 'virtualbox' driver is deprecated and will be removed in a future release.
 You can use alternative drivers: qemu2, vfkit, krunkit, parallels, docker, podman, ssh.

Fixes #21608

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 24, 2025
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 24, 2025
Copy link
Contributor

Hi @divysinghvi. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 24, 2025
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Contributor Author

@nirs https://minikube.sigs.k8s.io/docs/drivers/ i was thinking since we say stuff like preferred , experimental on this docs page shouldn't we mention the deprecated one's also this could be useful for people who are new so that then focus on right drivers .

}
out.WarningT(`Due to changes in macOS 13+ minikube doesn't currently support VirtualBox. You can use alternative drivers such as 'vfkit', 'qemu', or 'docker'.
out.WarningT(`The 'virtualbox' driver is deprecated and will be removed in a future release.
You can use alternative drivers such as 'vfkit', 'qemu', or 'docker'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should list the drivers available Per Platform,
I believe regstiry package might have a func that gives you Available Drviers

Copy link
Contributor Author

@divysinghvi divysinghvi Sep 25, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have done the change this is how it looks now

✨ Using the virtualbox driver based on user configuration
❗ The 'virtualbox' driver is deprecated and will be removed in a future release.
 You can use alternative drivers: qemu2, vfkit, krunkit, parallels, docker, podman, ssh.

Copy link
Collaborator

@afbjorklund afbjorklund Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can go back and make a similar fix to hyperkit warning (in a new PR), to make them look more similar:

Copy link
Contributor Author

@divysinghvi divysinghvi Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes i have to change the hyperkit one in a new pr i was waiting for this one to be confirmed if this looks good i can make the pr for the hyperkit one also thanks

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: divysinghvi , medyagh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • (削除) OWNERS (削除ここまで) [medyagh]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 1, 2025
Copy link
Member

medyagh commented Oct 1, 2025
edited
Loading

thank you @divysinghvi that looks better, yes you can create a follow up PR to make hyperkit and others do the same

I suggest the follow up Pr have a general func called

warnDriverDepricated

and that can have for loop that goes ever every Depricatred driverd and checks if that matches the selected driver.
and only differen thing there would be the message if needs to be different

nirs reacted with thumbs up emoji

Copy link
Member

medyagh commented Oct 1, 2025

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 1, 2025
Copy link
Contributor Author

divysinghvi commented Oct 1, 2025
edited
Loading

yes that could be really useful in future cause since we have a lot of upcoming deprecated drivers as nirs and abjorklund were discussing like parallals etc actually i did make the hyperkit message change also but it's better to have a common function for this task will make change in that too

Copy link
Contributor

@divysinghvi: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-minikube-integration b128d3d link true /test pull-minikube-integration

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor Author

@medyagh why is integration test failing on this pr any clue??

Copy link

kvm2 driver with docker runtime

┌────────────────┬──────────┬────────────────────────┐
│ COMMAND │ MINIKUBE │ MINIKUBE ( PR 21631 ) │
├────────────────┼──────────┼────────────────────────┤
│ minikube start │ 45.4s │ 44.3s │
│ enable ingress │ 17.0s │ 15.9s │
└────────────────┴──────────┴────────────────────────┘

Times for minikube (PR 21631) ingress: 15.8s 15.8s 16.3s 15.8s 15.8s
Times for minikube ingress: 15.8s 19.8s 16.3s 16.8s 16.3s

Times for minikube start: 45.0s 44.5s 45.7s 45.7s 45.8s
Times for minikube (PR 21631) start: 46.0s 41.4s 44.3s 45.3s 44.4s

docker driver with docker runtime

┌────────────────┬──────────┬────────────────────────┐
│ COMMAND │ MINIKUBE │ MINIKUBE ( PR 21631 ) │
├────────────────┼──────────┼────────────────────────┤
│ minikube start │ 21.5s │ 21.5s │
│ enable ingress │ 12.6s │ 11.0s │
└────────────────┴──────────┴────────────────────────┘

Times for minikube start: 22.2s 21.5s 20.9s 23.0s 19.9s
Times for minikube (PR 21631) start: 21.6s 20.9s 21.4s 22.4s 21.4s

Times for minikube ingress: 10.6s 15.6s 10.6s 13.6s 12.6s
Times for minikube (PR 21631) ingress: 11.6s 11.6s 10.6s 10.7s 10.6s

docker driver with containerd runtime

┌────────────────┬──────────┬────────────────────────┐
│ COMMAND │ MINIKUBE │ MINIKUBE ( PR 21631 ) │
├────────────────┼──────────┼────────────────────────┤
│ minikube start │ 19.8s │ 19.9s │
│ enable ingress │ 26.5s │ 23.5s │
└────────────────┴──────────┴────────────────────────┘

Times for minikube ingress: 24.1s 23.1s 39.1s 23.1s 23.1s
Times for minikube (PR 21631) ingress: 23.1s 23.1s 24.1s 23.1s 24.1s

Times for minikube (PR 21631) start: 19.9s 20.5s 19.5s 19.5s 20.2s
Times for minikube start: 20.5s 19.9s 20.1s 18.8s 19.5s

Copy link

Here are the number of top 10 failed tests in each environments with lowest flake rate.

Environment Test Name Flake Rate
Docker_Linux_crio (6 failed) TestFunctional/parallel/ServiceCmdConnect(gopogh) 0.00% (chart)
Docker_Linux_crio (6 failed) TestFunctional/parallel/ServiceCmd/DeployApp(gopogh) 0.00% (chart)
Docker_Linux_crio (6 failed) TestFunctional/parallel/ServiceCmd/HTTPS(gopogh) 0.00% (chart)
Docker_Linux_crio (6 failed) TestFunctional/parallel/ServiceCmd/Format(gopogh) 0.00% (chart)
Docker_Linux_crio (6 failed) TestFunctional/parallel/ServiceCmd/URL(gopogh) 0.00% (chart)
KVM_Linux_crio (4 failed) TestCertExpiration(gopogh) 6.38% (chart)
Docker_Linux_crio_arm64 (6 failed) TestFunctional/parallel/ServiceCmdConnect(gopogh) 0.00% (chart)
Docker_Linux_crio_arm64 (6 failed) TestFunctional/parallel/ServiceCmd/DeployApp(gopogh) 0.00% (chart)
Docker_Linux_crio_arm64 (6 failed) TestFunctional/parallel/ServiceCmd/HTTPS(gopogh) 0.00% (chart)
Docker_Linux_crio_arm64 (6 failed) TestFunctional/parallel/ServiceCmd/Format(gopogh) 0.00% (chart)
Docker_Linux_crio_arm64 (6 failed) TestFunctional/parallel/ServiceCmd/URL(gopogh) 0.00% (chart)

To see the flake rates of all tests by environment, click here.

https://minikube.sigs.k8s.io/docs/drivers/qemu/
https://minikube.sigs.k8s.io/docs/drivers/docker/
`)
You can use alternative drivers: {{.drivers}}.`, out.V{"drivers": strings.Join(driver.SupportedDrivers(), ", ")})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this? please keep the links to the docs. This make it very easy to find more info by clicking on the link in the shell, and it is not required for this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@afbjorklund afbjorklund afbjorklund left review comments

@medyagh medyagh medyagh approved these changes

+1 more reviewer

@nirs nirs nirs requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Marking VirtualBox as deprecated

AltStyle によって変換されたページ (->オリジナル) /