Ubuntu 14.04 – Resolve error on VMWare to update the distribution

Updating my Ubuntu version 13.10 to the 14.04 I've had to do the typical adjustments in the settings, and install some software packages that update has been removed.

To work in systems, networks and security, I normally use virtual machines for testing before implementing it in the real machine; I usually use VirtualBox, but also VMWare Since its Virtualization is hardware, and not by software and VirtualBox, and by the virtual interfaces that is installed by default, that allow you to host host connect to the virtual machine to Exchange files, and can even be reused with the interface adaptor bridge mode of VirtualBox.

To use these interfaces of VMWare for one of my practices, Neither were there; then I opened VMWare and I took this surprise.

As well, We will compile them… and we will be pressing the button “Install“…

We will open VMWare from the terminal to locate the error, the result is the following:

Virtual machine monitor                                        done
Virtual machine communication interface                        done
VM communication interface socket family                       done
Blocking file system                                           done
Virtual ethernet                                               failed
VMware Authentication Daemon                                   done

In one Web I found a text to patch the problem and the instructions and I created this a script to automate the task, and I'm going to share if someone has taken my same problem; the failure is due to a problem in the module solution similar to when you must recompile the module of VirtualBox to update the System.

You only need to copy the script in a text file with extension .sh, for example script.sh

#!/bin/sh
##Script para parchear VMWare

##Volcamos el contenido para parchear filter.c 
echo "205a206" > /tmp/filter.c.diff 
echo "> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)" >> /tmp/filter.c.diff 
echo "206a208,210" >> /tmp/filter.c.diff 
echo "> #else" >> /tmp/filter.c.diff 
echo "> VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:" >> /tmp/filter.c.diff
echo "> #endif" >> /tmp/filter.c.diff
echo "255c259,263" >> /tmp/filter.c.diff
echo "<    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);" >> /tmp/filter.c.diff
echo "---" >> /tmp/filter.c.diff
echo ">    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)" >> /tmp/filter.c.diff
echo ">       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);" >> /tmp/filter.c.diff
echo ">    #else" >> /tmp/filter.c.diff
echo ">       transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);" >> /tmp/filter.c.diff
echo ">    #endif" >> /tmp/filter.c.diff

And run it on the terminal with the following:

usuario@maquina:~$ sudo sh script.sh                              

Then we need to apply the patch manually, Since this part in the script did not work:

usuario@maquina:~$ sudo -E -s
usuario@maquina:~$ cd /usr/lib/vmware/modules/source/ 
usuario@maquina:~$ cp vmnet.tar vmnet.tar.original
usuario@maquina:~$ tar xvf vmnet.tar vmnet-only/filter.c
usuario@maquina:~$ patch vmnet-only/filter.c < /tmp/filter.c.diff
usuario@maquina:~$ tar -uvf vmnet.tar vmnet-only/filter.c
usuario@maquina:~$ rm -rf vmnet-only/

Once executed, the script and the patch, the problem has been fixed, and the result is the following:

Virtual machine monitor                                        done
Virtual machine communication interface                        done
VM communication interface socket family                       done
Blocking file system                                           done
Virtual ethernet                                               done
VMware Authentication Daemon                                   done

And now we can enjoy from VMWare and their virtual interfaces.

[Corrected script the 24/07/2014]

##Fuente: http://askubuntu.com/questions/449629/error-installing-vmware-workstation-on-ubuntu

All the tutorials they will be added to the paragraph in the section Library.

If you like you can follow me on Twitter, Facebook, Google +, LinkedIn, or share it with the buttons under this publication, If you have any questions or suggestions please do not hesitate to comment.

Help us to reach more readers Share on LinkedInShare on FacebookTweet about this on TwitterShare on Google+Email this to someone

13 thoughts on"Ubuntu 14.04 – Resolve error on VMWare to update the distribution

  1. DID NOT WORK – Linux telecom - MS-1454 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux

  2. Good
    When I run this code

    patch vmnet-only/filter.c < /tmp/filter.c.diff

    I get this:

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

    Any idea?¡?¡?¡

  3. If I need to use Ubuntu I currently use LTS versions by what had not detected this problem, When you have some free time I will publish solution in a new article aimed to solve it in Ubuntu 15.10.

    I encourage anyone who solvent to share the solution with other users through the comments.

    Thank you very much for your comments and see you soon.

  4. Friends thank you for sharing your knowledge, I am user rookie, I have ubuntu 16.04 and the VMware workstation 10 32bit, install properly but not starts by the error previously explained in this blog, shared steps but not let me patch:
    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED - saving rejects to file /home/Atlaspc/Escritorio/vmnet-only/filter.c.rej
    who else can I do? Thank you

    • Hello Panchin, Thanks for commenting.

      The tutorial is based on Ubuntu 14.04 and it may not work in later versions.

      Later when you update my laptop work I will make a new tutorial for Ubuntu 16.04.

      Best regards.

Leave a Reply