Created
September 7, 2017 06:00
-
-
Save snazzybunny/438d6a3623d8d7cc7d877ffd1b1c34a9 to your computer and use it in GitHub Desktop.
build vmware kernel modules on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# make sure linux headers are installed | |
sudo apt-get install linux-headers-$(uname -r) | |
sudo su | |
cd /usr/lib/vmware/modules/source | |
tar xf vmnet.tar | |
cd vmnet-only | |
wget https://communities.vmware.com/servlet/JiveServlet/download/2688951-180357/VMware-Workstation-12.5.7-kernel4.13-atomic-inc.patch.zip | |
unzip VMware-Workstation-12.5.7-kernel4.13-atomic-inc.patch.zip | |
patch < VMware-Workstation-12.5.7-kernel4.13-atomic-inc.patch | |
make | |
cd .. | |
tar xf vmmon.tar | |
cd vmmon-only | |
make | |
cd .. | |
cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko | |
cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko | |
depmod -a | |
/etc/init.d/vmware restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment