You are not logged in.

#1 2015-08-05 09:44:31

ntnllarch
Member
Registered: 2014-05-08
Posts: 8

VMware Workstation 8 and linux kernel 4

Good morning,
i'm trying to install VMware-Workstation-Full-8.0.6-1035888.x86_64 on Arch with linux kernel 4.1.4-1-ARCH #1 SMP PREEMPT.
I followed wiki https://wiki.archlinux.org/index.php/VMware step by step and the installation ends fine but when I try to build modules with

vmware-modconfig --console --install-all

I get some errores. The first problem was headers not found, even if already installed. I solved the problem creating these links:

cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h

With these soft links the modules build starts, but stops with errors:

make[2]: *** [/tmp/vmware-root/modules/vmnet-only/userif.o] Error 1
/tmp/vmware-root/modules/vmnet-only/bridge.c: In function ‘VNetBridge_Create’:
/tmp/vmware-root/modules/vmnet-only/bridge.c:331:34: error: dereferencing pointer to incomplete type ‘VNetProcEntry {aka struct proc_dir_entry}’
       bridge->port.jack.procEntry->read_proc = VNetBridgeProcRead;
                                  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/tmp/vmware-root/modules/vmnet-only/procfs.o' failed
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/procfs.o] Error 1
scripts/Makefile.build:258: recipe for target '/tmp/vmware-root/modules/vmnet-only/bridge.o' failed
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/bridge.o] Error 1
Makefile:1383: recipe for target '_module_/tmp/vmware-root/modules/vmnet-only' failed
make[1]: *** [_module_/tmp/vmware-root/modules/vmnet-only] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.1.4-1-ARCH/build'
Makefile:126: recipe for target 'vmnet.ko' failed
make: *** [vmnet.ko] Error 2
make: Leaving directory '/tmp/vmware-root/modules/vmnet-only'
Unable to install vmnet

I also tryed to patch vmnet module sources as suggested in wiki section 3.19, but modules compilation keeps failing. I posted compilation log here.

Can anybody please help me install VmWare installation on kernel 4.x?
Thanks you very much

Offline

#2 2015-08-18 12:33:08

craterib
Member
Registered: 2014-05-15
Posts: 13

Re: VMware Workstation 8 and linux kernel 4

This happens with vmplayer on updating the kernel to 4.1.5-1.

The vmware-patch has not been updated for the latest kernel.

I tried the following patch, but the patch is for kernel version 4.1.2.

Patch taken from: https://communities.vmware.com/thread/516751 .

The patch:

:
--- vmnet-only/filter.c    2015-07-30 19:23:08.368819815 +0100

+++ vmnet-only/filter.c.new    2015-07-30 19:22:41.786537641 +0100

@@ -213,9 +213,14 @@

#else

                  struct sk_buff **pskb,                // IN:

#endif

+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 2)

                  const struct net_device *in,          // IN:

                  const struct net_device *out,         // IN:

                  int (*okfn)(struct sk_buff *))        // IN:

+#else

+                 const struct nf_hook_state *state)    // IN:

+#endif

+

{

#ifndef VMW_NFHOOK_USES_SKB

    struct sk_buff *skb = *pskb;

On applying the patch (manually), I was able to successfully compile the vmnet module.

All the best!

Last edited by craterib (2015-08-18 16:02:00)

Offline

#3 2015-08-25 09:59:53

kerospipa
Member
Registered: 2015-08-25
Posts: 1

Re: VMware Workstation 8 and linux kernel 4

Please, this script looks like it's nos complete, o similar. This give me error if I copy it an run it with patch -p 0 < /root/vmnet.patch.

The error is:

patching file vmnet-only/filter.c
patch: **** malformed patch at line 19:


I need to do work vmware, someone can soy me anything?

Offline

Board footer

Powered by FluxBB