Ticker

6/recent/ticker-posts

patching VMware 10 on kali linux 1.0.7

Good night eh sory morning before dawn, this time ane sempet baffled to install VMware on time linux've tried at times linux version 1.0.9 can not and had to downgrade to version 1.0.7 of course after the downgrade version of the OS, the course is also not very smooth seamless, now try to install vmwarenya yes but ane not going to tell you how to install it because that would ane discuss just patching alone.

Try to open a terminal and type "vmware" No error message like this.

 "C header files matching your running kernel were not found. Refer to your distribution's documentation for installation instructions"


and the second issue after the first issue is resolved

vmnet failed


Sory ane forget this screen shoot for the real story then ane only will retell the things that have happened.

Okay here are two steps to resolve the issue:
1. install the kernel headers.
2. patching vmnet.

Insatall kernel headers:
1. do the addition of a repository in advance if you are new to Linux root install time by typing the following code in the terminal
"nano /etc/apt/sources.list" 


2. Paste the repository address below, then exit nano with ctrl key + X and press Y then enter.


deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-fr$
deb http://repo.kali.org/kali kali-bleeding-edge main
#deb-src http://repo.kali.org/kali kali-bleeding-edge main



3. Still on the terminal type
"apt-get update


4. Then install the kernel headers for the terminal type
"apt-get install linux-headers - $ (uname -r)"

Patching vmnet:


1. In a terminal type
"nano patch.sh"

2. Paste the following code as his patch, when finished out of the nano with a button press ctrl + x and y to save


#!/bin/bash

cat << EOF > /tmp/filter.c.patch
--- vmnet-only/filter.c 2013-10-18 15:11:55.000000000 -0400
+++ vmnet-only/filter.c 2013-12-21 20:15:15.000000000 -0500
@@ -27,6 +27,7 @@
 #include "compat_module.h"
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
+#include <linux/version.h>
 #if COMPAT_LINUX_VERSION_CHECK_LT(3, 2, 0)
 #   include <linux/module.h>
 #else
@@ -203,7 +204,11 @@
 #endif

 static unsigned int
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
+#else
+VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
+#endif
 #ifdef VMW_NFHOOK_USES_SKB
                  struct sk_buff *skb,                  // IN:
 #else
@@ -252,7 +257,12 @@

    /* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */
    /* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */
-   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

    packetHeader = compat_skb_network_header(skb);
    ip = (struct iphdr*)packetHeader;
EOF

cd /usr/lib/vmware/modules/source
# untar the vmnet modules
tar -xvf vmnet.tar
#run a the patch you should have just saved earlier
patch vmnet-only/filter.c < /tmp/filter.c.patch
# re-tar the modules
tar -uvf vmnet.tar vmnet-only
#delete the previous working directory
rm -rf vmnet-only



  3. Perform permition change, still on the terminal type
"./ patch.sh"

Okay when two major steps had been done, open your Vmware by way of calling through the terminal so that we know whether or not there is an error while executing. Type "vmware" terminal



looks all service vmware goes well with marked indications "done"


Okay not long after & nbsp; its gui vmware appears looks like the image below 

Post a Comment

0 Comments