一、安裝依賴包
sudo apt-get install libx11-6 libx11-dev libxtst6 xinetd
sudo apt-get install linux-headers-`uname -r` build-essential
二、從vmware官方網(wǎng)站下載最新版
vmware-server for linux(ver:1.0.2)
http://www.vmware.com/download/server/ 記得要注冊取得授權(quán)號碼。
三、解壓并安裝
tar zxvf VMware-server-1.0.2-39867.tar.gz
cd vmware-server-distrib
sudo vmware-install.pl
可以直接一路默認下去就好,但這不會安裝成功,會出現(xiàn)以下錯誤:
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.20-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: 錯誤: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: 錯誤: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: 警告: 在 ‘_syscall1’ 的聲明中,類型默認為 ‘int’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] 錯誤 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] 錯誤 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [vmmon.ko] 錯誤 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.
For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
Execution aborted.
不要理它!我們?nèi)ハ螺dpatch搞定
四、下載并安裝patch包
wget http://jaws.go2linux.org/archivos/vmware-any-any-update109.tar.gzcd vmware-any-any-update109sudo ./runme.pl
接下來一路next就好(會出現(xiàn)一些警告錯誤,說有函數(shù)在使用前未初始化) 。