Bug 195965 - emulators/virtualbox-ose-additions: X vboxvideo loads on FreeBSD 9.3, not on FreeBSD 10.1
Summary: emulators/virtualbox-ose-additions: X vboxvideo loads on FreeBSD 9.3, not on...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-14 13:45 UTC by papowell
Modified: 2014-12-23 00:10 UTC (History)
2 users (show)

See Also:


Attachments
Xorg.log files (66.35 KB, text/plain)
2014-12-14 13:45 UTC, papowell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description papowell 2014-12-14 13:45:35 UTC
Created attachment 150562 [details]
Xorg.log files

Host System: 9.3 (amd64).
Installed VirtualBox virtualbox-ose-4.3.12_1 using PKGng.

Created two Virtual Machines: FreeBSD 9.3 and FreeBSD 10.1 using ISO.
Installed Xorg, KDE on both using PKGng.  Compiled (on virtual machines) and installed Virtual Box extensions.

Set up X as described in FreeBSD documentation.  Modified xorg.conf to use vboxdriver as in notes.

Started VM, then ran startx.  On FreeBSD 9.3 VM X started, no problems.
On FreeBSD 10.1,  X did not start.  Identical xorg.conf files on both systems.

The Xorg.log files appear to be largely similar until the AIGLX support is reached.  On 9.3 you have:

[    32.844] (EE) AIGLX error: dlopen of /usr/local/lib/dri/vboxvideo_dri.so failed (Cannot
open "/usr/local/lib/dri/vboxvideo_dri.so")
[    32.844] (EE) AIGLX: reverting to software rendering
[    33.730] (II) AIGLX: Loaded and initialized swrast


On 10.1 you have:
[    34.552] (EE) AIGLX error: dlopen of /usr/local/lib/dri/vboxvideo_dri.so failed (
Cannot open "/usr/local/lib/dri/vboxvideo_dri.so")


And then X dies.  Attached are the two Xorg.log.0 files, one from 9.3 and the other from 10.1
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-12-14 14:18:32 UTC
Fix Summary and assign.
Comment 2 Jung-uk Kim freebsd_committer freebsd_triage 2014-12-18 23:11:33 UTC
> virtualbox-ose-4.3.12_1

Please note the current version is 4.3.20.

> Cannot open "/usr/local/lib/dri/vboxvideo_dri.so"

This means emulators/virtualbox-ose-additions was not compiled with OPENGL option.  However, it is not a fatal error.

> And then X dies.  Attached are the two Xorg.log.0 files, one from 9.3 and the other from 10.1

I don't see anything wrong from the log.  How did you start X?  Did you do startx?
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2014-12-19 13:12:03 UTC
The VBoxVideo driver is not (yet) compatible with NEW_XORG, which is on by default in 10.x but not in 9.x.  You need to disable AIGLX in xorg.conf:

  Section "ServerFlags"
    Option  "AIGLX" "off"
  EndSection
Comment 4 papowell 2014-12-22 17:58:29 UTC
Tried this and it worked.  Thanks!
Comment 5 Jung-uk Kim freebsd_committer freebsd_triage 2014-12-23 00:10:26 UTC
(In reply to Dag-Erling Smørgrav from comment #3)
> The VBoxVideo driver is not (yet) compatible with NEW_XORG, which is on by
> default in 10.x but not in 9.x.  You need to disable AIGLX in xorg.conf:
> 
>   Section "ServerFlags"
>     Option  "AIGLX" "off"
>   EndSection

This option won't be necessary any more after r375294.