开发者社区> ??????????????????> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

esxi中的虚拟机安装vmware tools

简介:
+关注继续查看

概述

说实在的这个很简单,我就是记录下,对于windows我就不说了,linux下不管有没有图形界面你都得去使用命令去安装这个东西所以我就介绍一下

操作

首先选中我们的虚拟机,选择操作->客户机操作系统->安装vmware tools

之后ssh进入我们的虚拟机

创建一个挂载点,其实就是创建一个目录

mkdir /cdrom

之后挂载vmware tools的光盘到这个目录

sudo mount /dev/cdrom /cdrom/

这个时候会报一个提示只读的一句话,不用管它,把里面的文件复制出来

mkdir vmware-tools && cp -Rf /cdrom/* vmware-tools

复制完成之后进入里面解压里面那个压缩包

tar -zxvf VMwareTools-10.2.1-8267844.tar.gz

之后执行安装脚本

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

安装过程差不多就是下面这个样子

[root@bboysoul-centos vmware-tools]# ./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] y

INPUT: [y]

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.2.1 build-8267844 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):  [  OK  ]


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

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] 

INPUT: [yes]  default

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.

Creating a new initrd boot image for the kernel.
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.2.1 build-8267844 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.

Enjoy,

--the VMware team

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

最后还自动把自己的cdrom卸载了,有点厉害

欢迎关注Bboysoul的博客www.bboysoul.com

Have Fun

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
VMware Tools安装
VMware挂载在Linux里的光盘文件里有个gz压缩包,解压到其他目录,运行里面的pl文件 安装过程中如果出现 [yes] :输入yes回车 no同理 出现其他 [xxx]:直接回车 如果出现如下报错 initctl:未知任务:vmware-to...
934 0
vmware esxi 安装
esxi扩展驱动 https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages#NIC_drivers VM 自定义工具包 ESXi-Customizer-v2.7.2 运行软件,载入iso,网卡驱动,选择目标文件夹。
811 0
VMware Tools安装
不是每一个程序员都必须玩过linux,只是博主觉得现在的很多服务器都是linux系统的,而自己属于那种前端也搞,后台也搞,对框架搭建也感兴趣,但是很多生产上的框架和工具都是安装在服务器上的,而且有不少大公司都要求熟悉在linux上开发,因此从个人职业发展有必要去多了解一下linux。
1002 0
MacOS虚拟机安装VMware tools 在主机与虚拟机之间共享文件和剪贴板
Windows7上MacOS虚拟机安装VMware tools,为了更好的在主机与虚拟机之间共享文件,共享剪贴板。 还没安装MacOS虚拟机? 请参考:Windows7上使用VMware安装MacOS虚拟机 下载安装文件: VMware tools for Mac OS 加载ISO文件到光驱 ...
1586 0
126
文章
1
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载