Virtualbox not automounting shared folder in guest (Manjaro KDE v18.0.2)

I've done some googling, poking around and testing to see if I could fix this issue on my own, but without success. I suspect that I may be doing something wrong or have steps out of order.

The Issue: The automounting of a shared folder in the vbox guest does not happen in Manjaro KDE v18.0.2 guest.

Vbox Host and Guest: Manjaro KDE v18.0.2

Steps Taken:

1 - Install KDE 64bit v18.0.0 from verified ISO and reboot
2 - ran sudo pacman-mirrors --country United_States
3 - ran sudo pacman -Syyu
4 - reboot
5 - ran sudo pacman -Syu linux419-headers
6 - ran sudo mkdir /media
7 - reboot
8 - ran sudo pacman -S virtualbox-guest-utils
9 - setup shared folder in the host through the virtualbox app.
...folder path = /home/testjarokde/linux_projects
...folder name = linux_projects
...mount point = linux_projects
...automount and make permanent are checked
on the host I have a folder /home/testjarokde/linux_projects/my_tests
10 - reboot
11 - ran systemctl enable vboxservice
12 - systemctl start vboxservice
13 - gpasswd -a $USER vboxsf
14 - logout/in and no folders within the /media folder
15 - reboot
---> 16 - no folders within the /media

Within KDE guest:

inxi -Fxxxz within the KDE guest returns:
System:    Host: vboxjarokde Kernel: 4.19.13-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.4 
           tk: Qt 5.12.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Virtualbox System: innotek product: VirtualBox v: 1.2 serial: <filter> Chassis: Oracle Corporation type: 1 
           serial: <filter> 
           Mobo: Oracle model: VirtualBox v: 1.2 serial: <filter> BIOS: innotek v: VirtualBox date: 12/01/2006 
CPU:       Topology: Quad Core model: AMD Ryzen 7 1700X bits: 64 type: MCP arch: Zen rev: 1 L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 30415 
           Speed: 3800 MHz min/max: N/A Core speeds (MHz): 1: 3800 2: 3800 3: 3800 4: 3800 
Graphics:  Device-1: InnoTek Systemberatung VirtualBox Graphics Adapter driver: vboxvideo v: kernel bus ID: 00:02.0 
           chip ID: 80ee:beef 
           Display: x11 server: X.Org 1.20.3 driver: modesetting alternate: fbdev,vboxvideo,vesa compositor: kwin_x11 
           resolution: 1600x900~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 7.0 128 bits) v: 3.3 Mesa 18.3.1 compat-v: 3.1 direct render: Yes 
Audio:     Device-1: Intel 82801AA AC97 Audio vendor: Dell driver: snd_intel8x0 v: kernel bus ID: 00:05.0 chip ID: 8086:2415 
           Sound Server: ALSA v: k4.19.13-1-MANJARO 
Network:   Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 v: 7.3.21-k8-NAPI port: d000 bus ID: 00:03.0 
           chip ID: 8086:100e 
           IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge driver: piix4_smbus v: N/A port: d200 bus ID: 00:07.0 
           chip ID: 8086:7113 
Drives:    Local Storage: total: 15.00 GiB used: 7.33 GiB (48.9%) 
           ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 15.00 GiB speed: 3.0 Gb/s serial: <filter> rev: 1.0 
           scheme: MBR 
Partition: ID-1: / size: 14.70 GiB used: 7.33 GiB (49.9%) fs: ext4 dev: /dev/sda1 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 157 Uptime: 2h 31m Memory: 3.85 GiB used: 539.3 MiB (13.7%) Init: systemd v: 239 Compilers: gcc: 8.2.1 
           Shell: bash v: 4.4.23 running in: konsole inxi: 3.0.28

virtualbox-guest-utils is installed
sudo pacman -Qi virtualbox-guest-utils returns:
Name            : virtualbox-guest-utils
Version         : 6.0.0-1
Description     : VirtualBox Guest userspace utilities
Architecture    : x86_64
URL             :
Licenses        : GPL  custom
Groups          : None
Provides        : None
Depends On      : glibc  pam  libx11  libxcomposite  libxdamage  libxext  libxfixes  libxmu  libxt  xorg-xrandr  VIRTUALBOX-GUEST-MODULES
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : virtualbox-archlinux-additions  virtualbox-guest-additions  virtualbox-guest-utils-nox
Replaces        : virtualbox-archlinux-additions  virtualbox-guest-additions
Installed Size  : 8.49 MiB
Packager        : Christian Hesse <>
Build Date      : Wed 26 Dec 2018 04:56:59 PM EST
Install Date    : Sat 05 Jan 2019 03:29:12 PM EST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

modinfo vboxguest returns:
filename:       /lib/modules/4.19.13-1-MANJARO/kernel/drivers/virt/vboxguest/vboxguest.ko.xz
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
srcversion:     549BC80E4DF0AAFA1856D68
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
intree:         Y
name:           vboxguest
vermagic:       4.19.13-1-MANJARO SMP preempt mod_unload modversions 
sig_id:         PKCS#7
sig_hashalgo:   md4
signature:      30:82:02:A5:06:09:2A:86:48:86:F7:0D:01:07:02:A0:82:02:96:30:

sudo systemctl status vboxservice
● vboxservice.service - VirtualBox Guest Service
   Loaded: loaded (/usr/lib/systemd/system/vboxservice.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2019-01-05 21:18:32 EST; 1min 7s ago
  Process: 412 ExecStart=/usr/bin/VBoxService -f (code=exited, status=1/FAILURE)
  Process: 410 ExecStartPre=/usr/bin/modprobe vboxsf (code=exited, status=0/SUCCESS)
  Process: 396 ExecStartPre=/usr/bin/modprobe vboxvideo (code=exited, status=0/SUCCESS)
  Process: 390 ExecStartPre=/usr/bin/modprobe vboxguest (code=exited, status=0/SUCCESS)
 Main PID: 412 (code=exited, status=1/FAILURE)

Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.484851 main     6.0.0 r127442 started. Verbose level = 0
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.485101 main     vbglR3GuestCtrlDetectPeekGetCancelSupport: Supported (#1)
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.491617 main     Error: Failed to become guest control master: VERR_VERSION_MISMATCH
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.491769 main     Error: Service 'control' failed to initialize: VERR_VERSION_MISMATCH
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.491826 main     Session 0 is about to close ...
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.491832 main     Stopping all guest processes ...
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.491835 main     Closing all guest files ...
Jan 05 21:18:32 vboxjarokde VBoxService[412]: 02:18:32.491840 main     Ended.
Jan 05 21:18:32 vboxjarokde systemd[1]: vboxservice.service: Main process exited, code=exited, status=1/FAILURE
Jan 05 21:18:32 vboxjarokde systemd[1]: vboxservice.service: Failed with result 'exit-code'.

Strange Behavior: Vbox shared folder automount behaves as expected with a Manjaro Cinnamon v18.0.2 (guest) and Manjaro KDE v18.0.2 (host), but still fails with a KDE guest.

I don't remember the exact steps to get shared folders working in Cinnamon (guest). I could be wrong but I believe I did:

1 - Install Cinnamon 64bit v18.0.0 from verified ISO and reboot
2 - run sudo pacman -S linux419-headers
3 - reboot
4 - Insert the Virtualbox guest additions v5.2.20 ISO via host VBox UI
5 - run the install script via autorun in a terminal (which would have succeeded)
6 - eject the ISO/disk and reboot
7 - setup the shared folder in the host UI the same as shown above for the KDE guest VM
8 - run sudo usermod -a -G vboxsf testjarocinn
---> /media folder already exists

---> maybe run a chown command to grant access the shared folder

9 - reboot
---> I can access/read/write/create/list the /media/sf_linux_projects/ from within the Cinnamon guest OS.

10 - run sudo pacman -Syyu
11 - reboot
---> I can still access/read/write/create/list the /media/sf_linux_projects/ from within the Cinnamon guest OS.

Trying the above steps within a KDE guest breaks the guest OS to the point that shutdown and reboot commands do not work from the GUI or the command line, thus requiring the guest OS to be reinstalled from step-1.

Within Cinnamon guest:

vbox guest utils is not installed
sudo pacman -Qi virtualbox-guest-utils returns:
error: package 'virtualbox-guest-utils' was not found

modinfo vboxguest returns:
filename:       /lib/modules/4.19.13-1-MANJARO/misc/vboxguest.ko.xz
version:        6.0.0 r127566
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
srcversion:     B589F7F4C3BE0472F92B7BE
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
name:           vboxguest
vermagic:       4.19.13-1-MANJARO SMP preempt mod_unload modversions

sudo systemctl status vboxservice returns:
Unit vboxservice.service could not be found.

I've always had trouble getting shared folders to automount as well.

Not a solution, but workaround aliases I use in VBox KDE client VMs to mount and unmount my shared folder manually when I need to file access to the Host.

alias vbmount='sudo mount -t vboxsf -o uid=1000,gid=1000 Host /home/manjaro/host'
alias vbumount='sudo umount -v /home/manjaro/host'

Host is the name of the shared folder.


I spent a couple of hours earlier today fixing all [but one] of my [Stable] Manjaro Guests in my Tower's Manjaro [Stable] KDE Host. The method i'll list below has been criticised previously by some Manjaroos as being at worst completely incorrect, or at best redundant... but historically nothing else for me has succeeded.

Weirdly my Xfce Guest's SF remained fine & dandy, & did not need my attention, but my KDE, Enlightenment & OpenBox Guests all had broken SFs until i performed the following. My Cinnamon Guest was in-between; with kernel 4.19 its SFs were good, but after i installed 4.20 today [meant to have done that previously but forgot] its SFs became broken like the others.

Definition: For me, my use of "broken" means that whereas these Guests' /media correctly shows both SFs, neither of them when drilled down into actually displays any contents at all.

Each time i install a new kernel, & boot into it, i have to repeat the following procedure. That is to say, Pacman/Pamac/Octopi kernel incremental version updates don't break the SFs, but when i use Manjaro Manager to, eg, install 4.20 when previously only [eg] 4.19 & 4.14 were installed, then the SFs break.

New versions of VB often [but weirdly not always] also break the SFs, necessitating all this palaver again.

  1. Once the VM/Guest is booted into the desired kernel, load the VirtualBox GA ISO into the virtual optical drive in the VM/Guest.
  2. Launch a terminal from within said ISO in the Guest's file manager.
  3. Run command sudo ./ [not necessary in Cinnamon Guest, which cleverly & conveniently detects the presence of the command in said directory & politely offers to run it for you; i wish the other DEs would also do this].
  4. Patiently await this process to finish
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.16 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 4.20.0-1-MANJARO.
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the modules for kernel 4.20.0-1-MANJARO.
[kdemeoz@manjaro-VM VBox_GAs_6.0.0]$ 
  1. Reboot the VM.
  2. If lucky, once logged back in, SFs will now be fully functional. If unlucky they'll still be broken, & the process needs repeating [why? dunno!!]. In such cases they often seem to then come good, but sometimes still not. Whilst the next step does not have a 100% success rate, try:
  3. sudo chmod o+rx /media & reboot.

Sometimes nothing i try works... some specific combinations of kernel & VirtualBox versions seem resistant to anything i try. A couple of my VMs today that i repaired, last week had broken SFs & i wasted hours fighting them then... yet today i was able to fix them all. Probably the wind was blowing from the right direction, & Sagittarius was rising... :exploding_head:

My Unstable & Testing KDE VMs still have broken SFs. I fought them a lot last week & lost, so once i get some enthusiasm back i need to try again. :face_with_head_bandage:

UPDATE 23/1/19: My post here-above is now superseded by this thread; Widespread VirtualBox Shared Folders breakage with [Stable Update] 2019-01-17

Thank you. After doing some more testing/experimenting, I think a may have a temporary fix.
I made a backup copy of the guest VM's vdi file. The state of the backup guest would be at the point of reboot after the clean install of the OS from ISO. After replacing the broken vdi with the backup vdi:

1. Boot + log into the guest KDE VM.
2. run sudo mkdir /media
3. run sudo pacman-mirrors --country United_States
4. run sudo pacman -Syu linux419-headers
5. run sudo pacman -Rs linux419-virtualbox-guest-modules
6. reboot
7. Setup the shared folder using the host UI (same as stated in the first post).
8. Insert Virtualbox v6.0.0 Guest Additions ISO/disk into the guest VM via host side menu.
9. run the autorun installer script from the v6.0.0 Guest Additions ISO/disk
---> Toward the end of the script "modprode vboxsf" will fail.  Just ignore it.
10. Press enter when prompted by the script.
11. reboot
12. run sudo usermod -a -G vboxsf $USER
13. run sudo chown -R $USER:users /media/sf_linux_projects
14. logout and login
---> the shared folder should be automounted in /media/{shared folder name}

The "groups" command should show that your user is a member of the vboxsf group. Verify that you can access/read/write/create files and folders within your shared folder tree from within the guest. If you run "sudo pacman -Syyu" it should run and complete without issue. However, this probably means that pacman is unaware of the v6.0.0 Guest Additions install and who knows if this could lead to conflicts/problems down the road. However, it does fix the auto-mount for now. Manual uninstall of the v6.0.0 Guest Additions would be needed when the automount issue is resolved by Oracle <--> Arch folks <--> Manjaro team.

Just another tidbit of info:
The vboxservice is not enable/loaded/started using the above procedure. Running "sudo systemctl status vboxservice" returns:
Unit vboxservice.service could not be found.

1 Like

Wow and thank you. It seems I stumbled upon your method. Based on my current, temporary, aufo-mount fix I now suspect that I used the v6.0.0 Guest Additions ISO in my Cinnamon VM instead of the v5.2.20.

[Side Note]
Cinnamon seems to be more "aware" or more "adept" at detecting media. Not only does it detect the ISO pseudo-insertion but it drops an icon on the desktop representing the auto-mounted shared folder. I'm hoping there is a setting in KDE to replicate Cinnamon's detection/response behavior.

It should be obvious the guest-utils must be the same version as the host.

It is also possible to use a script to mount your folders.

Create folders to mimic your shared folder names.

Create a file in your home folder:

touch ~/
chmod +x ~/

Edit the file and add the following content and save it.

# Discover VirtualBox shared folders and mount them if it makes sense
# Folders with the same name must exist in the $USER home folder

if  !  type  VBoxControl  > /dev/null;  then
  echo  "VirtualBox Guest Additions NOT found"  > /dev/stderr
  exit 1

MY_UID="$(id -u)"
MY_GID="$(id -g)"

( set -x;  sudo  VBoxControl  sharedfolder  list; )  |  \
grep      '^ *[0-9][0-9]* *- *'                      |  \
sed  -e 's/^ *[0-9][0-9]* *- *//'                    |  \
while  read  SHARED_FOLDER
  if  [ -d "$MOUNT_POINT" ];  then
    MOUNTED="$(mount  |  grep  "$MOUNT_POINT")"
    if  [ "$MOUNTED" ];  then
      echo  "Already mounted :  $MOUNTED"
        set -x
        sudo  mount  -t vboxsf  -o "nosuid,uid=$MY_UID,gid=$MY_GID"  "$SHARED_FOLDER"  "$MOUNT_POINT"

Run the script on login - e.g. creating a .desktop file in ~/.config/autorun


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by