VB won't run. Qt FATAL: QXcbConnection: Could not connect to display

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Sisir
Posts: 2
Joined: 18. Aug 2016, 08:52

VB won't run. Qt FATAL: QXcbConnection: Could not connect to display

Post by Sisir »

Hello, I have installed Virtualbox into centos 7.1 ( bare metal server, minimal installation ). when I run the commend `virtualbox` it comes up with the following error.

Code: Select all

Qt FATAL: QXcbConnection: Could not connect to display
Aborted
CentOS: 7.1
VB : 5.1

More information

Code: Select all

# echo $DISPLAY
shows empty string
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VB won't run. Qt FATAL: QXcbConnection: Could not connect to display

Post by Perryg »

bare metal server, minimal installation
This suggests a server with console mode only. Have you installed the necessary packages for GUI ( Xorg ) on this server?
Sisir
Posts: 2
Joined: 18. Aug 2016, 08:52

Re: VB won't run. Qt FATAL: QXcbConnection: Could not connect to display

Post by Sisir »

I guess it is not.

Two questions:

1. Do I need GUI tool if I am planning to run VB using CLI? I have installed vagrant afterwards. Vagrant was able to install boxes without any issue.

2. If I install a windows box ( for example Win 2000 Server ). Will I be able to connect to it using remote desktop without having any GUI tool installed in the host machine.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VB won't run. Qt FATAL: QXcbConnection: Could not connect to display

Post by Perryg »

1) Don't know. I don't use vagrant and it is not supported here.
2) Same answer as above.

I can say if the host does not support some features the guest will not have them available, IE: 3D Accel., Etc.
Post Reply