linuxvmware-tools安装说明.
### Linux下VMware Tools安装详解 #### 知识点一:VMware Tools简介与作用 VMware Tools是VMware虚拟化平台提供的一套工具集合,主要用于优化和提升虚拟机(VM)的性能、功能和用户体验。它包含了多个组件,如增强的键盘、鼠标和图形驱动程序,以及用于实现主机与虚拟机之间时间同步、复制粘贴功能和拖放功能的实用程序。通过安装VMware Tools,可以提高虚拟机中的操作系统与硬件之间的兼容性,减少延迟,并增强整体的交互体验。 #### 知识点二:Linux环境下VMware Tools的安装步骤 在Linux环境中安装VMware Tools,通常有两种主要方式:使用RPM包或tar.gz源码包进行安装。下面将详细讲解如何使用tar.gz源码包进行安装: 1. **下载VMware Tools** 需要从VMware官方网站或其他可靠来源下载适合当前Linux系统版本和架构的VMware Tools tar.gz包。例如,本案例中使用的版本为`VMwareTools-6.0.2-59824.tar.gz`。 2. **解压VMware Tools** 使用`tar`命令解压下载的VMware Tools压缩包到指定目录: ``` #tar -zxvf VMwareTools-6.0.2-59824.tar.gz ``` 这里`-z`表示gzip压缩格式,`-x`表示解压,`-v`表示显示过程信息,`-f`后跟的是要操作的文件名。 3. **进入解压后的目录** 解压完成后,进入到解压后的`vmware-tools-distrib`目录: ``` cd /home/tsm/Tools/vmware-tools-distrib ``` 4. **执行安装脚本** 在解压后的目录中,运行`vmware-install.pl`脚本开始安装过程: ``` ./vmware-install.pl ``` 此脚本会引导用户完成一系列配置选项,包括安装路径、初始化脚本存放位置等。在本案例中,所有路径都被设置为`/home/tsm`下的不同子目录。 5. **确认并创建目录** 脚本会询问是否创建不存在的目录,例如`/home/tsm/sbin`、`/home/tsm/lib/vmware-tools`和`/home/tsm/doc/vmware-tools`。对于这些路径,如果它们尚不存在,脚本将自动创建,用户需确认是否继续。 6. **完成安装并配置** 安装过程完成后,会提示可以通过`/home/tsm/software/vmware-uninstall-tools.pl`来卸载软件。同时,首次运行VMware Tools前,需要通过`/home/tsm/software/vmware-config-tools.pl`来进行配置。在安装过程中,如果内核模块不匹配,脚本还会询问是否尝试编译适合当前内核的模块。 #### 知识点三:VMware Tools的后期管理 - **卸载VMware Tools** 可以通过安装时提供的卸载脚本进行卸载: ``` /home/tsm/software/vmware-uninstall-tools.pl ``` - **重新配置VMware Tools** 如果需要对VMware Tools进行重新配置,可以再次运行配置脚本: ``` /home/tsm/software/vmware-config-tools.pl ``` 通过以上步骤,用户可以在Linux环境下成功安装并配置VMware Tools,从而优化虚拟机的性能和功能。
2、然后选择虚拟机菜单中的“虚拟机/安装VMware-Tools”,此时就会有把VMware-tools文件映像到CD-ROM中。
3、把“VMwareTools-6.0.2-59824.i386.rpm,VMwareTools-6.0.2-59824.tar.gz”文件复制到自己的需要的位置中,然后选择一种安装方式。在此我选VMwareTools-6.0.2-59824.tar.gz。
4、解压
# tar -zxvf VmwareTools-6.0.2-59824.tar.gz
5、进入/home/tsm/Tools/vmware-tools-distrib目录中,
cd /home/tsm/Tools/vmware-tools-distrib
6、输入 ./vmware-install.pl进行安装,在安装过程中根据提示进行选择,在此我一路选择回车即可,周详安装过程如下:
[root@tsmpc vmware-tools-distrib]# ./vmware-install.pl,
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/home/tsm/software]
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 daemon files?
[/home/tsm/sbin]
The path "/home/tsm/sbin" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the library files?
[/home/tsm/lib/vmware-tools]
The path "/home/tsm/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the documentation files?
[/home/tsm/doc/vmware-tools]
The path "/home/tsm/doc/vmware-tools" does not exist currently. This program is
[yes]
The installation of VMware Tools 6.0.2 build-59824 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/home/tsm/software/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/home/tsm/software/vmware-config-tools.pl". Do
you want this program to invoke the command for you now? [yes]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [确定]
Trying to find a suitable vmmemctl module for your running kernel.
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes]
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.23.1-42.fc8/build/include]
Extracting the sources of the vmmemctl module.
Building the vmmemctl module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmemctl-only’
make -C /lib/modules/2.6.23.1-42.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-42.fc8-i686’
CC [M] /tmp/vmware-config0/vmmemctl-only/os.o
SHIPPED /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o
LD [M] /tmp/vmware-config0/vmmemctl-only/vmmemctl.o
Building modules, stage 2.
MODPOST 1 modules
剩余7页未读,继续阅读
- 粉丝: 0
- 资源: 11
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助