OpenGL modules fail WITH "--nox11"

Discussions about using Linux guests in VirtualBox.
Post Reply
karypid
Posts: 2
Joined: 6. Feb 2012, 02:22

OpenGL modules fail WITH "--nox11"

Post by karypid »

Hello!

I can't seem to be able to install guest additions. My situation is as follows:

- VirtualBox 4.1.8 on Windows 7 (64bit) host
- CentOS 6.2 (32bit) installed as guest OS
- Host machine is an HP laptop (Core i5)
- 2D and 3D acceleration DISABLED in guest Display/Video settings
- No X11 installed in guest OS (Default "Minimal server" install of CentOS)
- gcc, make and kernel-devel packages have been added (to compile guest additions)

Here are the steps taken:

1) Select "Devices --> Install guest additions..."
2) In guest OS command prompt (as root):

Code: Select all

# mount /mnt/cdrom /mnt
# cd /mnt
# ./VBoxLinuxAdditions.run --nox11
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.8 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.1.8 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]
Installing the Window System drivers                       [FAILED]
(Could not find the X.Org or XFree86 Window System.)
Yes, that is correct, I don't have X11 installed in my guest. Why is the script trying to compile these modules? If I understood correctly, "--nox11" is supposed to prevent it from trying?

Finally, /var/log/vboxadd-install.log ends with:

Code: Select all

...
make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/.vboxvideo_drm.o.d  -nostdinc -isystem /usr/lib/gcc/i686-redhat-linux/4.4.6/include -Iinclude  -I/usr/src/kernels/2.6.32-220.4.1.el6.i686/arch/x86/include -include include/linux/autoconf.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 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -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 -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -fshort-wchar -include /tmp
/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/2.6.32-220.4.1.el6.i686/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxvideo/ -I/tmp/vbox.0/vboxvideo/include -I/tmp/vbox.0/vboxvideo/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_X86  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxvideo_drm)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxvideo)" -D"DEBUG_HASH=7" -D"DEBUG_HASH2=50" -c -o /tmp/vbox.0/.tmp_vboxvideo_drm.o /tmp/vbox.0/vboxvideo_drm.c
/tmp/vbox.0/vboxvideo_drm.c:116: error: unknown field <E2><80><98>pci_driver<E2><80><99> specified in initializer
/tmp/vbox.0/vboxvideo_drm.c:118: error: unknown field <E2><80><98>name<E2><80><99> specified in initializer
/tmp/vbox.0/vboxvideo_drm.c:118: warning: initialization from incompatible pointer type
/tmp/vbox.0/vboxvideo_drm.c:119: error: unknown field <E2><80><98>id_table<E2><80><99> specified in initializer
/tmp/vbox.0/vboxvideo_drm.c:119: warning: excess elements in union initializer
/tmp/vbox.0/vboxvideo_drm.c:119: warning: (near initialization for <E2><80><98>driver.kdriver<E2><80><99>)
/tmp/vbox.0/vboxvideo_drm.c: In function <E2><80><98>vboxvideo_init<E2><80><99>:
/tmp/vbox.0/vboxvideo_drm.c:141: error: implicit declaration of function <E2><80><98>drm_init<E2><80><99>
/tmp/vbox.0/vboxvideo_drm.c: In function <E2><80><98>vboxvideo_exit<E2><80><99>:
/tmp/vbox.0/vboxvideo_drm.c:150: error: implicit declaration of function <E2><80><98>drm_exit<E2><80><99>
make[2]: *** [/tmp/vbox.0/vboxvideo_drm.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Thanks in advance for your help (and this wonderful VM software)!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL modules fail WITH "--nox11"

Post by Perryg »

No it just prevents it from failing the install.
You should have shared clipboard and folders. Have you tried to see if you did?
Nothing related to X will work of course, but that is by design since you don't have X
karypid
Posts: 2
Joined: 6. Feb 2012, 02:22

Re: OpenGL modules fail WITH "--nox11"

Post by karypid »

Indeed it did actually work! I just mounted a shared folder successfully.

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

Re: OpenGL modules fail WITH "--nox11"

Post by Perryg »

Come to think of it though you will not get the clipboard either since the requires X. But the shared folders will work.
Post Reply