{"id":1188,"date":"2017-01-20T23:08:32","date_gmt":"2017-01-20T23:08:32","guid":{"rendered":"http:\/\/hauweele.net\/~gawen\/blog\/?p=1188"},"modified":"2017-01-20T23:26:40","modified_gmt":"2017-01-20T23:26:40","slug":"linuxulator-ist-kaputt","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=1188","title":{"rendered":"Linuxulator ist kaputt"},"content":{"rendered":"<p>Since a few weeks I&#8217;m running RELEASE on a custom kernel to use a patch that I made for a missing feature in the IPv6 stack (namely <code>icmp_may_rst<\/code>).<\/p>\n<p>But a few minutes ago I had the surprise to find that the <a href=\"http:\/\/www.freebsd.org\/doc\/handbook\/linuxemu.html\">Linuxulator<\/a> was no longer working. Trying to run a Linux binary failed with the following error:<\/p>\n<pre>\r\nELF binary type \"0\" not known.\r\nexec: test: Exec format error\r\n<\/pre>\n<p>Actually looking at <code>kldstat<\/code>, the Linux kernel module wasn&#8217;t even loaded. Trying to load it manually gave me the following error:<\/p>\n<pre>\r\nlink_elf_obj: symbol kern_sched_setscheduler undefined\r\nlinker_load_file: Unsupported file type\r\n<\/pre>\n<p>OK so what is this <code>sched_setscheduler<\/code> you are talking about? <a href=\"http:\/\/www.freebsd.org\/cgi\/man.cgi?query=sched_setscheduler\">Well there you go!<\/a><br \/>\nNow the Linuxulator depends on that syscall, but for some reason the necessary option disappeared from my custom kernel configuration. All I had to do was to add it again and recompile:<\/p>\n<pre>\r\noptions _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions\r\n<\/pre>\n<p>And now I can run Linux binaries again!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since a few weeks I&#8217;m running RELEASE on a custom kernel to use a patch that I made for a missing feature in the IPv6 stack (namely icmp_may_rst). But a few minutes ago I had the surprise to find that &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=1188\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[791,155,38,389,6,789,790],"class_list":["post-1188","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-binary","tag-error","tag-exec","tag-freebsd","tag-linux","tag-linuxulator","tag-module"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1188"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1188\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}