VMWare player and Ubuntu 15.04: net driver does not compile anymore, how to fix?

12,676

Use this commands (need root access):

$ wget http://pastie.org/pastes/9934018/download -O /tmp/vmnet-3.19.patch
$ cd /usr/lib/vmware/modules/source
$ tar -xf vmnet.tar
$ patch -p0 -i /tmp/vmnet-3.19.patch
$ tar -cf vmnet.tar vmnet-only
$ rm -r *-only
$ vmware-modconfig --console --install-all

for vmware-player 9 you also need to change:

  • vmnet-only/netif.c line 152 from:

    dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
    

    to

    dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);
    
  • vmnet-only/filter.c line 207 from:

    VNetFilterHookFn(unsigned int hooknum, // IN:

    to:

    VNetFilterHookFn(const struct nf_hook_ops *ops, // IN:

  • vmnet-only/filter.c line 255 from:

    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);

    to:

    transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);

Share:
12,676

Related videos on Youtube

fge
Author by

fge

JSR 203 promoter, JSON Schema activist, maintainer of Grappa (parsers in pure Java)

Updated on September 18, 2022

Comments

  • fge
    fge almost 2 years

    I use VMWare Player on Ubuntu and run a different number of virtual machines on it.

    It worked fine until 14.10, when the kernel was upgraded I would be asked to recompile the modules etc; but it doesn't work with Ubuntu 15.04 anymore.

    The problem is that it fails when trying to recompile the "virtual network adapter". How can I fix that?

    • fge
      fge about 9 years
      @EliahKagan that's not my use case at all; the use case is running VMWare player, and Ubuntu is the host, not the guest.
    • Eliah Kagan
      Eliah Kagan about 9 years
      Sorry. I've rolled back my edit. You may want to edit the question yourself.
  • Maxim Brazhnikov
    Maxim Brazhnikov about 9 years
    The link pastie.org/pastes/9934018/download seems to be broken!
  • Diogo Figueira
    Diogo Figueira about 9 years
    it worked for my
  • Anthon1e
    Anthon1e about 9 years
    Could you please add to your answer, of what version of the VMWare software this patch works with? I need a patch for workstation 9, you see, of which the patch for 11 didn't work.
  • SoothingMist
    SoothingMist about 9 years
    The -o argument to wget is where to output the log according to the manpage, NOT where to output the downloaded file. So it's not going to work. Try curl [url] > [file] instead.
  • FirmTech
    FirmTech almost 9 years
    I tried the process above but got an error "Unable to install all modules. see log for details." below is my terminal screen after the process.
  • Thomas Ward
    Thomas Ward almost 9 years
    @user50849 it's -O which is why it's 'not working'