Page 1 of 1

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

Posted: 18. Aug 2016, 09:00
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

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

Posted: 18. Aug 2016, 13:34
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?

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

Posted: 20. Aug 2016, 12:37
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.

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

Posted: 20. Aug 2016, 13:49
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.