First time using Manjaro but I have been using VirtualBox for many years.
Host is Ubuntu 20.04. Manjaro is Mate 20.0.1
I get to this point on the wiki
sudo VBoxControl sharedfolders list --automount
It looks like this should mount the shared folder I have configured through the VBox management GUI. However this does not happen.
I can manually force the mount
sudo mount -t vboxsf host /mnt/host
And this will mount the shared folder for listing but it is owned by root. In my other experience this would be group owned by vboxsf and would be group writeable.
I don’t see that other people are having this problem, so clearly I’ve done something wrong. Where would it be?
*Update After response by @linux-aarhus *
Yes sections 8 & 9. Here is more detail.
In the sharefolders setting of the management dialog I had requested the mount point as
/mnt/host and had created that directory in the guest before running the guest additions.
After reboot with guest additions installed, the
systemctl status vboxservice shows this error.
automount Error: vbsvcAutomounterMountIt: Failed to mount 'host' on '/mnt/host' because it is probably mounted elsewhere
I removed the request to mount at /mnt/host and left that field blank.
After reboot, the /media/sf_host directory had been created as
drwxr-xr-x 2 root root 4096 Aug 28 00:16 sf_host/
and that directory is empty.
and the vboxservice status reports now
automount Error: vbsvcAutomounterMountIt: Failed to mount 'host' on '/media/sf_host' because it is probably mounted elsewhere
For my first installation of guest additions I had used the guestadditions.iso inserted by the VBox system. So after the wiki entry I instead installed from the pac repo.
pamac build virtualbox-ext-oracle
Cloning virtualbox-ext-oracle build files…
Checking virtualbox-ext-oracle dependencies…
Choose a provider for VIRTUALBOX-HOST-MODULES:
1: linux414-virtualbox-host-modules 6.1.12-6 extra
2: linux419-virtualbox-host-modules 6.1.12-7 extra
3: linux44-virtualbox-host-modules 6.1.12-3 extra
4: linux49-virtualbox-host-modules 6.1.12-3 extra
5: linux54-virtualbox-host-modules 6.1.12-7 extra
6: linux57-virtualbox-host-modules 6.1.12-7 extra
7: linux58-virtualbox-host-modules 6.1.12-5 extra
8: linux54-rt-virtualbox-host-modules 6.1.12-3 community
9: linux56-rt-virtualbox-host-modules 6.1.12-1 community
10: virtualbox-host-dkms 6.1.12-3 community
uname -r shows
This built without error and I then applied
# modprobe vboxdrv $ sudo VBoxControl sharedfolders list --automount bash: $: command not found
Typo in wiki so…
# VBoxControl sharedfolder list --automount ... Auto-mounted Shared Folder mappings (1): 01 - host [idRoot=0 writable auto-mount host-icase]
I still see the same error in the vboxservice status. The executable in the service is given as
Executable: /opt/VBoxGuestAdditions-6.1.6/sbin/VBoxService Perhaps that should be something else?