centos7 安装vmware tool

在安装之前先说一个很神奇的事,我用root登录进去安装VMware tools发现不能显示VMware tools镜像,然后用普通用户登录进去安装发现出现了VMware tools镜像,但是安装过程中,命令基本都要加sudo,使用管理员权限。

安装步骤:

〇、通过普通用户登录进centos7 

一、安装依赖包:

[xulei@localhost ~]$ yum -y install perl gcc gcc-c++ make cmake kernel kernel-headers kernel-devel net-tools

二、在VMware中点击虚拟机,选择安装VMware tools安装(因为已经安装好了,所以显示重新安装)

三、将CD-ROM挂载到指定目录

查看是否存在cdrom文件夹。如果没有就创建一个

[xulei@localhost ~]$ cd /mnt

[xulei@localhost mnt]$ ls

cdrom

挂载目录:

[xulei@localhost ~]$ sudo  mount -t auto /dev/cdrom /mnt/cdrom

[sudo] xulei 的密码:

mount: /dev/sr0 写保护,将以只读方式挂载

四、拷贝安装包

首先查看一下自己的VMware tools的名字:

[xulei@localhost cdrom]$ ls

[xulei@localhost cdrom]$ sudo ls /mnt/cdrom

manifest.txt   vmware-tools-upgrader-32

run_upgrader.sh   vmware-tools-upgrader-64

VMwareTools-10.2.5-8068393.tar.gz

后面解压的时候需要用到上述的VMware tools版本号

拷贝:

[xulei@localhost cdrom]$ cd

[xulei@localhost ~]$ sudo cp /mnt/cdrom/VMwareTools-10.2.5-8068393.tar.gz ~

五、解除挂载

[xulei@localhost ~]$ umount /dev/cdrom

umount: /mnt/cdrom:umount 失败: 不允许的操作

[xulei@localhost ~]$ sudo umount /dev/cdrom

六、解压安装包

[xulei@localhost ~]$ sudo tar -zxvf VMwareTools-10.2.5-8068393.tar.gz ~

七、进入解压后的源码目录

[xulei@localhost ~]$ cd vmware-tools-distrib/

八、运行 `vmware-install.pl` 文件

[xulei@localhost vmware-tools-distrib]$ ./vmware-install.pl

后面就是一直回车就可以了

Please re-run this program as the super user.

Execution aborted.

Found VMware Tools CDROM mounted at /run/media/xulei/VMware Tools. Ejecting

device /dev/sr0 ...

[xulei@localhost vmware-tools-distrib]$ sudo ./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

The installer will next check if there are any missing kernel drivers. Type yes

if you want to do this, otherwise type no [yes] 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 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.5 build-8068393 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 /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 Thinprint services in the virtual machine:

  Stopping Virtual Printing daemon:                                  done

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? [yes]

INPUT: [yes]  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)

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

Thinprint provides driver-free printing. Do you wish to enable this feature?

[yes]

INPUT: [yes]  default

Creating a new initrd boot image for the kernel.

The configuration of VMware Tools 10.2.5 build-8068393 for Linux for this

running kernel completed successfully.

Enjoy,

--the VMware team

[xulei@localhost vmware-tools-distrib]$

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,222评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,455评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,720评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,568评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,696评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,879评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,028评论 3 409
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,773评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,220评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,550评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,697评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,360评论 4 332
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,002评论 3 315
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,782评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,010评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,433评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,587评论 2 350

推荐阅读更多精彩内容