Bug 240404 - Virtualbox Qt FATAL
Summary: Virtualbox Qt FATAL
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-08 04:14 UTC by Ruthven
Modified: 2021-02-06 00:06 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruthven 2019-09-08 04:14:22 UTC
After install pkg install virtualbox-ose and following the Handbook (https://www.freebsd.org/doc/handbook/virtualization-host-virtualbox.html) everything was okay but after reboot when I try to run:


[root@freeBSD ~]# virtualbox 
Qt WARNING: could not connect to display 
Qt FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: bsdfb, minimal, offscreen, vnc, xcb.

Abort trap (core dumped)
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2020-10-27 12:26:26 UTC
Do you have X started?
Comment 2 Adriaan de Groot freebsd_committer freebsd_triage 2021-02-06 00:06:39 UTC
Looks like it would have been "you don't have $DISPLAY set", which is likely if the OP su(1)'ed root in a terminal in some X session. Or didn't start X. The code in Qt's xcb platform plugin that produces the `Qt WARNING:` message shown here, prints the display name it has -- either from command-line options or $DISPLAY -- as part of the error. You can see it's blank.

Closing as no-feedback, and probably forgot-to-start-X.