{"id":3321,"date":"2025-04-20T08:12:16","date_gmt":"2025-04-20T15:12:16","guid":{"rendered":"https:\/\/rglinuxtech.com\/?p=3321"},"modified":"2025-04-20T08:12:16","modified_gmt":"2025-04-20T15:12:16","slug":"vmware-simple-fixes-for-kernel-6-15-rc","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=3321","title":{"rendered":"VMware &#8211; Simple Fixes for Kernel 6.15-rc.."},"content":{"rendered":"<p>With clues from the NVIDIA patches in the previous article, I have managed to find\/create patches for <em><strong>vmmon<\/strong><\/em> and <em><strong>vmnet<\/strong><\/em>..<\/p>\n<p><em><strong>vmmon<\/strong><\/em> failed with:<\/p>\n<p><span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>common\/crosspage.c:50:13: fatal error: driver-config.h: No such file or directory<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>50 | # include &#8220;driver-config.h&#8221;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| ^~~~~~~~~~~~~~~~~<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>compilation terminated.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>common\/moduleloop.c:30:13: fatal error: driver-config.h: No such file or directory<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>30 | # include &#8220;driver-config.h&#8221;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| ^~~~~~~~~~~~~~~~~<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>compilation terminated.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: linux\/hostif.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** Waiting for unfinished jobs&#8230;.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>common\/sharedAreaVmmon.c:27:13: fatal error: driver-config.h: No such file or directory<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>27 | # include &#8220;driver-config.h&#8221;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| ^~~~~~~~~~~~~~~~~<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>compilation terminated.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>common\/statVarsVmmon.c:27:13: fatal error: driver-config.h: No such file or directory<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>27 | # include &#8220;driver-config.h&#8221;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| ^~~~~~~~~~~~~~~~~<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>compilation terminated.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: linux\/driver.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: linux\/driverLog.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/apic.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/comport.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/cpuid.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/crosspage.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/memtrack.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/moduleloop.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/phystrack.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/sharedAreaVmmon.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:203: common\/statVarsVmmon.o] Error 1<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[3]: *** [\/usr\/src\/linux-6.15-rc2\/Makefile:2006: .] Error 2<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[2]: *** [\/usr\/src\/linux-6.15-rc2\/Makefile:248: __sub-make] Error 2<\/strong><\/span><\/p>\n<p>The fix was relatively simple, with replacement of <em><strong>EXTRA_CFLAGS<\/strong><\/em> by <em><strong>ccflags-y<\/strong><\/em> and <em><strong>del_timer_sync<\/strong><\/em> by <em><strong>timer_delete_sync<\/strong><\/em>, but the <em><strong>vmnet<\/strong><\/em> error was more subtle:<\/p>\n<p><span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>vmnet.o: error: objtool: init_module(): Magic init_module() function name is deprecated, use module_init(fn) instead<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[4]: *** [\/usr\/src\/linux-6.15-rc2\/scripts\/Makefile.build:408: vmnet.o] Error 255<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;&#8230;&#8230;&#8230;&#8230;<\/strong><\/span><\/p>\n<p>Fortunately, there was <em>already<\/em> a suitable patch for this, from <strong>archlinux<\/strong>, at <a href=\"https:\/\/aur.archlinux.org\/cgit\/aur.git\/tree\/vmnet.patch?h=vmware-workstation\" target=\"_blank\" rel=\"noopener\">https:\/\/aur.archlinux.org\/cgit\/aur.git\/tree\/vmnet.patch?h=vmware-workstation<\/a><\/p>\n<p>With both patches applied, VMware <em><strong>vmmon<\/strong><\/em> and <em><strong>vmnet<\/strong><\/em> now compile and load\/run OK with Kernel <strong>6.15-rc2<\/strong>.. (tested with KDE\/Plasma and VMware guest Win10)<\/p>\n<p><em><strong>Robert Gadsdon.\u00a0\u00a0 April 20th 2025..<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With clues from the NVIDIA patches in the previous article, I have managed to find\/create patches for vmmon and vmnet.. vmmon failed with: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230; common\/crosspage.c:50:13: fatal error: driver-config.h: No such file or directory 50 | # include &#8220;driver-config.h&#8221; | ^~~~~~~~~~~~~~~~~ compilation terminated. common\/moduleloop.c:30:13: fatal error: driver-config.h: No such file or directory 30 | # include &#8220;driver-config.h&#8221; | <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=3321\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,11,14,15,19,25],"tags":[2725,786,2737,2739,2738,162,2733,2740,1206,761,402],"class_list":["post-3321","post","type-post","status-publish","format-standard","hentry","category-compilation","category-hacks","category-kernel","category-linux-2","category-opinion","category-vmware","tag-17-6-3","tag-archlinux","tag-complie-fail","tag-del_timer_sync","tag-extra_ccflags","tag-fixed","tag-kernel-6-15","tag-patches-created","tag-vmmon","tag-vmnet","tag-vmware-2"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3321"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3321\/revisions"}],"predecessor-version":[{"id":3322,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3321\/revisions\/3322"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}