ISSUE
I am using dotless' vbguest vagrant plugin to keep my Virtualbox guest additions updated.
Trying to install guest additions now using
$ vagrant vbguest --iso VBoxGuestAdditions_5.2.18.iso --do install
gives me:
$ vagrant vbguest --iso VBoxGuestAdditions_5.2.18.iso --do install --no-cleanup -f
[helix_dev] GuestAdditions versions on your host (5.2.8) and guest (5.0.16) do not match.
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirror.nl.leaseweb.net
* extras: mirror2.hs-esslingen.de
* updates: ftp.rz.uni-frankfurt.de
755 packages excluded due to repository priority protections
Package kernel-devel-3.10.0-862.11.6.el7.x86_64 already installed and latest version
Package kernel-devel-3.10.0-862.11.6.el7.x86_64 already installed and latest version
Package gcc-4.8.5-28.el7_5.1.x86_64 already installed and latest version
Package binutils-2.27-28.base.el7_5.1.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package 4:perl-5.16.3-292.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Copy iso file VBoxGuestAdditions_5.2.18.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /dev/loop0 is write-protected, mounting read-only
Forcing installation of Virtualbox Guest Additions 5.2.18 - guest version is 5.0.16
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.18 Guest Additions for Linux........
VirtualBox Guest Additions installer
/usr/sbin/vbox-uninstall-guest-additions: line 9: /opt/VBoxGuestAdditions-5.2.18/uninstall.sh: No such file or directory
Failed to remove existing installation. Aborting...
An error occurred during installation of VirtualBox Guest Additions 5.2.18. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Redirecting to /bin/systemctl start vboxadd.service
Failed to start vboxadd.service: Access denied
See system logs and 'systemctl status vboxadd.service' for details.
Mounting the VirtualboxAdditions inside the VM and running VBoxLinuxAdditions.run manually results in
$ sudo ./VBoxLinuxAdditions.run install
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
VirtualBox Guest Additions installer
/usr/sbin/vbox-uninstall-guest-additions: line 9: /opt/VBoxGuestAdditions-5.2.18/uninstall.sh: No such file or directory
Failed to remove existing installation. Aborting...
So I figure it's not connected to dotless' plugin.
CURRENT ANALYSIS
The referenced folder /opt/VBoxGuestAdditions-5.2.18 does not exist, which I assume to be the root of the problem, thus uninstall.sh also does not exist obviously.
It seems that the setup procedure hard-requires the uninstall procedure to run which is not present anymore.
I cannot seem to get that folder back no matter what I try (yet).
I am hoping you guys have an idea what I might do.
Additional information:
I am on a Windows 10 host with a CentOS 7 guest:
cat /etc/*-release
CentOS Linux release 7.5.1804 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.5.1804 (Core)
CentOS Linux release 7.5.1804 (Core)
My Virtualbox version is 5.2.8, my Vagrant version is
$ vagrant version
Installed Version: 2.0.4
Latest Version: 2.1.2