I have Debian 9 installed in VM, and to connect i use rdesktop, but because i have the issue where i have 2 mouses basicly, iam trying to install this Additions.
I followed manual from this forum but i wasnt successful, this is the status:
Running the installation:
Code: Select all
root@DebTest:/media/cdrom# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.8 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
Code: Select all
root@DebTest:/media/cdrom# cat /var/log/VBoxGuestAdditions.log
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service → /lib/systemd/system/vboxadd.service.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-service.service → /lib/systemd/system/vboxadd-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-x11.service → /lib/systemd/system/vboxadd-x11.service.
Code: Select all
root@DebTest:/media/cdrom# cat /var/log/vboxadd-install.log
grep: /lib/modules/4.9.0-6-amd64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.9.0-6-amd64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make -C /usr/src/linux-headers-4.9.0-6-amd64 KBUILD_SRC=/usr/src/linux-headers-4.9.0-6-common \
-f /usr/src/linux-headers-4.9.0-6-common/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-headers-4.9.0-6-common/scripts/Makefile.build obj=/tmp/vbox.0
XXX
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-6-common/scripts/Makefile.build:298: recipe for target '/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o' failed
make[4]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[4]: *** Waiting for unfinished jobs....
if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o"; fi; fi;
/usr/src/linux-headers-4.9.0-6-common/Makefile:1517: recipe for target '_module_/tmp/vbox.0' failed
make[3]: *** [_module_/tmp/vbox.0] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
/tmp/vbox.0/Makefile.include.footer:84: recipe for target 'vboxguest' failed
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Code: Select all
root@DebTest:/media/cdrom# apt update
Hit:1 download.virtualbox. org/virtualbox/debian stretch InRelease
Ign:2 ftp.antik. sk/debian stretch InRelease
Hit:3 ftp.antik. sk/debian stretch-updates InRelease
Hit:4 ftp.antik. sk/debian stretch Release
Hit:5 security.debian. org/debian-security stretch/updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Code: Select all
root@DebTest:/media/cdrom# apt install dkms build-essential linux-headers-$(uname -r) gcc make
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
dkms is already the newest version (2.3-2).
gcc is already the newest version (4:6.3.0-4).
make is already the newest version (4.1-9.1).
linux-headers-4.9.0-6-amd64 is already the newest version (4.9.88-1+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Code: Select all
root@DebTest:/media/cdrom# apt install build-essential module-assistant
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
module-assistant is already the newest version (0.11.9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Code: Select all
root@DebTest:/media/cdrom# m-a prepare
Getting source for kernel version: 4.9.0-6-amd64
Kernel headers available in /lib/modules/4.9.0-6-amd64/build
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Done!
Code: Select all
root@DebTest:/media/cdrom# uname -a
Linux DebTest 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1 (2018-04-29) x86_64 GNU/Linux