Linux下安装VMware Tools

本文提供了一套完整的Linux系统下安装VMwareTools的步骤指南,从主机操作到虚拟机内的安装流程,包括如何检查CD-ROM自动挂载状态、手动挂载CD-ROM、删除旧安装目录、列出挂载点目录内容并找到安装文件,最终通过解压和运行安装程序完成安装。

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

Linux下安装VMware Tools的步骤

01.On the host, from the Workstation menu bar, select VM > Install VMware Tools.
   If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools.
02.In the virtual machine, log in to the guest operating system as root and open a terminal window.
03.Run the mount command with no arguments to determine whether your Linux distribution automatically mounted the VMware Tools virtual CD-ROM image.
   If the CD-ROM device is mounted, the CD-ROM device and its mount point are listed as something like this:
   /dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev)
04.If the VMware Tools virtual CD-ROM image is not mounted, mount the CD-ROM drive.
   a    If a mount point directory does not already exist, create it.
        mkdir /mnt/cdrom
        Some Linux distributions use different mount point names. For example, on some distributions the mount point is /media/VMware Tools rather than /mnt/cdrom. Modify the command to reflect the conventions that your distribution uses.
   b    Mount the CD-ROM drive.
        mount /dev/cdrom /mnt/cdrom
        Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the command to reflect the conventions that your distribution uses.
05.Change to a working directory (for example, /tmp).
   cd /tmp
06.Delete any previous vmware-tools-distrib directory before you install VMware Tools.
   The location of this directory depends on where you placed it during the previous installation. Often this directory is placed in /tmp/vmware-tools-distrib.
07.List the contents of the mount point directory and note the filename of the VMware Tools tar installer.
   ls mount-point
08.Uncompress the installer.
   tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gz
   The value x.x.x is the product version number, and yyyy is the build number of the product release.
   If you attempt to install a tar installation over an RPM installation, or the reverse, the installer detects the previous installation and must convert the installer database format before continuing.
09.If necessary, unmount the CD-ROM image.
   umount /dev/cdrom
   If your Linux distribution automatically mounted the CD-ROM, you do not need to unmount the image.
10.Run the installer and configure VMware Tools.
   cd vmware-tools-distrib
   ./vmware-install.pl
   Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
11.Respond to the prompts by pressing Enter to accept the default values, if appropriate for your configuration.
12.Follow the instructions at the end of the script.
   Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks.







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值