-
-
Save mbainter/0eb015cdf1d1d0758434d1154abc27a4 to your computer and use it in GitHub Desktop.
Fix for vmware installs on voidlinux runit and vmmon module
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 | |
# must run as root | |
if [ $UID != 0 ]; then | |
echo "You must be root." | |
exit 0 | |
fi | |
# soft link vmware's init.d scripts to void's runit directory | |
ln -s /etc/init.d/vmware* /etc/runit/ | |
# create runit service for vmware and vmware-workstation-server | |
echo -e '#!/bin/bash\nexec /etc/runit/vmware start' > /etc/sv/vmware | |
echo -e '#!/bin/bash\nexec /etc/runit/vmware-workstation-server start' > /etc/sv/vmware-workstation-server | |
# soft link the service to /var | |
ln -s /etc/sv/vmware* /var/service | |
# start the vmware services to populate the proper files | |
sv start vmware | |
sv start vmware-workstation-server | |
# fix vmmon | |
cd /tmp | |
cp /usr/lib/vmware/modules/source/vmmon.tar . | |
tar xf vmmon.tar | |
rm vmmon.tar | |
wget https://raw.githubusercontent.com/mkubecek/vmware-host-modules/fadedd9c8a4dd23f74da2b448572df95666dfe12/vmmon-only/linux/hostif.c | |
mv -f hostif.c vmmon-only/linux/hostif.c | |
tar cf vmmon.tar vmmon-only | |
rm -fr vmmon-only | |
mv -f vmmon.tar /usr/lib/vmware/modules/source/vmmon.tar | |
vmware-modconfig --console --install-all | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment