Ich habe gerade diese Software von Virtual Box installiert, ich habe die ISO von der offiziellen Ubuntu-Website heruntergeladen, war die neueste LTS.
Ich habe versucht, Guest Additions mit dem 'Insert Guest Additions CD Image" zu installieren. Ergebnis:
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions
kernel modules.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find
out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced
until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
Press Return to close this window...
In der Datei /var/log/vboxadd-setup.log:
ERROR:
Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Die vollständige Version der Protokolldatei finden Sie hier1
Ok, das ist also ein bekanntes Problem. Anstatt das von virtualbox bereitgestellte Image zu verwenden, sollten Sie es einfach über aptitute sudo apt-get install virtualbox-guest-dkms
herunterladen und wenn Sie die Header benötigen, laden Sie dieses sudo apt-get install linux-headers-virtual
anstelle des klassischen sudo apt-get install linux-headers-$(uname -r)
herunter.
Prost
Edit: Habe das {}
für ()
geändert, wie von @Abdelouahab empfohlen.
in Ubuntu 16.04 musste ich den O.S. vor der Installation von virtualbox-guest-additions neu starten, um den richtigen Kernel zu laden