Installing Guest Additions on Xubuntu 14.04 fails

Discussions about using Linux guests in VirtualBox.
Post Reply
petermeth
Posts: 2
Joined: 30. Jun 2014, 14:52

Installing Guest Additions on Xubuntu 14.04 fails

Post by petermeth »

I am using VBox 4.3.12 r93733 on a Windows Host with Xubuntu 14.04 guest.

I ran updates 3 days ago and when I tried to reinstall Guest Additions (I have always had to reinstall after updates), there is a failure message, though the rest of the install seems to still go ahead. After reboot, guest additions still do not work. Here is the output of the guest addition install:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.12 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.12 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X. Org Server 1.15 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
Press Return to close this window...
Here is the output of /var/log/vboxadd-install.log:

Code: Select all

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.3.12/source ->
                 /usr/src/vboxguest-4.3.12

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.13.0-30-generic -C /lib/modules/3.13.0-30-generic/build M=/var/lib/dkms/vboxguest/4.3.12/build....(bad exit status: 2)
ERROR (dkms apport): binary package for vboxguest: 4.3.12 not found
Error! Bad return status for module build on kernel: 3.13.0-30-generic (x86_64)
Consult /var/lib/dkms/vboxguest/4.3.12/build/make.log for more information.
Failed to install using DKMS, attempting to install without
grep: /lib/modules/3.13.0-30-generic/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.13.0-30-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 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 scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include  -I/usr/src/linux-headers-3.13.0-30-generic/arch/x86/include -Iarch/x86/include/generated  -Iinclude -I/usr/src/linux-headers-3.13.0-30-generic/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.13.0-30-generic/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.13.0-30-generic/include/linux/kconfig.h -Iubuntu/include  -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/3.13.0-30-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxGuest_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c
In file included from include/linux/fs.h:9:0,
                 from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:84,
                 from /tmp/vbox.0/VBoxGuest-linux.c:26:
include/linux/path.h:1:1: warning: null character(s) ignored [enabled by default]
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:84:0,
                 from /tmp/vbox.0/VBoxGuest-linux.c:26:
include/linux/fs.h:783:15: error: field ‘f_path’ has incomplete type
  struct path  f_path;
               ^
In file included from include/linux/namei.h:7:0,
                 from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:86,
                 from /tmp/vbox.0/VBoxGuest-linux.c:26:
include/linux/path.h:1:1: warning: null character(s) ignored [enabled by default]
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:86:0,
                 from /tmp/vbox.0/VBoxGuest-linux.c:26:
include/linux/namei.h:14:14: error: field ‘path’ has incomplete type
  struct path path;
              ^
include/linux/namei.h:16:14: error: field ‘root’ has incomplete type
  struct path root;
              ^
In file included from include/linux/sched.h:52:0,
                 from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:92,
                 from /tmp/vbox.0/VBoxGuest-linux.c:26:
include/linux/cred.h:1:1: warning: null character(s) ignored [enabled by default]
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
I have followed the steps outlined in the HowTo's: "HOWTO: Install Linux Guest Additions + Xorg config" to make sure I am not missing something.

Code: Select all

~$ uname -r
3.13.0-30-generic
~$ sudo apt-get install dkms build-essential linux-headers-generic linux-headers-3.13.0-30-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
dkms is already the newest version.
linux-headers-3.13.0-30-generic is already the newest version.
linux-headers-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Can someone help me get guest additions installed?
petermeth
Posts: 2
Joined: 30. Jun 2014, 14:52

Re: Installing Guest Additions on Xubuntu 14.04 fails

Post by petermeth »

Well, I finally got this resolved after noticing that no one else seemed to have this issue. I figured it must have been something on my end.

In my search for an answer I did manage to get a newer version of Guest Additions from another thread here.
https://www.virtualbox.org/download/tes ... -94438.iso

That version failed as well.

So, I then decided I would reinstall some of the prerequisites. I also noticed I had several older versions of linux-headers installed and I figured they might have been interfering.

Code: Select all

sudo apt-get remove dkms build-essential linux-headers-*
sudo apt-get install dkms build-essential linux-headers-$(uname -r)
After doing that, I tried installing the guest additions again and it worked this time.
sfcfs
Posts: 1
Joined: 2. Sep 2014, 07:43

Re: Installing Guest Additions on Xubuntu 14.04 fails

Post by sfcfs »

Thanks! I had the same problem with VBox 4.3.14 and Ubuntu 14.04 after installing updates - the guest additions stopped working and re installing them I was facing an error related to not being able to build Linux essential files... Your process to update the headers worked and the re-install of guest additions was successful.
herakles
Posts: 48
Joined: 8. Jan 2013, 09:53

Re: Installing Guest Additions on Dragora 2.2

Post by herakles »

Hi everybody !

I am meeting same problems in installing Vbox Guest Additions in a Dragora 2.2 Vm running on a Mint 17 -64 bit Quiana :(

So I posted the following thread on Dragora Forum and I got an answer . But I am a Linux Dummy and I don't know how to compile Vbox Guest Add according to the Kernel....HHHHHHHHHHHHHHHHHHHHHHHHHHHHEEEEEEEEEEEELLLLLLLLLLLLLPPPPPPPPPPPP :oops:


"Hi everybody !

I am using Dragora on a Vm on a Mint 17 64 bit os host .
My aim is to enable sharing betweeb host and guest .
I've tried to install Virtual-box guest add but the module failed to load !
When I compare with Arch Linux , I was able to see at least MY SHARED folder but in Dragora I don't see anything !??!!?

Any idea please ?

Regards

Caron "

ANSWER FROM DRAGORA FORUM :

"Hello Caron,

You need to install the VBoxGuestAdditions in the guest.

To install the Additions you will need the kernel sources[1] in-tree (/usr/src). Unfortunately, Dragora 2.2 does not provide a package with the kernel sources in-place (this is the tree with the files of the generated compilation), but you can use the current config and perform the steps to compile in-place.

[1] http://mirror.fsf.org/dragora/dragor....15-gnu.tar.lz "


HHHHHHHHHHHHEEEEEEEEEEELLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPP :oops:

THANK YOU IN ADVANCE

Caron
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installing Guest Additions on Xubuntu 14.04 fails

Post by Perryg »

If you have already asked and gotten a reply from Dragora I suggest that you use it. We do not support their OS and they are the ones to ask for help in using their product plus how to proceed.

Note: We don't need to see childish key repeats either.
Post Reply