vmware-tool的安装方法

本文详细介绍在Linux系统中安装VMware Tools的过程,包括选择安装文件、解压、配置安装路径及编译内核模块等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、启动并进入Linux系统。
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
going to create it, including needed parent directories. Is this what you want?

[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
   CC    /tmp/vmware-config0/vmmemctl-only/vmmemctl.mod.o
   LD [M]   /tmp/vmware-config0/vmmemctl-only/vmmemctl.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-42.fc8-i686'
cp -f vmmemctl.ko ./../vmmemctl.o
make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.   Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-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/vmhgfs-only/backdoor.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/bdhandler.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/cpName.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/cpNameLite.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/dbllnklst.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/dentry.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/dir.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/eventManager.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/file.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/filesystem.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/fsutil.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/hgfsBd.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/inode.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/link.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/message.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/module.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/page.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/request.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/rpcin.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/rpcout.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/staticEscape.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/stubs.o
   CC [M]   /tmp/vmware-config0/vmhgfs-only/super.o
   LD [M]   /tmp/vmware-config0/vmhgfs-only/vmhgfs.o
   Building modules, stage 2.
   MODPOST 1 modules
   CC    /tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o
   LD [M]   /tmp/vmware-config0/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-42.fc8-i686'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
The module loads perfectly in the running kernel.
pcnet32             31429   0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
None of the pre-built vmxnet modules for VMware Tools is suitable for your
running kernel.   Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes]
   
Extracting the sources of the vmxnet module.
Building the vmxnet module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmxnet-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/vmxnet-only/vmxnet.o
   Building modules, stage 2.
   MODPOST 1 modules
   CC    /tmp/vmware-config0/vmxnet-only/vmxnet.mod.o
   LD [M]   /tmp/vmware-config0/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-42.fc8-i686'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-config0/vmxnet-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmblock module for your running kernel.
None of the pre-built vmblock modules for VMware Tools is suitable for your
running kernel.   Do you want this program to try to build the vmblock module
for your system (you need to have a C compiler installed on your system)?
[yes]

Extracting the sources of the vmblock module.
Building the vmblock module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmblock-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/vmblock-only/linux/block.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/control.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/dbllnklst.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/dentry.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/file.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/filesystem.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/inode.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/module.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/stubs.o
   CC [M]   /tmp/vmware-config0/vmblock-only/linux/super.o
   LD [M]   /tmp/vmware-config0/vmblock-only/vmblock.o
   Building modules, stage 2.
   MODPOST 1 modules
   CC    /tmp/vmware-config0/vmblock-only/vmblock.mod.o
   LD [M]   /tmp/vmware-config0/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-42.fc8-i686'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-config0/vmblock-only'
The module loads perfectly in the running kernel.
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment.   Would you like to enable this feature? [no]

Detected X.org version 1.3.
No drivers for X.org version: 1.3.
Please choose one of the following display sizes that X will start with (1 -
15):

[1]   "640x480"
[2]< "800x600"
[3]   "1024x768"
[4]   "1152x864"
[5]   "1280x800"
[6]   "1152x900"
[7]   "1280x1024"
[8]   "1376x1032"
[9]   "1400x900"
[10]   "1400x1050"
[11]   "1440x900"
[12]   "1680x1050"
[13]   "1600x1200"
[14]   "1920x1200"
[15]   "2364x1773"
Please enter a number between 1 and 15:
[2] 3
Starting VMware Tools services in the virtual machine:
Switching to guest configuration:                       [确定]
Guest filesystem driver:                                [确定]
Mounting HGFS shares:                                   [失败]
Guest memory manager:                                   [确定]
Guest vmxnet fast network device:                       [确定]
Blocking file system:                                   [确定]
DMA setup:                                           [确定]
Guest operating system daemon:                          [确定]
/etc/rc.d/init.d/vmware-tools: line 822: vmware-guestd: command not found
The configuration of VMware Tools 6.0.2 build-59824 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking the following command:
"/home/tsm/software/vmware-toolbox" during an X server session.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
To make use of the virtual printer, you will need to restart the CUPS service
Enjoy,
--the VMware team
[root@tsmpc vmware-tools-distrib]#

<think>好的,用户想在Ubuntu上安装VMware Tools,我需要根据提供的引用内容整理步骤。首先,看到引用[2]和[3]有具体的安装步骤,而引用[1]和[4]提供了一些注意事项。需要综合这些信息,确保步骤正确且简洁。 首先,用户可能已经知道VMware Tools的重要性,比如提升性能、改善交互等。根据引用[2],安装过程包括挂载镜像、复制文件、运行安装脚本。但引用[3]提到更简单的方法,使用apt安装open-vm-tools,这可能更适合新手,因为手动安装可能有依赖问题。另外,引用[4]提醒要正常关机,避免工具失效,这点需要注意。 需要比较两种方法:传统安装和使用open-vm-tools。根据引用[3],使用apt安装更简单,三步就能完成,可能更推荐。而引用[2]中的步骤较复杂,但可能适合特定情况。不过现在很多Linux发行版推荐使用open-vm-tools,所以应该优先建议这种方法。 然后整理步骤:先更新软件包,然后安装open-vm-tools和桌面组件,最后重启。同时,提醒用户正常关机,避免问题。此外,如果用户需要传统方式,再提供备选方案,但说明可能较复杂。 需要检查是否有冲突或遗漏。比如,引用[2]中的步骤包括挂载镜像和运行安装脚本,但引用[3]的方法更直接。可能用户更倾向简单的方法,所以主推apt安装,同时提到传统方法作为选项。还要注意是否需要先卸载旧版本,但引用中没有提到,可能不需要。 最后,确保回答结构清晰,分步骤说明,并加入注意事项。这样用户能轻松跟随,避免常见错误。</think>以下是Ubuntu系统上安装VMWare Tools的两种方法及详细步骤: ### 方法一:通过APT安装(推荐) 1. **更新软件包列表** ```bash sudo apt-get update ``` 2. **安装open-vm-tools核心组件** ```bash sudo apt-get install open-vm-tools ``` 3. **安装桌面增强功能(适用于图形界面)** ```bash sudo apt-get install open-vm-tools-desktop ``` 4. **重启系统生效** ```bash sudo reboot ``` ### 方法二:传统ISO镜像安装 1. **挂载安装镜像** - 点击VMware菜单栏的"虚拟机 > 安装VMware Tools" - 桌面会出现`VMware Tools`光盘图标 2. **复制安装文件到本地** ```bash cp /media/$USER/VMware\ Tools/VMwareTools-*.tar.gz ~/Desktop/ cd ~/Desktop tar -zxvf VMwareTools-*.tar.gz ``` 3. **执行安装脚本** ```bash cd vmware-tools-distrib/ sudo ./vmware-install.pl ``` - 安装过程中第一个提示输入`yes`,其他保持默认回车即可[^2] ### 注意事项 1. 安装完成后**必须正常重启系统**,直接关闭虚拟机可能导致功能异常[^4] 2. 若出现文件共享失效,可尝试重装: ```bash sudo vmware-config-tools.pl ``` 3. 推荐优先使用`open-vm-tools`,这是VMware官方维护的开源版本,与Ubuntu兼容性更好[^3] ### 验证安装 执行以下命令查看版本信息: ```bash vmware-toolbox-cmd -v ``` 成功安装后,可实现: - 主机与虚拟机间的**双向剪贴板共享** - **自适应分辨率调整** - **文件拖放传输** - 更流畅的3D图形加速
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值