Monday, June 2, 2014

VMWare Workstation 10 on Ubuntu 14.04 64bit - "Before you can run VMWare, several modules must be compiled..."

  1. Got new Asus laptop, CHECK!
  2. Removed Windows 8.1 because it's buggy and keeps rebooting infinitely when you click Shutdown, CHECK!
  3. Installed Ubuntu 14.04 64-bit, CHECK!
  4. Installed VMWare Workstation 10, CHECK!
  5. VMWare Workstation 10 works the first time you run it. NEVER!!!
I got excited because everything was finally up and running.  I even changed my background to a TRON theme, YES!  However, as expected, I double-clicked the VMWare Workstation 10 button and got the dreaded error "Before you can run VMWare, several modules must be compiled and loaded into the running kernel."



The "Install" button looks so enticing so I clicked it excitedly.  Then got this error "Unable to start services.  See log file /tmp/vmware-root/vmware-modconfig-16922.log for details":



And thus, this loops forever.  Good thing the Internetz gave me a solution!  Based on DanDar3's solution for VMWare Player (which is exactly the same solution!) http://dandar3.blogspot.com/2014/01/vmware-player-601-on-ubuntu-1404-alpha.html.  Perform the following commands to be Root and create a patch file:

sudo -E -s
cd /usr/lib/vmware/modules/source/ 
gedit filter.c.diff
 
Paste the following into the "filter.c.diff" file (including the <'s or >'s):


205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
> #endif
255c259,263
<    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
>    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
>       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
>    #else
>       transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
>    #endif

Resume following these commands to patch the VMWare system files:
cp vmnet.tar vmnet.tar.original
tar xvf vmnet.tar vmnet-only/filter.c
patch vmnet-only/filter.c < filter.c.diff
tar -uvf vmnet.tar vmnet-only/filter.c
rm -rf vmnet-only/

Relaunch VMWare Workstation 10, it will actually allow you to fully update the Kernel this time, and VOILA!!!  The most beautiful popup you've ever seen in your life!!!



- MysteriousCable

3 comments:

  1. Excelent my friend, work all, a lot thanks !!!

    ReplyDelete
  2. got this after doing the patch command:

    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED -- saving rejects to file vmnet-only/filter.c.rej

    ideas?

    ReplyDelete
    Replies
    1. I've never see a "Hunk" error before. My only recommendation is to check everything. Did you type everything in correctly, and is your Ubuntu/VMware Workstation versions different from the one I used? I got my solution from: http://dandar3.blogspot.com/2014/01/vmware-player-601-on-ubuntu-1404-alpha.html, see if their instructions address any extra concerns you have. Good luck, I'm sorry this didn't work for you

      Delete