Virtualbox UI and remote X clients

Bernhard Froehlich decke at
Sat Oct 23 08:28:25 UTC 2010

On Fri, 22 Oct 2010 17:04:35 -0500, Ade Lovett <ade at> wrote:
> On Oct 22, 2010, at 16:21 , Bernhard Froehlich wrote:
>> Could you please post that errors?
> freebsd% setenv DISPLAY remote:0
> freebsd% VirtualBox
> Wait for UI to pop up, click on 'Settings' for any virtual host,
> VirtualBox crashes with:
> Qt WARNING: QGLContext::makeCurrent(): Cannot make invalid context current.
> Segmentation fault
> (remote) in this case has been (so far):
> MacOSX 10.6 with Apple's
> MacOSX 10.6 with
> Windows XP with cygwin/X
> Windows 7 with cygwin/X
> Xvnc on the FreeBSD box, then using either the Mac or Windows box to
> fire up a vnc client to get to the Xvnc.

That makes more sense now. Looks like the 2D acceleration
unconditionally requires OpenGL. You will find a lot of MythTV users
with exactly that problem and they usually switch to Qt rendering. Don't
know if vbox has such a possibility.

I think it makes sense to add an OpenGL option that disables it all
together. Can you try if it works for you when you reenable VIDEOHWACCEL
in the Makefile and add CONFIGURE_ARGS+=--disable-opengl somewhere?

>> It sounds like an upstream bug so it
>> would be good to collect a few details like why it happens on your
>> system bug I cannot reproduce it here with Intel graphics.
> Please re-read what I said.  The host machine (running the
> virtualboxes) has NO graphics of any kind.  It's FreeBSD
> 8.1-STABLE/amd64 hooked up to a VT320 terminal as a serial console. 
> It has X11 libraries and the various toolkits (QT etc) installed, but
> no Xorg server (other than Xvnc), no X11 drivers
> (graphics/keyboard/mouse).
> 3.2.8 was fine
> 3.2.8_1 broke things
> 3.2.10 (unsurprisingly) hasn't changed

Bernhard Fröhlich

More information about the freebsd-ports mailing list