Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 206069

Re: VMware Player (5.0.2) Fails to Install Modules on Ubuntu (13.04)

$
0
0

this script posted by tangramor in ubuntu forums solved my problem (vm workstation 8):

 

#!/bin/bash

if [[ $UID != 0 ]]; then

  echo "Please run this script with sudo:"

  echo "sudo $0 $*"

  exit 1

fi

 

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

 

cd /usr/lib/vmware/modules/source

sudo cp vmci.orig.tar vmci.tar

sudo cp -n vmci.tar vmci.orig.tar

 

sudo tar -xf vmci.tar

cd vmci-only/linux/

 

sudo sed '127s/.*/ .remove = vmci_remove_device,/' driver.c > driver.c.tmp

mv driver.c.tmp driver.c

sudo sed '1744s/.*/static int/' driver.c > driver.c.tmp

mv driver.c.tmp driver.c

sudo sed '1972s/.*/static void/' driver.c > driver.c.tmp

mv driver.c.tmp driver.c

cd ../..

sudo tar -cf vmci.tar vmci-only/

 

sudo rm vmci-only/ -Rf

sudo vmware-modconfig --console --install-all

sudo rm /usr/src/linux-headers-$(uname -r)/include/linux/version.h

echo "Done"


Viewing all articles
Browse latest Browse all 206069

Trending Articles