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
Version 1.26 no longer auto-mounts VirtualBox shared folders #14465
Comments
Downgrading back to 1.25.2 definitely fixes this problem. |
Same her on Ubuntu 22.04 with minikube 1.26 working is only on 1.24.0 and 1.25.2 |
Same experience OS: Mac OSX Monterey 12.3 Downgrade to 1.25.2 worked as described (thanks) |
There were no changes done to libmachine or the virtualbox driver, but it could be something with the kernel perhaps. Try This also sounds related, the removal of the vbox-guest.service: (lowering the default 20 minute timesync) -ExecStartPre=-/usr/sbin/modprobe vboxsf
-# Normally, VirtualBox only syncs every 20 minutes. This syncs on start, and
-# forces an immediate sync if VM time is over 5 seconds off.
-ExecStart=/usr/sbin/VBoxService -f --disable-automount --timesync-set-start --timesync-set-threshold 5000
-
commit 770d41f
|
Same problem on RHEL 8.6.
works, so the vboxsf drivers are working fine. It just doesn't mount automatically on start. The missing |
@eiffel-fl , are you aware of this issue? It seems likely a regression from 770d41f |
Hi. Sorry, I am not aware of it as I am really not familiar with virtual box as I use Did you try to add back the above mentioned service? Best regards. |
I am trying to add back only the things which are necessary, for example we no more need to build the kernel modules as they are built with the kernel. $ minikube ssh 'sudo mkdir -p /hosthome; sudo mount -t vboxsf hosthome /hosthome
mount: /hosthome: unknown filesystem type 'vboxsf'.
ssh: Process exited with status 32
$ minikube ssh 'lsmod | grep vbox
vboxsf 36864 0
vboxguest 40960 1 vboxsf I think this is because we are lacking |
It was in that vbox-guest package you deleted |
This is my guess, but this comment stated the command works, which seems to not be the case. |
I was working on building the iso image yesterday so I could test this, but it took a while to figure out how to build it. You can see here that it is mounted:
But I don't see
|
I am using the same version than you but I cannot use $ minikube ssh
...
$ sudo mkdir -p /hosthome; sudo mount -t vboxsf hosthome /hosthome
mount: /hosthome: unknown filesystem type 'vboxsf'.
$ cat /etc/os-release
NAME=Buildroot
VERSION=2021.02.12-1-g379d09f-dirty
ID=buildroot
VERSION_ID=2021.02.12
PRETTY_NAME="Buildroot 2021.02.12"
Can you please provide a complete reproducer (i.e. how you run |
These are the steps I used:
|
I will install
What does this commit reference? |
Oh, I got minikube from conda-forge, so that is from the the minikube-feedstock repo.
|
For strange reasons, I cannot boot
Anyway, I am polishing the buildroot recipe, I think it should do the trick. |
That is strange. Were you using a virtualbox driver when you were testing it earlier, or some other driver? vboxsf is the shared filesystem driver for VirtualBox, so it would then make sense if it didn't work with another driver. |
I never used |
Then why modify virtualbox ? Seems to be erroring here too.
Possibly because it is no longer compatible with VirtualBox 6.1 ?
EDIT: It did boot though, and it did mount.
So the binary is probably not needed ? |
I did not understand your message.
If the binary is not needed (which will make the fix easier, as it is only a matter of a service), what is the path which should be mounted? |
I think the service is what is missing. The path is different depending on the host operating system (Linux, Mac, and Windows are all different). My little mount test is only showing that the vboxsf If you have a working branch, or make a PR, I can build the iso and test it. |
What do you call by service: systemd service or |
It gave an error so I thought it failed, but in the end the boot was successful after all. Maybe it was there all along, did not compare with how it worked with the old ISO... Sorry for the mixed messages. |
No problem, thank you for the clarification. |
I built and tested the iso from the PR, and left some comments. It doesn't work yet, but I think we are moving in the right direction. |
The |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/close by #14784. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
This is now fixed as of 1.28 @vroetman
@adam-olema I don't see how this would be possible considering that VBoxService was previously configured to use the |
Don't know why, but it did work in much earlier versions. In any case, it works fine now :) |
I think minikube is explicitly doing the mounting in this particular case, not the VirtualBox automounter. |
@adam-olema, This is working for me now on RHEL-8. If it's working for you, I think you can close the issue. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
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/test-infra repository. |
What Happened?
After upgrading from 1.25.2 to 1.26.0, shared folders from the VirtualBox driver are no longer auto-mounted. If this is expected behavior or requires new configs, I have not found any documentation to that effect.
Using:
In versions prior to 1.26, the "Shared Folders" setup in VirtualBox with "automount" set to true would be auto-mounted to / on bootup of the host container. In 1.26 this no longer happens.
minikube mount
does work, but this is not convenient and would prefer to use the host drivers anyway instead of 9p.Tried a full
minikube delete
and freshminikube start
, with no improvement.The default setup for VirtualBox is to share the users home directory. In the past, minikube would automount this to /Users.
Adding more shared directories with "automount" would also result in them being automatically mounted in the root directory of the host container.
Note of this happens in 1.26.
Attach the log file
log.txt
Note log entries such as:
These are expected and are supposed to result in auto mounting, but do not.
Operating System
macOS (Default)
Driver
VirtualBox
The text was updated successfully, but these errors were encountered: