Bug 2222826

Summary: kernel-6.5.0 doesn't allow VirtualBox shared folders
Product: [Fedora] Fedora Reporter: Ian Laurie <ian.laurie>
Component: virtualbox-guest-additionsAssignee: Hans de Goede <hdegoede>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: hdegoede, james, michael.thayer, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-11 07:12:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Laurie 2023-07-13 23:21:30 UTC
I'm not able to mount VirtualBox shared folders in Rawhide since kernel-6.5 began.  Works fine up to kernel-6.4.0-59.fc39.x86_64. 

Reproducible: Always

Steps to Reproduce:
1. Boot a VirtualBox VM Rawhide guest using kernel-6.5.0
2. Try to mount a host shared folder.
3.
Actual Results:  
Nothing happens, also there is no error message from the mount command.

Expected Results:  
Should mount the share.

I mount using this sort of syntax from a bash script:

sudo mount -t vboxsf -o rw,uid=$UID,gid=$(id -g) share_name local_mnt

This worked fine through kernel-6.4 in Rawhide (and the test week kernel-6.4.3 in a Fedora 38 VM can also mount shares).

Host is Fedora 38 (now running test week kernel-6.4.3) and VirtualBox is VirtualBox-7.0.8-1.fc38.x86_64 from RPMFusion. 

Rawhide is using virtualbox-guest-additions-7.0.8-1.fc39.x86_64.

Comment 1 Sergio Basto 2023-07-14 11:18:23 UTC
for reference 
fix for kernel 6.4 ( which is not the 6.5 reported here ) from OpenSuse in around shared folders , I don't konw if it is related 

https://build.opensuse.org/package/view_file/Virtualization/virtualbox/fixes_for_kernel_6.4.patch?expand=1

Comment 2 Ian Laurie 2023-07-18 23:29:05 UTC
The release notes for VirtualBox 7.0.10 indicate that their Guest Additions are not yet compatible with kernel-6.5, presumably that applies to the drivers in the kernel also.  I'm guessing they are the upstream maintainers.

Comment 3 Ian Laurie 2023-07-21 23:09:43 UTC
It looks like there is a patch to fix the problem that's not yet merged: https://www.virtualbox.org/pipermail/vbox-dev/2023-July/010208.html

Comment 4 Hans de Goede 2023-07-27 08:11:46 UTC
This is fixed by this commit:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=a8f014ec6a21

Which should get merged into a future 6.5-rc# soon.

Comment 5 Ian Laurie 2023-07-28 23:51:09 UTC
I see that Linux next-20230728 now contains the patch but our build from the same day https://koji.fedoraproject.org/koji/buildinfo?buildID=2265541 doesn't seem to fix the problem.  I don't know the mechanism to determine if the patch is in our local build or not though.

Comment 6 Ian Laurie 2023-08-11 00:03:34 UTC
It looks like our local Fedora build kernel-6.5.0-0.rc5.20230809git13b937206866.38.fc40 here https://koji.fedoraproject.org/koji/buildinfo?buildID=2271715 has the patch that fixes this issue.

Comment 7 Hans de Goede 2023-08-11 07:12:04 UTC
(In reply to Ian Laurie from comment #6)
> It looks like our local Fedora build
> kernel-6.5.0-0.rc5.20230809git13b937206866.38.fc40 here
> https://koji.fedoraproject.org/koji/buildinfo?buildID=2271715 has the patch
> that fixes this issue.

Right, the patch was merged upstream, so lets close this now.