Saturday, November 8, 2008

vmware on kernel 2.6.27

su -
rpm -ihv VMware-Workstation-6.5.0-118166.x86_64.rpm
cd /usr/lib/vmware/modules/source
for a in *.tar ; do tar xf $a; done
pushd vmblock-only; make; popd
pushd vmci-only; make; popd
pushd vmmon-only; make; popd
pushd vmnet-only; make; popd
cp vmci-only/Module.symvers vsock-only/
pushd vsock-only; make; popd
find -name *.ko -exec cp \
{} /lib/modules/'uname -r'/kernel/drivers/misc/ \;

chmod +x /lib/modules/'uname -r'/kernel/drivers/misc/v*.ko

then modify the script /etc/init.d/vmware, at line 122 (the
vmwareLoadModule() function), replace the line
/sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.ko"
with
/sbin/insmod -s -f "/lib/modules/`uname -r`/kernel/drivers/misc/$1.ko"

then
/etc/init.d/vmware start

and vmware can be used.