LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2020, 10:46 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Rep: Reputation: 44
Struggling with VBoxLinuxAdditions


Hi, Im struggling to install VBoxLinuxAdditions on Slackware 14.2.
I run as a root (under X window) sh VBoxLinuxAdditions.run and it ends like this:
Code:
# sh VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.38 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.38 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
cat /var/log/VBoxGuestAdditions.log
Code:
install_init_script: error: unknown init type
addrunlevel: error: unknown init type
install_init_script: error: unknown init type
addrunlevel: error: unknown init type
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: modprobe vboxguest failed.
install_init_script: error: unknown init type
addrunlevel: error: unknown init type
Then by looking in /var/log/vboxadd-install.log (full log at: https://pastebin.com/FGndg2ne)
I see this:
Code:
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.217/build SUBDIRS=/tmp/vbox.1 SRCROOT=/tmp/vbox.1 -j1 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)
But thats not true:
Code:
# find / -type f  \( -name "autoconf.h" -o -name "auto.conf" \)
/usr/src/linux-4.4.217/include/config/auto.conf
/usr/src/linux-4.4.217/include/generated/autoconf.h
And in any case running 'make oldconfig && make prepare' does not help at all.
There is a few more MAKE errors at the end of the log, but I think first I should solve the one on the top of the log.
Does anyone experienced issue like this?
 
Old 05-27-2020, 11:09 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,121

Rep: Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371
that is not an error message (at the beginning), but a script which can print that message. But actually that error message was not printed.
The real error I see is at line 61.
 
Old 05-27-2020, 07:19 PM   #3
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,320

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
What I've been doing, which has always worked
with guest up, guest window Devices/Optical Drives/ click on VBoxGuestAdditions.iso

this puts the VBoxGuestAdditions.iso in /dev/sr0

on the guest as root mount /dev/sr0 /mnt/tmp
sh /mnt/tmp/VBoxLinuxAdditions.run

Seems to be just the one 'liunx' additions.

Has this all worked for you before, is there something new you're doing, can you describe your host and guest systems?
Is guest a complete system install, was anything not installed the additions may be looking for?
 
Old 05-28-2020, 01:12 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
If a new kernel comes along on 14.2 running as a guest. The following works for me -
  1. use upgradepkg against Pat's kernel packages
  2. create new initrd
  3. create new grub.cfg
  4. run virtualbox-addons,SlackBuild from slackbuilds.org then upgradepkg --reinstall
  5. run virtualbox-kernel-addons.SlackBuild from slackbuilds.org then upgradepkg --reinstall
  6. reboot

Then I see something like this

Quote:
$ ls -lrt /var/log/packages/virtualbox* kernel*217*
-rw-r--r-- 1 root root 3481895 Mar 29 20:10 kernel-source-4.4.217-noarch-1
-rw-r--r-- 1 root root 257805 Mar 29 20:10 kernel-modules-4.4.217-x86_64-1
-rw-r--r-- 1 root root 25099 Mar 29 20:10 kernel-headers-4.4.217-x86-1
-rw-r--r-- 1 root root 1022 Mar 29 20:10 kernel-generic-4.4.217-x86_64-1
-rw-r--r-- 1 root root 17291 Mar 29 20:35 /var/log/packages/virtualbox-addons-5.0.40-x86_64-1_SBo
-rw-r--r-- 1 root root 1250 Mar 29 20:35 /var/log/packages/virtualbox-kernel-addons-5.0.40_4.4.217-x86_64-1_SBo

I only go down the VBoxLinuxAdditions.run route for -current and then after having made a calculated guess as to which version of GuestAdditions I should be using.


Hope this helps. Good luck.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 14.2 - VBoxLinuxAdditions problem czezz Slackware 11 08-02-2016 09:29 AM
Black screen with VBoxLinuxAdditions paradise Slackware 1 07-03-2013 08:11 AM
Struggling with Samba CUPS win printer issue VBAHole22 Linux - Newbie 13 06-18-2004 08:47 PM
Struggling Add/Remove Packages gibbylinks Red Hat 8 12-07-2003 02:16 PM
after struggling with kernel compile doublefailure Linux - General 5 07-12-2002 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration