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

Discussions related to using the OSE version of VirtualBox.
Post Reply
herb
Posts: 2
Joined: 30. Aug 2009, 01:27
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: win Xp

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

Post by herb »

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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: error "Failed to open the X display"

Post by Sasquatch »

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.
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"

Post by herb »

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.
Post Reply