VCSA中linux系统虚拟机 (CentOS/RHEL最小化安装版) 安装 VMware Tools

这篇具有很好参考价值的文章主要介绍了VCSA中linux系统虚拟机 (CentOS/RHEL最小化安装版) 安装 VMware Tools。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

VCSA中linux系统虚拟机 (CentOS/RHEL最小化安装版) 安装 VMware Tools

一、简介

# 在VCSA中创建完虚拟机后,创建的虚拟机默认是没有安装VMware Tools工具的。
本文以VCSA中部署的最小化安装的CentOS 7虚拟机为例,详细介绍了在VCSA中如何安装VMware Tools工具。

二、进安装VMware Tools前准备工作

1)在VCSA页面中,点击 “安装VMware Tools”,如下图所示

# 注意:执行该步骤时,虚拟机要在开机的情况下才可以执行成功

如何在centos7安装vmware tool,linux,centos,vmware

2)点击 “挂载”,如下图所示

如何在centos7安装vmware tool,linux,centos,vmware

3)在虚拟机的编辑设置中,查看CD/DVD驱动器中“VMware Tools”镜像文件的状态为“已连接”

如何在centos7安装vmware tool,linux,centos,vmware

三、进入系统后的相关操作

1)验证“VMware Tools”镜像文件在系统内部是否可以看到,创建挂载目录,并挂载

# 1、在/dev/目录下有cdrom
[root@localhost ~]# ll /dev/cdrom 
lrwxrwxrwx. 1 root root 3 913 22:07 /dev/cdrom -> sr0

# 2、创建挂载点
[root@localhost ~]# mkdir /mnt/cdrom

# 3、挂载“VMware Tools”镜像文件
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: /dev/sr0 写保护,将以只读方式挂载

[root@localhost ~]# ll /mnt/cdrom/
总用量 56840
-r-xr-xr-x. 1 root root     1976 102 2019 manifest.txt
-r-xr-xr-x. 1 root root     4943 102 2019 run_upgrader.sh
-r--r--r--. 1 root root 56405224 102 2019 VMwareTools-10.3.21-14772444.tar.gz
-r-xr-xr-x. 1 root root   872044 102 2019 vmware-tools-upgrader-32
-r-xr-xr-x. 1 root root   918184 102 2019 vmware-tools-upgrader-64

2)拷贝“VMware Tools”镜像文件中的tar包文件至家目录,并解压

# 拷贝“VMware Tools”安装程序的tar包文件
[root@localhost ~]# cp /mnt/cdrom/VMwareTools-10.3.21-14772444.tar.gz ~
[root@localhost ~]# 
[root@localhost ~]# ls
anaconda-ks.cfg  VMwareTools-10.3.21-14772444.tar.gz

# 解压tar包文件
[root@localhost ~]# tar zxvf VMwareTools-10.3.21-14772444.tar.gz 


# 进入解压后的文件夹
[root@localhost ~]# ls
anaconda-ks.cfg  VMwareTools-10.3.21-14772444.tar.gz  vmware-tools-distrib
[root@localhost ~]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]#
[root@localhost vmware-tools-distrib]# ls
bin  caf  doc  etc  FILES  INSTALL  installer  lib  vgauth  vmware-install.pl
[root@localhost vmware-tools-distrib]# ll
总用量 380
drwxr-xr-x.  2 root root     84 102 2019 bin
drwxr-xr-x.  5 root root     36 102 2019 caf
drwxr-xr-x.  2 root root     64 102 2019 doc
drwxr-xr-x.  5 root root   4096 102 2019 etc
-rw-r--r--.  1 root root 146996 102 2019 FILES
-rw-r--r--.  1 root root   2538 102 2019 INSTALL
drwxr-xr-x.  2 root root     91 102 2019 installer
drwxr-xr-x. 14 root root   4096 102 2019 lib
drwxr-xr-x.  3 root root     20 102 2019 vgauth
-rwxr-xr-x.  1 root root 227024 102 2019 vmware-install.pl

3)执行VMware Tools安装 : 预置环境部署

# 前置条件:系统中需已安装gcc,gcc++环境,若未安装,需执行以下命令
[root@localhost ~]# yum install -y gcc gcc*
执行安装程序时,报错提示:/usr/bin/perl: 坏的解释器: 没有那个文件或目录
[root@localhost vmware-tools-distrib]# ./vmware-install.pl                                                         
-bash: ./vmware-install.pl: /usr/bin/perl: 坏的解释器: 没有那个文件或目录  
# 报错原因为:没有安装perl环境,需手动安装perl环境,执行以下命令:
[root@localhost vmware-tools-distrib]# yum install -y perl

4)安装VMware Tools可执行文件:vmware-install.pl

[root@localhost 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] 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/rc.d]

INPUT: [/etc/rc.d]  default

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

INPUT: [/etc/rc.d/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 common agent library files? 
[/usr/lib]

INPUT: [/usr/lib]  default

In which directory do you want to install the common agent transient files? 
[/var/lib]

INPUT: [/var/lib]  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.21 build-14772444 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

Initializing...


Making sure services for VMware Tools are stopped.

Stopping vmware-tools (via systemctl):  [  确定  ]


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)

The vmblock enables dragging or copying files between host and guest in a 
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[no]

INPUT: [no]  default


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

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes]

INPUT: [yes]  default

Do you want to enable Common Agent (caf)? [no]

INPUT: [no]  default

No X install found.


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

Generating the key and certificate files.
Successfully generated the key and certificate files.
manageSELinux install: The 'semanage' utility was not found.
There was an error configuring the SELinux security context for VMware Tools.
Please make certain that SELinux is configured correctly.

The configuration of VMware Tools 10.3.21 build-14772444 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session
3. Restart your X session.

Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
Enjoy,

--the VMware team

[root@localhost vmware-tools-distrib]# 

四、安装完成后,需卸载VMware Tools镜像

如何在centos7安装vmware tool,linux,centos,vmware

# 安装完成后,需在命令行执行以下命令卸载VMware Tools镜像,释放挂载的镜像
[root@localhost vmware-tools-distrib]# umount /dev/cdrom 
umount: /dev/cdrom:未挂载

如何在centos7安装vmware tool,linux,centos,vmware

至此,已完成在VCSA中对linux系统命令行版虚拟机VMware Tools工具的安装。文章来源地址https://www.toymoban.com/news/detail-792134.html

到了这里,关于VCSA中linux系统虚拟机 (CentOS/RHEL最小化安装版) 安装 VMware Tools的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • C# 实现winform软件最小化到系统托盘,开机自启动

      问题描述   用户的电脑是win7系统,应用系统在用户电脑上运行时部分功能需要访问注册表,但是使用这些功能时会提示用户没有权限访问注册表。 原因分析   win7及后续高版本系统对用户的权限控制比较严,就算用户的权限较高,但用户启动程序时默认还是以普通用

    2024年02月03日
    浏览(28)
  • 机器学习的学习准则(期望风险最小化、经验风险最小化、结构风险最小化)

    训练集是有N个独立同分布的样本组成,即每个样本(x,y)是独立的从相同的分布中抽取的。这个真实的分布未知 输入空间X和输出空间Y构成样本空间,对于样本空间中的样本(x, y)∈X x Y,假定x和y之间可通过一个未知的真实隐射y=g(x)来描述,或者通过真实条件概率分布来描述。

    2024年02月09日
    浏览(37)
  • DFA的最小化

    一、实验目的 1.熟练掌握DFA与NFA的定义与有关概念。 2.理解并掌握确定的有穷自动机的最小化等算法。 二、实验要求 输入:DFA 输出:最小化的DFA 三、实验过程 1.化简DFA关键在于把它的状态集分成一些两两互不相交的子集,使得任何两个不相交的子集间的状态都是可区分

    2024年02月09日
    浏览(40)
  • 最小化安装移动云大云操作系统--BCLinux-for-Euler-22.10-everything-x86_64-230316版

    CentOS 结束技术支持,转为RHEL的前置stream版本后,国内开源Linux服务器OS生态转向了开源龙蜥和开源欧拉两大开源社区,对应衍生出了一系列商用Linux服务器系统。BCLinux-for-Euler-22.10是中国移动基于开源欧拉操作系统22.03社区版本深度定制的企业级X86服务器通用版操作系统。本文

    2024年02月11日
    浏览(42)
  • QT最小化程序到托盘运行

    实现程序关闭时最小化托盘的功能 托盘实现显示主页面和退出的功能 支持扩展,直接引用TrayIcon类即可,对外暴露接口 单例实现,可复用 注:博主所有资源永久免费,若有帮助,请点赞转发是对我莫大的帮助 注:博主本人学习过程的分享,引用他人的文章皆会标注原作者

    2024年02月05日
    浏览(39)
  • LeetCode——最小化字符串长度

    目录 一、题目 二、题目解读  三、代码  1、set去重 2、用一个二进制数记录每个字母是否出现过 6462. 最小化字符串长度 - 力扣(Leetcode) 给你一个下标从  0  开始的字符串  s  ,重复执行下述操作  任意  次: 在字符串中选出一个下标  i  ,并使  c  为字符串下标  i

    2024年02月08日
    浏览(32)
  • 捕获最小化窗口的缩略图画面

    : capture minimized window window thumbnail IsIconic  最小化的窗口,API GetClientRect 返回的窗口尺寸是0x0,故无法通过GetDC+BitBlt捕获到窗口画面。 但是 Agora/zoom/tencentMeeting 都可以拿到最小化窗口的缩略图。经确认这个程序并没有注入任何dll到目标窗口,且也没有临时显示最小化了

    2024年02月07日
    浏览(32)
  • Qt实现最小化窗口到托盘图标

    目录 前言: 1.先看效果图 2.大致思路以及实现流程 3.具体代码以及解释 4.总结 使用QT开发桌面软件,将软件最小化至托盘这样的功能的是比较常见的,今天自己实现一下这个功能,并进行记录总结。  主要功能就是当软件开始运行, 在系统托盘会自动出现一个关于本软件的

    2023年04月08日
    浏览(30)
  • unity发布设置(最小化、置顶、限制单开)

    1. 勾上下图标红处,发布后可防止按windows键缩小  2.发布后程序默认最小化 3.发布的程序只能开一个进程

    2024年02月12日
    浏览(33)
  • leetcode 2616. 最小化数对的最大差值

    在数组nums中找到p个数对,使差值绝对值的和最小。 思路: 最小差值应该是数值相近的一对数之间产生,让数值相近的数字尽量靠在一起方便计算,所以需要排序。 这里不去直接考虑一对对的数字,而是直接考虑差值的取值。 用binary search搜索一个差值。 左边界是0,右边界

    2024年02月13日
    浏览(29)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包