{"id":2261,"date":"2011-03-08T12:52:09","date_gmt":"2011-03-08T17:52:09","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/?p=2261"},"modified":"2011-03-08T12:52:09","modified_gmt":"2011-03-08T17:52:09","slug":"installing-vmware-server-2-0-2-with-linux-kernel-2-6-31-rt-ubuntu-studio-10-04","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2011\/03\/08\/installing-vmware-server-2-0-2-with-linux-kernel-2-6-31-rt-ubuntu-studio-10-04\/","title":{"rendered":"Installing VMware Server 2.0.2 with Linux Kernel 2.6.31-*-rt Ubuntu Studio 10.04"},"content":{"rendered":"<p>I&#8217;m working on a virtualized environment to run scalable instances of the <a title=\"Public Mapping Project\" href=\"http:\/\/www.publicmapping.org\/\">Public Mapping Project<\/a> app.<\/p>\n<p>While the project offers an EC2 AMI, my boss wanted to run this on our own hardware, so we&#8217;re going to use VMware. \u00a0To develop the instance images, I wanted to install VMware Server 2.0.2-203138 on my notebook which is running Ubuntu Studio 10.04 with a\u00a02.6.31-11-rt kernel.<\/p>\n<p>The installer provided by VMware doesn&#8217;t work out of the box for Ubuntu Systems. \u00a0So, I followed the instructions in the <a title=\"Ubuntu Community VMware Server Documentation\" href=\"https:\/\/help.ubuntu.com\/community\/VMware\/Server\">Ubuntu Community VMware Server Documentation<\/a> which instructs users to use a <a title=\"How to install  VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala\" href=\"http:\/\/radu.cotescu.com\/how-to-install-vmware-server-2-0-x-on-ubuntu-9-10-karmic-koala\/\">patching system developed by\u00a0Radu\u00a0Cotescu<\/a>. \u00a0While this was easy to use and clearly documented, it didn&#8217;t work for me. \u00a0This is what happened:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nghing@geoffsnotebook:~\/Downloads$ sudo .\/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66\/vmware-server-2.0.x-kernel-2.6.3x-install.sh .You have VMware Server archive:\u00a0\tVMware-server-2.0.2-203138.i386.tar.gzChecking for needed packages on UbuntuYou do have the linux-headers-2.6.31-11-rt package...You do have the build-essential package...You do have the patch package...Extracting the contents of VMware-server-2.0.2-203138.i386.tar.gzFound .tar file for vsock moduleFound .tar file for vmci moduleFound .tar file for vmmon moduleFound .tar file for vmnet moduleExtracting .tar files in order to apply the patch...Untarring .\/vmware-server-distrib\/lib\/modules\/source\/vsock.tarUntarring .\/vmware-server-distrib\/lib\/modules\/source\/vmci.tarUntarring .\/vmware-server-distrib\/lib\/modules\/source\/vmmon.tarUntarring .\/vmware-server-distrib\/lib\/modules\/source\/vmnet.tarTesting patch...Creating some simlinks for the newer kernels...ln: creating symbolic link `\/usr\/src\/linux-headers-2.6.31-11-rt\/include\/linux\/autoconf.h': File existsln: creating symbolic link `\/usr\/src\/linux-headers-2.6.31-11-rt\/include\/linux\/utsrelease.h': File existsApplying patch...Preparing new tar file for vsock modulePreparing new tar file for vmci modulePreparing new tar file for vmmon modulePreparing new tar file for vmnet moduleChecking that the compiling will succeed...Trying to compile vmci module to see if it worksPerforming make in .\/vmware-server-distrib\/lib\/modules\/source\/vmci-onlyUsing 2.6.x kernel build system.\/home\/ghing\/Downloads\/vmware-server-distrib\/lib\/modules\/source\/vmci-only\/linux\/driver.c: In function \u2018LinuxDriver_Open\u2019:\/home\/ghing\/Downloads\/vmware-server-distrib\/lib\/modules\/source\/vmci-only\/linux\/driver.c:363: error: implicit declaration of function \u2018init_MUTEX\u2019make&#x5B;2]: *** &#x5B;\/home\/ghing\/Downloads\/vmware-server-distrib\/lib\/modules\/source\/vmci-only\/linux\/driver.o] Error 1make&#x5B;1]: *** &#x5B;_module_\/home\/ghing\/Downloads\/vmware-server-distrib\/lib\/modules\/source\/vmci-only] Error 2make: *** &#x5B;vmci.ko] Error 2There is a problem compiling the vmci module after it was patched. :(\r\n<\/pre>\n<p>I began to suspect that my problem could be related to the realtime kernel used by Ubuntu Studio.  Googling, I found that other realtime kernel users were having problems installing VMware products.<\/p>\n<p><a title=\"Re: kernel 2.6.31-rt vmware WS 7.0.1 &quot;universal&quot; patch\" href=\"http:\/\/communities.vmware.com\/message\/1424892#1424892\">This thread<\/a> offers a description of the problem and a patch for another VMware project.  Based on this I was able to create my own patch for the VMware server kernel module sources.  I then modified Radu&#8217;s patch and was able to run his shell script to successfully install VMware server.<\/p>\n<p>Relevant files:<\/p>\n<ul>\n<li><a href=\"https:\/\/gist.github.com\/860635\">Patch file for VMware module source code<\/a><\/li>\n<li><a href=\"https:\/\/gist.github.com\/860639\">Updated version of patch file for Radu&#8217;s installer<\/a><\/li>\n<\/ul>\n<p>To use, simply download <a href=\"https:\/\/gist.github.com\/860639\">my updated version of Radu&#8217;s patch<\/a> and save it in the directory where you unarchived Radu&#8217;s installer scripts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on a virtualized environment to run scalable instances of the Public Mapping Project app. While the project offers an EC2 AMI, my boss wanted to run this on our own hardware, so we&#8217;re going to use VMware. \u00a0To develop the instance images, I wanted to install VMware Server 2.0.2-203138 on my notebook which&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2011\/03\/08\/installing-vmware-server-2-0-2-with-linux-kernel-2-6-31-rt-ubuntu-studio-10-04\/\">Continue reading <span class=\"screen-reader-text\">Installing VMware Server 2.0.2 with Linux Kernel 2.6.31-*-rt Ubuntu Studio 10.04<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[27],"tags":[20610,96,20609,21287,20608,20607],"class_list":["post-2261","post","type-post","status-publish","format-standard","hentry","category-hacks","tag-kernel","tag-linux","tag-realtime","tag-howto","tag-virtualization","tag-vmware","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-At","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=2261"}],"version-history":[{"count":2,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2261\/revisions"}],"predecessor-version":[{"id":2263,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2261\/revisions\/2263"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=2261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=2261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=2261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}