-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add proper VirtualBox share folders support for FreeBSD guests #10717
Add proper VirtualBox share folders support for FreeBSD guests #10717
Conversation
This commit adds proper VirtualBox shared folder support for BSD guests. It is essentially a copy of the linux capability.
BSD guests use vboxvfs module for mounting share folders
Ensure the logger displays the right vbox module used for mounting shared folders
This change modifies all BSD guest clients. Here is a version which adds it for FreeBSD and also ensures the kernel module exists and is loaded before attempting the mount. https://github.com/thompsa/vagrant/commit/ee4bb779c2c4775f314d01de6fdbf512db53cef3 |
Hi @thompsa - from what I understand and through my testing, invoking
This change should also be just fine for other BSD guests, unless they use a different |
Also just tested this using the |
It does look like mostly only flavors of freeBSD will work with this patch, as the other ones I've tried like NetBSD and openBSD still don't have proper virtualbox guest tools. Happy to move this over to the freeBSD guest since that seems to be the case. The other thing is we could keep this on the BSD guest, and then the support would still be there for whenever those OS's get proper virtualbox guest support. 🤔 |
Good to know that the module loading isnt needed. The only difference now is the generic bsd vs freebsd layout. If the others don't support it it would be good to retain the existing error message rather than trying the mount and not working. |
Since the virtualbox guest additions seem to only be available for freeBSD, move the shared folder functionality over to freebsd guests rather than all BSD guests.
1532938
to
2f0c66f
Compare
This is a follow-up of hashicorp#10717 to use the same naming convention as on Linux guests, in order to reduce the diffs. Also adds the missing capability to `unmount_virtualbox_shared_folder` on FreeBSD guests.
@briancain does this work for MacOS guests? |
@simon0191 - No, but macOS guests should already be supported! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This commit adds proper support for FreeBSD guests when mounting share folders, assuming that the proper guest additions are in place on the guest.
Tested using the
bento/freebsd-11
and thegeneric/hardenedbsd11
guest.Fixes #8884