首先大家要下载5.5.3版for linux 的包,如图所示,因为版本低的会出现找不到内核问题。
然后将该包解压缩。(我将该包全部文件解压到桌面上的vmware-distrib目录中)进入终端窗口后,输入cd /root/Desktop/vmware-distrib 并回车,现在终端提示符变更为 [root@localhost vmware-distrib]# ,输入 ./vmware-install.pl 并回车出现以下提示: Creating a new installer database using the tar3 format. Installing the content of the package. In which directory do you want to install the binary files? [/usr/bin] 这个选项是问你是否想要把二进制可执行文件放入默认的/usr/bin 文件夹中,回车后出现以下提示: What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d] 回车后出现: What is the directory that contains the init scripts? [/etc/rc.d/init.d] 回车后出现: In which directory do you want to install the library files? [/usr/lib/vmware] 回车后出现: The path "/usr/lib/vmware" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] 输入y 后并回车,系统自动建立相关文件夹并复制相关文件,需要等一会,可以看见光标闪呀闪,然后会出现: In which directory do you want to install the manual files? [/usr/share/man] 回车后出现: In which directory do you want to install the documentation files? [/usr/share/doc/vmware] 回车后出现: The path "/usr/share/doc/vmware" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] 输入y 并回车后出现: The installation of VMware Workstation 5.5.3 build-34685 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall.pl". Before running VMware Workstation for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this program to invoke the command for you now? [yes] 第一段的意思是告诉用户将来可以用/usr/bin/vmware-uninstall.pl 命令来卸载该软件 第二段的意思是在该虚拟机第一次运行前必须对它用/usr/bin/vmware-config.pl 这个命令进行配置,你现在是否执行?当然了,回车,然后会出现下面的提示: Making sure services for VMware Workstation are stopped. Stopping VMware services: Virtual machine monitor [确定] You must read and accept the End User License Agreement to continue.Press enter to display it. 最后一段话是让用户阅读并接受该软件的授权许可,按回车键显示,你也可以按住回车键不放,会发现屏幕在飞快地向上滚动,同时最下面的一行会有一个百分比数字在增加,全部显示完毕后会出现: Do you accept? (yes/no) 这里必须输入y,然后出现以下提示: Thank you. Configuring fallback GTK+ 2.4 libraries. In which directory do you want to install the mime type icons? [/usr/share/icons] 回车后出现: What directory contains your desktop menu entry files? These files have a .desktop file extension. [/usr/share/applications] 回车后出现: In which directory do you want to install the application's icon? [/usr/share/pixmaps] 回车后出现: Trying to find a suitable vmmon module for your running kernel. None of the pre-built vmmon modules for VMware Workstation is suitable for yourrunning kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] 输入y 并回车后出现: Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.18-1.2798.fc6/build/include] 回车后出现: Extracting the sources of the vmmon module. 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.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o CC [M] /tmp/vmware-config0/vmmon-only/common/task.o CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o Building modules, stage 2. MODPOST CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' cp -f vmmon.ko ./../vmmon.o make: Leaving directory `/tmp/vmware-config0/vmmon-only' The module loads perfectly in the running kernel. Do you want networking for your virtual machines? (yes/no/help) [yes] 最后一行是问你是否需要虚拟机能够运行网络,当然选是,输入y 并回车出现: Configuring a bridged network for vmnet0. Your computer has multiple ethernet network interfaces available: eth0, eth1. Which one do you want to bridge to vmnet0? [eth0] 这里是让你配置真实网卡与虚拟网卡桥接的,注意,第二段可能每个人的机器显示会不一样,如果机器上只有一块网卡就没有选择的余地了,因为我家里的台式机有两块网卡,eth1 是连接ADSL宽带用的,eth0是与笔记本电脑进行双机互联用的,所以我选eth0,请大家根据自己的实际情况配置,输入eth0 后回车出现: The following bridged networks have been defined: . vmnet0 is bridged to eth0 Do you wish to configure another bridged network? (yes/no) [no] 你是否需要配置另一个桥接网络,这里默认的选项是no,回车后出现: Do you want to be able to use NAT networking in your virtual machines? (yes/no) [yes] 回车后出现: Configuring a NAT network for vmnet8. Do you want this program to probe for an unused private subnet? (yes/no/help) [yes] Probing for an unused private subnet (this can take some time)... Either your host is not connected to an IP network, or its network configuration does not specify a default IP route. Consequently, the subnet 172.16.40.0/255.255.255.0 appears to be unused. This system appears to have a DHCP server configured for normal use. Beware that you should teach it how not to interfere with VMware Workstation's DHCP server. There are two ways to do this: 1) Modify the file /etc/dhcpd.conf to add something like: subnet 172.16.40.0 netmask 255.255.255.0 { # Note: No range is given, vmnet-dhcpd will deal with this subnet. } 2) Start your DHCP server with an explicit list of network interfaces to deal with (leaving out vmnet8). e.g.: dhcpd eth0 Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details. Hit enter to continue. 按一下回车键并出现: Do you wish to configure another NAT network? (yes/no) [no] 回车后出现: Do you want to be able to use host-only networking in your virtual machines? [yes] 回车后出现: Configuring a host-only network for vmnet1. Do you want this program to probe for an unused private subnet? (yes/no/help) [yes] 回车后出现: Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details. Hit enter to continue. 回车,系统在进行相关配置后出现: Do you wish to configure another host-only network? (yes/no) [no] 回车后出现: Extracting the sources of the vmnet module. Building the vmnet module. Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config0/vmnet-only' make -C /lib/modules/2.6.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' CC [M] /tmp/vmware-config0/vmnet-only/driver.o CC [M] /tmp/vmware-config0/vmnet-only/hub.o CC [M] /tmp/vmware-config0/vmnet-only/userif.o CC [M] /tmp/vmware-config0/vmnet-only/netif.o CC [M] /tmp/vmware-config0/vmnet-only/bridge.o CC [M] /tmp/vmware-config0/vmnet-only/procfs.o CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o Building modules, stage 2. MODPOST WARNING: could not open /tmp/vmware-config0/vmnet-only/includeCheck.h: Invalid argument CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' cp -f vmnet.ko ./../vmnet.o make: Leaving directory `/tmp/vmware-config0/vmnet-only' The module loads perfectly in the running kernel. Starting VMware services: Virtual machine monitor [确定] Virtual ethernet [确定] Bridged networking on /dev/vmnet0 [确定] Host-only networking on /dev/vmnet1 (background) [确定] Host-only networking on /dev/vmnet8 (background) [确定] NAT service on /dev/vmnet8 [确定] The configuration of VMware Workstation 5.5.3 build-34685 for Linux for this running kernel completed successfully. You can now run VMware Workstation by invoking the following command: "/usr/bin/vmware". Enjoy, --the VMware team 到此VMware虚拟机安装完毕,自动返回到终端提示符状态下,输入exit退出终端。现在你可以在菜单中的系统工具中找到VmwareWorkstation 图标,单击一下就可以运行了,第一次运行会出现下图:
点击Accept按钮后出现就可以进入虚拟机工作窗口了。其实,该虚拟机软件的安装还是非常人性化,大家对照英文提示一步一步操作即可,基本选默认就行。 |