LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2012, 12:35 AM   #1
robinzhu
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Cool who has good experience to install the guest addtions to virtual box


hi all:
I am new to linux platform.and these days I am trying to install the virtual box into my computer, the OS of my host computer is Ubuntu 11.04,and and the virtualbox is the just one got from the repsitory.its version is 4.04 OSE.and now i want to set up a virtual machine using fedoron 16 ,64bit(and my host machine also 64bit).but i failed the problem is as follows:
Building the shared folder support module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
and i cat /var/log/vboxadd-install.log:
and the following is content of /var/log/vboxadd-install.log :

make KBUILD_VERBOSE=1 -C /lib/modules/3.1.0-7.fc16.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 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)
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/.test.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.6.2/include -I/usr/src/kernels/3.1.0-7.fc16.x86_64/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/kernels/3.1.0-7.fc16.x86_64/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 -Os -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.1.0-7.fc16.x86_64
 
Old 03-17-2012, 01:25 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
As far as I know Virtual Box only runs 32Bits guests, at least on Windows platforms, never tried to install 64Bits guest on Linux hosts.

Regards
 
Old 03-17-2012, 01:35 AM   #3
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 166

Rep: Reputation: 8
How you are trying to install guest addition are you using the autorun prompt or any .sh file ?
 
Old 03-17-2012, 01:46 AM   #4
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,603

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by ukiuki View Post
As far as I know Virtual Box only runs 32Bits guests, at least on Windows platforms, never tried to install 64Bits guest on Linux hosts.

Regards
I maintain two systems running 64-bit Fedora OS with 64-bit Windows 7 running in VirtualBox. The VM is always running, 24/7, along with the main Fedora OS. No problems to speak of.
 
Old 03-17-2012, 02:08 AM   #5
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 68

Rep: Reputation: 2
Just FYI :-)

Quote:
Originally Posted by ukiuki View Post
As far as I know Virtual Box only runs 32Bits guests, at least on Windows platforms, never tried to install 64Bits guest on Linux hosts.

Regards
My host OS is Ubuntu 32 bit and guest OS is Arch 64 bit.
 
Old 03-17-2012, 02:14 AM   #6
sysmicuser
Member
 
Registered: Mar 2010
Posts: 247

Rep: Reputation: 0
@robinzhu

your problem is very common. It seems your kernel configuration is not being accepted.
try google have you exported our KENEL_DIR variable and it's value?

I had same problem a while back but I did google and was sorted out later..
 
Old 03-17-2012, 02:17 AM   #7
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,603

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by konsolelover View Post
My host OS is Ubuntu 32 bit and guest OS is Arch 64 bit.
Why are you trying to install a 64-bit guest on a 32-bit host? I could definitely see that causing issues, not to mention being rather pointless...

Last edited by suicidaleggroll; 03-17-2012 at 02:19 AM.
 
Old 03-17-2012, 03:11 AM   #8
robinzhu
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sysmicuser View Post
@robinzhu

your problem is very common. It seems your kernel configuration is not being accepted.
try google have you exported our KENEL_DIR variable and it's value?

I had same problem a while back but I did google and was sorted out later..
thank you I have go to the linux source dir./usr/src/kernels/3.1.0-7.fc16.x86_64.
and try to run the make oldconfig && make prepare;
and the following are the output I'd like to share with you :
[robinzhu@localhost 3.1.0-7.fc16.x86_64]$ sudo make oldconfig
[sudo] password for robinzhu:
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#



[robinzhu@localhost 3.1.0-7.fc16.x86_64]$ sudo make prepare
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2


so the command "sudo make prepare" can not pass


and what is KENEL_DIR? i typed echo $KENEL_DIR and get nothing in my system.
is that just the point to course the problem?
thank you ,your help will be greatly appreciated!

Last edited by robinzhu; 03-17-2012 at 03:13 AM.
 
Old 03-17-2012, 04:57 AM   #9
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 68

Rep: Reputation: 2
Quote:
Originally Posted by suicidaleggroll View Post
not to mention being rather pointless...
Totally agreed

Quote:
Originally Posted by suicidaleggroll View Post
Why are you trying to install a 64-bit guest on a 32-bit host? I could definitely see that causing issues
Approx a year ago, I installed Ubuntu 11.04 32 bit when I was totally new to Linux. Recently I installed Arch 64 bit on virtual box just to get familiar( no serious stuff) with its installation process and package manager kinda thing and now I'm dual booting Arch 64 bit and Ubuntu 32 bit. AMD Turion 64 bit processor, 3 GB of RAM and 1 MB of L2 cache always confuse me what would be best for me.
 
Old 03-17-2012, 03:46 PM   #10
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
This bring some light about guests: https://www.virtualbox.org/wiki/Guest_OSes
And here how to install guest additions: https://forums.virtualbox.org/viewto...p?f=29&t=15679

Regards
 
Old 03-17-2012, 04:48 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,366
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Quote:
Originally Posted by suicidaleggroll View Post
Why are you trying to install a 64-bit guest on a 32-bit host? I could definitely see that causing issues, not to mention being rather pointless...
The point could be to test your self written software on 64 bit systems, for example.
 
Old 03-18-2012, 11:28 AM   #12
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 166

Rep: Reputation: 8
Do you have gcc, make and build essential installed in guest os in virtual box ?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux host with windows guest virtual box Hioushi Linux - Virtualization and Cloud 8 02-17-2011 05:35 PM
[SOLVED] Networking - Virtual Box (WinXP Guest) dc_eros Slackware 14 01-12-2010 05:47 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
BLFS in a Virtual Box guest... trying to get Xorg7.2 to run fdt93 Linux From Scratch 2 08-29-2009 08:25 PM
same IP ad of 2 guest OS in virtual box ic_torres Linux - Newbie 2 05-20-2008 06:06 PM


All times are GMT -5. The time now is 09:32 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