[Solved] error "Failed to open the X display"

Discussions related to using the OSE version of VirtualBox.

[Solved] error "Failed to open the X display"

Postby herb » 30. Aug 2009, 02:02

I recently installed FreeBSD 7.2 release on it's own drive and have x11 running. I'm interested in learning about vertual machines and after several attempts got Sun's port for FreeBSD 7.2 up and running - not configured mind you as I'm not sure how I want to use it yet - the wizzard opened etc

The Makefile was dated Aug 14th 09 and listed port version 3.0.51.r22226. (Sun 3.0.51_OSE.r22185).

The GUI should open from the command line with
#VirtualBox
but I get an error "failed to open the X display"

If I open x11 manually with # startx
then use command #VirtualBox
it opens.

I've a lot to learn and not yet familiar enough with the command line utility VBoxManage.

Does anyone know what I'm missing?

Thanks, herb
herb
 
Posts: 2
Joined: 30. Aug 2009, 01:27
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: win Xp

Re: error "Failed to open the X display"

Postby Sasquatch » 30. Aug 2009, 11:15

You can't start graphical applications without being in that graphical environment, X11 in this case. The same happens with Linux, if you log on to a TTY and try to open a graphical program like Firefox, then you get the same error. However, if you're already in X, then it's strange that you get that error.

VirtualBox is the GUI for the program, VBoxManage is the CLI tool.
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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: error "Failed to open the X display"

Postby herb » 31. Aug 2009, 02:59

It's working as it should then. If I open x and within the x window enter
#VirtualBox
the application starts.

Thank you for the explanation.
herb
 
Posts: 2
Joined: 30. Aug 2009, 01:27
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: win Xp


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests