After installing OS X into a VM on ESXi, you have probably seen the system log file flooded multiple times per second with this error message.
WindowServer: _CGXGLDisplayContextForDisplayDevice: No matching context for device (0xdeadbeef) – disabling OpenGL
Despite what I found on other blogs, like the great Infrageeks blog (which was a great help in my journey), it IS possible to stop these error messages. You simply need to create a syslog filter rule to ignore them.
As root, edit the /etc/asl.conf file. About 20 lines down, before the rule that saves every message, we want to add our exclusion rule so that it won’t be saved. So just before this line…
# save everything from emergency to notice
copy and insert the following 2 lines.
# ignore WindowServer messages due to ESXi display device ? [= Sender WindowServer] [= Level 4] [= Facility user] [CA= Message _CGXGLDisplayContextForDisplayDevice] ignore
Save the file and exit your editor.
Now you will need to restart the syslog daemon so it will use the updated rule. You could reboot the OS X system but it is a lot faster to just manually restart the process.
sudo launchctl unload /System/Library/LauchDaemons/com.apple.syslogd.plist sudo launchctl load /System/Library/LauchDaemons/com.apple.syslogd.plist
If you monitor the /var/log/system.log file now, you will see a bunch of Configuration Notice: ASL Module messages as the daemon reloads but more importantly, no more WindowServer messages!
Hope this helps.