1:安装编译环境
sudo apt-get install build-essential linux-headers-`uname -r`
sudo apt-get install make
sudo apt-get install gcc
2:下载Vmware-server和安装脚本
点击 这里 下载Vmware-server:
点击 这里 下载安装脚本:
将脚本解压缩(我的下载目录为/Downloads):
@linuxidc.com-laptop:~/Downloads$ tar zxvf raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz
然后将下载到的Vmware压缩包放到脚本文件夹安装:
@linuxidc.com-laptop:~/Downloads$ mv VMware-server-2.0.2-203138.i386.tar.gz ./raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66/
查看当前文件夹里的文件,如下:
@linuxidc.com-laptop:~/Downloads/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$ ls
LICENSE VMware-server-2.0.2-203138.i386.tar.gz
README vmware-server-2.0.2-203138-update.patch
start-VMware-console.sh vmware-server-2.0.x-kernel-2.6.3x-install.sh
vmware-config.patch
3:运行安装脚本,开始安装
@linuxidc.com-laptop:~/Downloads/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$ sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh
PS:注意这里需要以ROOT身份运行脚本,安装时候会提示各种安装目录和安装参数设置(包括虚拟网卡设置,访问端口设置等等),没有什么特殊的,一路默认即可
安装的最后看到如下信息:
Enjoy,
--the VMware team
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family: done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet1 (background) done
DHCP server on /dev/vmnet1 done
Host-only networking on /dev/vmnet8 (background) done
DHCP server on /dev/vmnet8 done
NAT service on /dev/vmnet8 done
VMware Server Authentication Daemon (background) done
Shared Memory Available done
Starting VMware management services:
VMware Server Host Agent (background) done
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines done
The configuration of VMware Server 2.0.2 build-203138 for Linux for this
running kernel completed successfully.