{"id":2160,"date":"2015-05-18T14:03:58","date_gmt":"2015-05-18T14:03:58","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=2160"},"modified":"2015-05-18T14:07:49","modified_gmt":"2015-05-18T14:07:49","slug":"how-to-stop-the-os-x-vm-system-log-being-flooded-with-windowserver-errors","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=2160","title":{"rendered":"How To Stop The OS X VM System Log Being Flooded With Windowserver\u00a0Errors"},"content":{"rendered":"<p>The below post is graciously borrowed from Jeff at Insomniac Software. Original post is here\u00a0<a title=\"http:\/\/www.insomniacsoftware.com\/?p=99\" href=\"http:\/\/www.insomniacsoftware.com\/?p=99\">How to stop the OS X VM system log being flooded with WindowServer errors<\/a><\/p>\n<p>I found this to be extremely useful and I wanted to keep a record of it in case the original post disappeared.<\/p>\n<p>The guts of the post from Jeff is replicated below:<\/p>\n<p>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.<\/p>\n<p>WindowServer: _CGXGLDisplayContextForDisplayDevice: No matching context for device (0xdeadbeef) \u2013 disabling OpenGL<\/p>\n<p>As root, edit the\u00a0<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/etc\/asl.conf<\/div><\/div>\n<p>\u00a0file. About 20 lines down, before the rule that saves every message, we want to add our exclusion rule so that it won\u2019t be saved. So just before this line\u2026\u2019<\/p>\n<pre># save everything from emergency to notice<\/pre>\n<p>copy and insert the following 2 lines:<\/p>\n<pre># ignore WindowServer messages due to ESXi display device\r\n? [= Sender WindowServer] [= Level 4] [= Facility user] [CA= Message _CGXGLDisplayContextForDisplayDevice] ignore<\/pre>\n<p>Save the file and exit your editor.<\/p>\n<p>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.<\/p>\n<p>Get the process ID of the syslogd process using pgrep (if you have it installed) or with a combo of ps and grep. Here are examples of both methods.<\/p>\n<pre># \/usr\/bin\/pgrep syslogd\r\n19\r\n\r\n# \/bin\/ps aux | grep syslogd\r\nroot 19 0.0 0.1 2459156 1052 ?? Ss 12:11PM 0:11.20 \/usr\/sbin\/syslogd<\/pre>\n<p>So in the example outputs, you can see the pid is 19. Now just restart the syslog daemon.<\/p>\n<pre># kill -HUP 19<\/pre>\n<p>If you monitor the \/var\/log\/<span class=\"skimlinks-unlinked\">system.log<\/span>\u00a0file now, you will see a bunch of Configuration Notice: ASL Module messages as the daemon reloads but more importantly, no more WindowServer messages!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The below post is graciously borrowed from Jeff at Insomniac Software. Original post is here\u00a0How to stop the OS X VM system [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2160","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2160"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2160\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}