首页 > 系统相关 >安装VMware Tools

安装VMware Tools

时间:2024-06-18 18:14:04浏览次数:21  
标签:Tools VMware tools INPUT installer 安装 vmware

安装VMware Tools

在Debian 9系统上安装

1、查看系统版本

hostnamectl查看系统版本信息

显示当前的操作系统是 Debian 9,代号为 "stretch"。这是Debian的一个长期支持版本,发布于2017年。

root@ucs-8389:~# hostnamectl
Static hostname: ucs-8389
Icon name: computer-vm
Chassis: vm
Machine ID: 23**************
Boot ID: 42*****************
Virtualization: vmware
Operating System: Debian GNU/Linux 9 (stretch)
Kernel: Linux 4.9.0-11-amd64
Architecture: x86-64
root@ucs-8389:~#

可选操作:确保系统更新:

即便 Debian 9 不再接收安全更新,安装之前还是建议先更新系统已有的包:

sudo apt-get update
sudo apt-get upgrade

2、安装必要的工具:

apt-get install build-essential linux-headers-$(uname -r) module-assistant

3、在 VMware 中装载 VMware Tools ISO:

打开 VMware 界面,选择您的虚拟机,然后从菜单中选择 "虚拟机" -> "安装 VMware Tools"(或类似选项,具体取决于 VMware 的版本和界面语言)。这会装载一个 VMware Tools 的 ISO 文件到虚拟机的光驱中。(前提是必须挂载一个CD光驱)

前提是必须挂载一个CD光驱

4、挂载 VMware Tools ISO: 在虚拟机的终端中,找到光驱挂载点,通常是 /media/cdrom,然后将其挂载:

sudo mount /dev/cdrom /mnt

5、复制 VMware Tools 到本地目录并解压: 进入挂载目录,找到 VMware Tools 的 tarball 文件,通常名为 VMwareTools-x.x.x-yyyyyyyy.tar.gz,然后复制到一个工作目录并解压:

cd /mnt
cp VMwareTools-10.3.23-17030940.tar.gz /tmp/
cd /tmp
tar -zxvf VMwareTools-10.3.23-17030940.tar.gz

安装 VMware Tools: 进入解压后的目录,运行安装脚本:

cd vmware-tools-distrib
sudo ./vmware-install.pl

如果你遇到这样的报错问题

root@ucs-8389:/tmp/vmware-tools-distrib# ./vmware-install.pl
open-vm-tools packages are available from the OS vendor and VMware recommends
using open-vm-tools packages. See

http://kb.vmware.com/kb/2073803
for more
information.
Do you still want to proceed with this installation? [no]

这时需要安装如下

apt-get install open-vm-tools open-vm-tools-desktop

正常的安装过程中,大多数情况下您可以接受默认设置,只需按回车键即可。但如果您有特殊需求,可以根据提示进行相应配置。(过程如下)

查看代码
 root@ucs-8389:/tmp/vmware-tools-distrib# ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools packages
on this system and will not attempt to remove and replace these user-space
applications. It is recommended to use the open-vm-tools packages provided by
the operating system. If you do not want to use the existing installation of
open-vm-tools packages and use VMware Tools, you must uninstall the
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
Packages must be removed with the --purge option.
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] yes

INPUT: [yes]

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?
[/usr/bin]

INPUT: [/usr/bin]  default

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

INPUT: [/etc]  default

What is the directory that contains the init scripts?
[/etc/init.d]

INPUT: [/etc/init.d]  default

In which directory do you want to install the daemon files?
[/usr/sbin]

INPUT: [/usr/sbin]  default

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

INPUT: [/usr/lib/vmware-tools]  default

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

INPUT: [yes]  default

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

INPUT: [/usr/share/doc/vmware-tools]  default

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

INPUT: [yes]  default

The installation of VMware Tools 10.3.23 build-17030940 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-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]

INPUT: [yes]  default


You have chosen to install VMware Tools on top of an open-vm-tools package.
You will now be given the option to replace some commands provided by
open-vm-tools.  Please note that if you replace any commands at this time and
later remove VMware Tools, it may be necessary to re-install the open-vm-tools.

The file /usr/bin/vmware-hgfsclient that this program was about to install
already exists.  Overwrite? [no]

INPUT: [no]  default

The file /sbin/mount.vmhgfs that this program was about to install already
exists.  Overwrite? [no]

INPUT: [no]  default

The file /usr/bin/vmhgfs-fuse that this program was about to install already
exists.  Overwrite? [no]

INPUT: [no]  default

Initializing...


Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [no]

INPUT: [no]  default

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)


Skipping configuring automatic kernel modules as no drivers were installed by
this installer.


Skipping rebuilding initrd boot image for kernel as no drivers to be included
in boot image were installed by this installer.

The configuration of VMware Tools 10.3.23 build-17030940 for Linux for this
running kernel completed successfully.

Found VMware Tools CDROM mounted at /mnt. Ejecting device /dev/sr0 ...
VMware Tools installed on top of open-vm-tools has not added anything of
significance or potential benefit.  VMware Tools is not needed.

Would you like to recover the wasted disk space by uninstalling VMware Tools at
this time? (yes/no) [yes]

INPUT: [yes]  default

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done

The removal of VMware Tools 10.3.23 build-17030940 for Linux completed
successfully.  Thank you for having tried this software.

root@ucs-8389:/tmp/vmware-tools-distrib#

完成安装并重启: 安装完成后,根据提示重启虚拟机以使所有更改生效:

安装成功重启后的效果截图:主机和IP地址都会显示出来,VMware Tools也会变成“是”

标签:Tools,VMware,tools,INPUT,installer,安装,vmware
From: https://www.cnblogs.com/Magiclala/p/18254860

相关文章

  • win——win安装curl
    参考原文链接:https://blog.csdn.net/weixin_45191386/article/details/1306528211、Curl简介curl命令网络应用curl命令是一个利用URL规则在命令行下工作的文件传输工具。CURL支持的通信协议有FTP、FTPS、HTTP、HTTPS、TFTP、SFTP、Gopher、SCP、Telnet、DICT、FILE、LDAP、LDAP......
  • Win11+Miniconda3+python3.9安装pyspark+pytorch
    Win11+Miniconda3+python3.9安装pyspark+pytorch步骤1:安装Miniconda3,具体可以百度或者google步骤2:安装好Miniconda3之后,要创建虚拟环境,类似于虚拟机的样子,然后在虚拟环境安装各种python包已经装好了pytorch,具体步骤可以参考网上的一些教程,很多时候要综合多个教程,比如说先建立......
  • perl 安装
    1.官网:PerlDownload-www.perl.org2.点击 3.  4.需要注册账号 1)下载包2)控制台运行包大概率失败3)执行上图中生成的step2,等待安装完成 5.查看perl安装完成信息perl-v ......
  • PHP Linux安装扩展(编译安装)
    0x01下载包并解压http://pecl.php.net/package/mailparsetar-xzfmailparse.tgzcdmailparse0x02配置/www/server/php/74/bin/phpize./configure--with-php-config=/www/server/php/74/bin/php-config0x03编译并安装makesudomakeinstall0x04激活编辑php.......
  • Ubuntu-24-04-LTS-稳定正式版安装
    一、介绍说明Ubuntu24.04LTS已正式发布,代号“NobleNumbat”。Canonical首席执行官MarkShuttleworth称Ubuntu24.04LTS会提供至少12年的支持,并在性能工程和机密计算方面提升明显,还集成了通过TCK认证的LTS版本Java、.NET和最新的Rust工具链。主要亮点如下:......
  • git的下载、安装及本地环境配置教程
    目录一、到Git官网下载所需版本二、Git的安装三、本地环境的配置一、到Git官网下载所需版本1、我首先选择的是Windows。(具体看你电脑的系统)2、git有两个版本【steup】设置版本与【portable】便携式版本,我下载是【steup】版本的。【steup】设置版本:是安装到自己电脑上......
  • MySQL的下载安装教程
    Windows系统中下MySQL的安装教程一、下载安装包1.百度网盘下载链接:https://pan.baidu.com/s/19Oe42yh0j5XK6yboNv7qMQ 提取码:8888 2.从MySQL官网安装打开MySQL官网 下载并打开安装包,能看到版本是8.0.37,双击运行或者右键选择打开,打开后是一个安装向导,这个安装......
  • OpenStack一键安装部署与配置(全网最详细)
    一,安装环境准备(步骤比较多,建议搭建合理利用虚拟机快照)下载Linux操作系统CentOS7.9镜像:http://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso;1.创建在VMware中创建实验用的虚拟机实例。CPU2x2,(开启虚拟化引擎),内存4G以上,硬盘80G,NAT网络模式......
  • 【New Relic】给基于.NET Framework 4.0 的 exe 程序安装New Relic
    由于.NETFramework4.0是比较古老的版本,只有NewRelic7.0以下的版本才会支持.NETFramework4.0的引用程序。 Technicalsupportfor.NETFramework4.0orlower 你可以参考这个官方InstallNewRelictoMonitoryourApp的文档。 1.创建NewRelic账号创建一个Ne......
  • <转载>使用inotify-tools监控文件夹或文件的变动
    版权声明:本文为博主原创文章,遵循CC4.0BY-SA版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/ywd1992/article/details/106251339文章目录一、前言什么是inotify和inotify-tools检查系统是否支持inotify二、安装使用inotify-tools获取安装包......