LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 05-14-2012, 02:08 PM   #1
sirius57
Member
 
Registered: Jun 2004
Distribution: Fedora core 1, puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora
Posts: 462

Rep: Reputation: 30
Unable to install virtual box guest additions


I am running opensuse 11.3 64 bit host and virtualbox opensuse 12.1 32bit guest. Virtual box version is 3.0.4. I have added kernel sources, make and the gcc compiler. I get this error log file and am unable to resolve the problem.



Installing VirtualBox 3.0.4 Guest Additions, built Tue Aug 4 19:37:03 CEST 2009

Testing the setup of the guest system

Building test kernel module vboxadd_test...

Makefile:25: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
grep: /usr/src/linux/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/selfgz610117513/module/test SRCROOT=/tmp/selfgz610117513/module/test modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)

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.

mkdir -p /tmp/selfgz610117513/module/test/.tmp_versions ; rm -f /tmp/selfgz610117513/module/test/.tmp_versions/*

WARNING: Symbol version dump /usr/src/linux-3.1.10-1.9/Module.symvers
is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/tmp/selfgz610117513/module/test
/tmp/selfgz610117513/module/test/Makefile:25: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
grep: /usr/src/linux/include/linux/version.h: No such file or directory
gcc -Wp,-MD,/tmp/selfgz610117513/module/test/.test.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.6/include -I/usr/src/linux-3.1.10-1.9/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.1.10-1.9/include/linux/kconfig.h -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-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -I/usr/src/linux/include -I/tmp/selfgz610117513/module/test/ -I/tmp/selfgz610117513/module/test/include -I/tmp/selfgz610117513/module/test/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/selfgz610117513/module/test/test.o /tmp/selfgz610117513/module/test/test.c
/tmp/selfgz610117513/module/test/test.c:1:0: error: code model ‘kernel’ not supported in the 32 bit mode
/tmp/selfgz610117513/module/test/test.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/tmp/selfgz610117513/module/test/test.o] Error 1
make[1]: *** [_module_/tmp/selfgz610117513/module/test] Error 2
make: *** [vboxadd_test] Error 2

Building the test kernel module vboxadd_test failed.
Giving up due to the problems mentioned above.
 
Old 05-14-2012, 08:23 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,639

Rep: Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447
Check that you have the kernel headers and sources installed; without them, Guest Addtions will not compile properly. I'm not 100% sure you need them in the host--it's been a while--but you definitely need them in the VM.

Many distros do not install them by default. I don't know Suse well enough to suggest how to check, but that would be the first step for me.

Last edited by frankbell; 05-14-2012 at 08:29 PM.
 
Old 05-15-2012, 06:19 AM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,325
Blog Entries: 7

Rep: Reputation: 157Reputation: 157
might i ask why you're using an out dated version of virtualbox? infact how did you even install that version?
My two cents; use the virtualbox repo, it keeps things up to date and easy to manage in my experience.
If you'd like more info on this method, just say so, and my self or somebody else can help.
 
Old 05-15-2012, 10:47 AM   #4
djsoundfx
Member
 
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 81

Rep: Reputation: 23
Quote:
Originally Posted by Knightron View Post
might i ask why you're using an out dated version of virtualbox? infact how did you even install that version?
My two cents; use the virtualbox repo, it keeps things up to date and easy to manage in my experience.
If you'd like more info on this method, just say so, and my self or somebody else can help.
This is a very valid point, you should probably start by updating your virtualbox there are even preconfigured packages for your architecture on their website https://www.virtualbox.org/wiki/Linux_Downloads and at the bottom the link to their repo: http://download.virtualbox.org/virtu...irtualbox.repo

Also according to openSUSE's website...
Quote:
Originally Posted by http://en.opensuse.org/VirtualBox
Installing the latest Version of the Guest Additions

The Guest Additions is software that installs in the guest operating system and aims to make interaction with and connecting to the guest simple and seamless, for example by enabling features like folder sharing with the host. By default Opensuse installs the Virtualbox guest additions automatically when it's installed as a Virtualbox guest.
 
Old 05-16-2012, 01:41 PM   #5
sirius57
Member
 
Registered: Jun 2004
Distribution: Fedora core 1, puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora
Posts: 462

Original Poster
Rep: Reputation: 30
I have heard of existing vm's not working after virtual box has been updated. I have several vm's installed so that is why I never updated virtual box. In the meantime I will check yast for kernel sources and headers.
Thanks for the replies.
 
Old 05-16-2012, 05:30 PM   #6
djsoundfx
Member
 
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 81

Rep: Reputation: 23
Personally I haven't had an issue (with the VMs) after upgrading but as always make sure you backup everything before you upgrade and you'll be fine. If you don't already maintain a bare metal backup of your host then it's worthwhile to look in to clonezilla/ghost etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
who has good experience to install the guest addtions to virtual box robinzhu Linux - Newbie 11 03-18-2012 11:28 AM
Virtual box guest additions gone when host os is restarted / cold boot hottdogg Linux - Virtualization and Cloud 3 01-21-2010 10:01 PM
LXer: Install Guest additions and run fullscreen mode on VirtualBox Guest OS | Linux LXer Syndicated Linux News 0 01-17-2010 05:30 PM
Want to run Virtual Box in Ubuntu with Win98 as guest OS Won't install donrc Linux - General 16 12-13-2009 08:26 AM
Virtual box additions Patie Linux - Software 2 11-30-2007 02:51 PM


All times are GMT -5. The time now is 07:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration