need help: Vbox 2.1 on kernel 2.6.28 and 2.6.29-rc1

Discussions related to using VirtualBox on Linux hosts.
Post Reply
hades
Posts: 2
Joined: 14. Jan 2009, 02:30

need help: Vbox 2.1 on kernel 2.6.28 and 2.6.29-rc1

Post by hades »

I have install vbox 2.1 on FC10 with kernel 2.6.28 .
the vbox works fine
I have the USB Brother FAX-2820 printer,and I can install the driver, but I can`t print from Vbox ,any one have the same problem?

when I try install the Vbox 2.1 on FC10 with kernel 2.6.27.7 ,anything works fine ,so I think that is the kernel problem, it is right?

and can the Vbox 2.1 install on kernel 2.6.29-rc1?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
hades
Posts: 2
Joined: 14. Jan 2009, 02:30

Post by hades »

so thanks .but where and how use that patch?

I install the Vbox with the VirtualBox-2.1.0-41146-Linux_x86.run files .

I have try use that patch,but it is fail to me

Code: Select all

[root@Fedora src]# patch -p1 < /home/works/tools/vmware/VirtualBox-kernel\ 2.6.29.patch 
patching file vboxdrv/linux/SUPDrv-linux.c                                              
patch unexpectedly ends in middle of line                                               
Hunk #2 succeeded at 716 with fuzz 1.                                                   
[root@Fedora src]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module                          [??]
Removing old VirtualBox netflt kernel module               [??]
Removing old VirtualBox kernel module                      [??]
Recompiling VirtualBox kernel module                       [??]
  (Look at /var/log/vbox-install.log to find out what went wrong)
[root@Fedora src]# more /var/log/vbox-install.log                
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.28/build SUBDIRS=/tmp/vbox.6 SRCROOT=/tmp/vbox.6 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \                 
        echo;                                                           \                         
        echo "  ERROR: Kernel configuration is invalid.";               \                         
        echo "         include/linux/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.6/.tmp_versions ; rm -f /tmp/vbox.6/.tmp_versions/*                            
make -f scripts/Makefile.build obj=/tmp/vbox.6                                                    
  gcc -Wp,-MD,/tmp/vbox.6/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.3.2/include -D_
_KERNEL__ -Iinclude  -I/usr/src/linux-2.6.28/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict
-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m32 -msoft-floa
t -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -Wa,-mtune=generic32 -ffree
standing -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno
-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fomit-frame-pointer -Wdec
laration-after-statement -Wno-pointer-sign -I/lib/modules/2.6.28/build/include -I/tmp/vbox.6/ -I/tmp/vbox.6/include -I
/tmp/vbox.6/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -D
VBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR
(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)"  -c -o /tmp/vbox.6/linux/.tmp_SUPDrv-linux.o /tmp/vbox.6/linux
/SUPDrv-linux.c                                                                                                       
/tmp/vbox.6/linux/SUPDrv-linux.c: ???‘VBoxDrvLinuxCreate’?:                                                       
/tmp/vbox.6/linux/SUPDrv-linux.c:706: ???‘struct task_struct’????‘cred’???                                  
/tmp/vbox.6/linux/SUPDrv-linux.c:719: ???‘struct task_struct’????‘cred’???                                  
/tmp/vbox.6/linux/SUPDrv-linux.c:720: ???‘struct task_struct’????‘cred’???                                  
make[2]: *** [/tmp/vbox.6/linux/SUPDrv-linux.o] ?? 1
make[1]: *** [_module_/tmp/vbox.6] ?? 2
make: *** [vboxdrv] ?? 2

If I use the patch on kernel 2.6.28 , the fail info is the same with kernel 2.6.29-rc1

if I dont use the patch ,Vbox worksfine on kernel 2.6.28.

Now my problem is that Vbox 2.10 on kernel 2.6.28 can use USB printer to print anything.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Please post in that topic to ask the poster how to apply it. I don't know, as I don't run the rc kernel.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply