VMWare player and Ubuntu 15.04: net driver does not compile anymore, how to fix?
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);
Related videos on Youtube
![fge](https://i.stack.imgur.com/VjxwC.jpg?s=256&g=1)
fge
JSR 203 promoter, JSON Schema activist, maintainer of Grappa (parsers in pure Java)
Updated on September 18, 2022Comments
-
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 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 about 9 yearsSorry. I've rolled back my edit. You may want to edit the question yourself.
-
-
Maxim Brazhnikov about 9 yearsThe link pastie.org/pastes/9934018/download seems to be broken!
-
Diogo Figueira about 9 yearsit worked for my
-
Anthon1e about 9 yearsCould 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 about 9 yearsThe -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 almost 9 yearsI 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 almost 9 years@user50849 it's
-O
which is why it's 'not working'