LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   who has good experience to install the guest addtions to virtual box (http://www.linuxquestions.org/questions/linux-newbie-8/who-has-good-experience-to-install-the-guest-addtions-to-virtual-box-934883/)

robinzhu 03-17-2012 12:35 AM

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

ukiuki 03-17-2012 01:25 AM

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

ac_kumar 03-17-2012 01:35 AM

How you are trying to install guest addition are you using the autorun prompt or any .sh file ?

suicidaleggroll 03-17-2012 01:46 AM

Quote:

Originally Posted by ukiuki (Post 4628921)
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.

konsolelover 03-17-2012 02:08 AM

Just FYI :-)
 
Quote:

Originally Posted by ukiuki (Post 4628921)
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.

sysmicuser 03-17-2012 02:14 AM

@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..

suicidaleggroll 03-17-2012 02:17 AM

Quote:

Originally Posted by konsolelover (Post 4628930)
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...

robinzhu 03-17-2012 03:11 AM

Quote:

Originally Posted by sysmicuser (Post 4628933)
@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!

konsolelover 03-17-2012 04:57 AM

Quote:

Originally Posted by suicidaleggroll (Post 4628934)
not to mention being rather pointless...

Totally agreed :)

Quote:

Originally Posted by suicidaleggroll (Post 4628934)
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. :confused:

ukiuki 03-17-2012 03:46 PM

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

TobiSGD 03-17-2012 04:48 PM

Quote:

Originally Posted by suicidaleggroll (Post 4628934)
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.

ac_kumar 03-18-2012 11:28 AM

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


All times are GMT -5. The time now is 09:19 AM.