What I have
- Host: Windows 10 Version 1803
- Guest: 4.19.20-1-MANJARO
- VirtualBox Version 6.0.4r128413
What I have tried:
using the VirtualBox geustaddition iso
1.1. from toolbar
Devices > Insert guestaddition image ...
1.2.
cd /run/media/foobar/VBox_GAs-6.0.4
1.3.
sudo sh autorun.sh
or simply bysudo sh VBoxLinuxAdditions.run
leading to the error:
This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. VirtualBox Guest Additions: modprobe vboxsf failed
1.4. So I tried solving the problem by installing the Linux kernel header files as mentioned here:
1.4.1 find the Linux kernel by mhwd-kernel -li
which in my case is linux419
1.4.2. Then sudo pacman -S linux419-kernel
1.4.3. then following the step one in original post and reboot. This solves the resolution problem but every time I reboot I have to wait for 5-6 minutes showing the message:
A stop job is running for vboxadd.service …
1.4.4. Tried the sudo systemctl stop vboxadd
and sudo systemctl disable vboxadd
from here but then it reverts the resolution back.
1.4.5. tried uninstalling the guest additions by sudo sh VBoxLinuxAdditions.run uninstall
and then following step 2 whish was also not successful!
using the Manjaro repository as suggested on their wiki:
2.1.
sudo pacman -Syu virtualbox-guest-utils
leading to
There are 11 providers available for VIRTUALBOX-HOST-MODULES:
:: Repository extra
- linux316-virtualbox-guest-modules
…
:: Repository community
linux-rt-lts-manjaro-virtualbox-guest-modules
2.2. from here running mhwd-kernel -li
indicates that should go for linux419
, or use sudo pacman -S linux419-virtualbox-guest-modules
instead. but then I get the error:
error failed to commit transaction (conflicting files)
virtualbox guest utils exists in filesystem vboxclient
2.3. as suggested here I tried sudo pacman -S --force
and finished the installation and rebooted. But nothing changes except that I get this notification: