VirtualBox

Opened 5 years ago

Last modified 4 years ago

#18583 awaitsfeedback defect

building virtualbox without opengl on server without X11

Reported by: WMOE Owned by:
Component: other Version: VirtualBox 6.0.6
Keywords: Cc:
Guest type: other Host type: Linux

Description

since version 6.0.x me cannt build virtualbox on server for headless use. last version running is 6.0.0_rc1. glx.h can not be found --- is there new flag or a bug ???

regards

Attachments (2)

configure.log (13.7 KB ) - added by thaewrapt 4 years ago.
configure.log for the case when build is broken with --disable-opengl and in the absence of X11-libs
build.log.gz (306.7 KB ) - added by thaewrapt 4 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by Michael Thayer, 5 years ago

Are you talking about building or using VirtualBox? Building does require all build dependencies, including X11 headers and libraries. We might change that, but it is not a priority. They should not be necessary for using it though.

comment:2 by Walter59, 5 years ago

hi, yes at compile time. Server has no libs of x11 and header. it is no working after 6.0.0_rc

regards

comment:3 by WMOE, 4 years ago

hi , ticket is log ago.

changed headerfiles to build version for server without opengl for use headless ?

regards

comment:4 by Frank Batschulat (Oracle), 4 years ago

Status: newawaitsfeedback

please specify exactly how you run your build of Virtualbox when you say "build virtualbox on server for headless use."

Does that mean you use any specific compile time settings in the Makefile/Environment or does that just mean that you are trying to compile Virtualbox on a headless server that has no X11 support as required build infrastructure installed?

by thaewrapt, 4 years ago

Attachment: configure.log added

configure.log for the case when build is broken with --disable-opengl and in the absence of X11-libs

comment:5 by thaewrapt, 4 years ago

Uploaded 'configure.log' which breaks current ebuild of headless VirtualBox 6.1.x in Gentoo Linux when no X11-libs are present and 3D acceleration is turned off via --disable-opengl switch.

comment:6 by Klaus Espenlaub, 4 years ago

Can you also provide the build log itself, showing what fails? It would save us from digging ourselves (and I doubt it's much going wrong). All our devs have the X11 libs present and it's annoying to uninstall them all just to work on such an issue. Not terribly productive to spend much time on a use case we don't really care about much.

by thaewrapt, 4 years ago

Attachment: build.log.gz added

comment:7 by thaewrapt, 4 years ago

Done. I don't think the use case is rare btw, imagine a bunch of Docker containers running inside VM, they don't need 3D at all in most cases. Etc, etc.

comment:8 by Klaus Espenlaub, 4 years ago

The problem was that --disable-opengl was broken since at least VirtualBox 6.0 (possibly even 5.2). The patch for VirtualBox 6.1 versions up to 6.1.14 is https://www.virtualbox.org/changeset/86228/vbox?format=diff - of course 6.1.16 will contain this already.

This is entirely untested, feedback welcome. I.e. confirmation that this addresses the problem or reports (again best with a build log) what's still broken.

comment:9 by binary_jam, 4 years ago

I experienced the same problem on a headless build of 6.1.14a on gentoo linux. The provided patch fixed it for me. The virtualbox build went through like a charm and it seems to be working 100% so far.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use