解决Linux安装 VMware tools 工具的方法

一:启动linux服务器,并用远程登录工具访问linux服务器

1:启动系统

2:用服务器控制台   :查看点ip地址

3:用客户端 连接服务器

二:挂起 vm虚拟机的 tools 安装光盘

三:开始进行tools工具的安装步骤

1:挂载 光盘

  1 [[email protected] ~]# cd /mnt/cdrom
  2 -bash: cd: /mnt/cdrom: No such file or directory
  3 [[email protected] ~]# mkdir /mnt/cdrom
  4 [[email protected] ~]# mount /dev/cdrom /mnt/cdrom
  5 mount: block device /dev/cdrom is write-protected, mounting read-only
  6 [[email protected] ~]#
  7 

2:进入光盘,并把安装包拷贝出来放到 /home/temp 目录下

1:进入光盘

  1 [[email protected] ~]# cd /mnt/cdrom
  2 [[email protected] cdrom]# pwd
  3 /mnt/cdrom
  4 [[email protected] cdrom]# ls
  5 manifest.txt     VMwareTools-10.1.6-5214329.tar.gz  vmware-tools-upgrader-64
  6 run_upgrader.sh  vmware-tools-upgrader-32
  7 [[email protected] cdrom]# 

2: 进行安装包的拷贝

  1 [[email protected] home]# cd /home/
  2 [[email protected] home]# ls
  3 oracle
  4 [[email protected] home]# pwd
  5 /home
  6 [[email protected] home]# mkdir /home/temp
  7 [[email protected] home]# ls
  8 oracle  temp
  9 [[email protected] home]# cd temp
 10 [[email protected] temp]# ls
 11 [[email protected] temp]# cp /mnt/cdrom/VMwareTools-10.1.6-5214329.tar.gz  /home/temp/
 12 [[email protected] temp]# ls
 13 VMwareTools-10.1.6-5214329.tar.gz
 14 [[email protected] temp]# 

3:解压安装包,并进行安装

1:进行压缩包解压

  1 [[email protected] cdrom]# cd /tmp/
  2 [[email protected] tmp]# tar zxvf VMwareTools-6.5.0-118166.tar.gz  //解压文件

2:进行安装文件的启动

  1 [[email protected] temp]# ls
  2 VMwareTools-10.1.6-5214329.tar.gz  vmware-tools-distrib
  3 [[email protected] temp]# cd vmware-tools-distrib/
  4 [[email protected] vmware-tools-distrib]# ls
  5 bin  caf  doc  etc  FILES  INSTALL  installer  lib  vgauth  vmware-install.pl
  6 [[email protected] vmware-tools-distrib]# ./vmware-install.pl 

3:以下是安装执行过程。基本是一路回车键按到北

  1 [[email protected] vmware-tools-distrib]# ./vmware-install.pl
  2 A previous installation of VMware Tools has been detected.
  3
  4 The previous installation was made by the tar installer (version 4).
  5
  6 Keeping the tar4 installer database format.
  7
  8 You have a version of VMware Tools installed.  Continuing this install will
  9 first uninstall the currently installed version.  Do you wish to continue?
 10 (yes/no) [yes]
 11
 12 Uninstalling the tar installation of VMware Tools.
 13
 14 Stopping services for VMware Tools
 15
 16 Skipping VMware Tools services shutdown on the host:[  OK  ]
 17
 18
 19 The removal of VMware Tools 10.1.6 build-5214329 for Linux completed
 20 successfully.
 21
 22 Installing VMware Tools.
 23
 24 In which directory do you want to install the binary files?
 25 [/usr/bin]
 26
 27 What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
 28 [/etc/rc.d]
 29
 30 What is the directory that contains the init scripts?
 31 [/etc/rc.d/init.d]
 32
 33 In which directory do you want to install the daemon files?
 34 [/usr/sbin]
 35
 36 In which directory do you want to install the library files?
 37 [/usr/lib/vmware-tools]
 38
 39 The path "/usr/lib/vmware-tools" does not exist currently. This program is
 40 going to create it, including needed parent directories. Is this what you want?
 41 [yes]
 42
 43
 44 In which directory do you want to install the common agent library files?
 45 [/usr/lib]
 46 In which directory do you want to install the common agent transient files?
 47 [/var/lib]
 48
 49 In which directory do you want to install the documentation files?
 50 [/usr/share/doc/vmware-tools]
 51
 52 The path "/usr/share/doc/vmware-tools" does not exist currently. This program
 53 is going to create it, including needed parent directories. Is this what you
 54 want? [yes]
 55
 56 The installation of VMware Tools 10.1.6 build-5214329 for Linux completed
 57 successfully. You can decide to remove this software from your system at any
 58 time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
 59
 60 Before running VMware Tools for the first time, you need to configure it by
 61 invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
 62 this program to invoke the command for you now? [yes]
 63
 64 Initializing...
 65
 66
 67 Making sure services for VMware Tools are stopped.
 68
 69 Stopping Thinprint services in the virtual machine:
 70    Stopping Virtual Printing daemon: done
 71 Stopping VMware Tools services in the virtual machine:
 72    Guest operating system daemon:[  OK  ]
 73    VGAuthService:[  OK  ]
 74    VMware User Agent (vmware-user):[  OK  ]
 75    Blocking file system:[  OK  ]
 76    Unmounting HGFS shares:[  OK  ]
 77    Guest filesystem driver:[  OK  ]
 78    Guest memory manager:[  OK  ]
 79    VM communication interface socket family:[  OK  ]
 80    VM communication interface:[  OK  ]
 81    File system sync driver:[  OK  ]
 82
 83
 84 The VMware FileSystem Sync Driver (vmsync) allows external third-party backup
 85 software that is integrated with vSphere to create backups of the virtual
 86 machine. Do you wish to enable this feature? [yes]
 87
 88 Found a compatible pre-built module for vmsync.  Installing it...
 89
 90
 91 Found a compatible pre-built module for vmci.  Installing it...
 92
 93
 94 Found a compatible pre-built module for vsock.  Installing it...
 95
 96
 97 Found a compatible pre-built module for vmxnet3.  Installing it...
 98
 99
100 Found a compatible pre-built module for pvscsi.  Installing it...
101
102
103 Found a compatible pre-built module for vmmemctl.  Installing it...
104
105
106 The VMware Host-Guest Filesystem allows for shared folders between the host OS
107 and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
108 to enable this feature? [yes]
109
110 Found a compatible pre-built module for vmhgfs.  Installing it...
111
112
113 Found a compatible pre-built module for vmxnet.  Installing it...
114
115
116 The vmblock enables dragging or copying files between host and guest in a
117 Fusion or Workstation virtual environment.  Do you wish to enable this feature?
118 [yes]
119
120 Found a compatible pre-built module for vmblock.  Installing it...
121
122
123 VMware automatic kernel modules enables automatic building and installation of
124 VMware kernel modules at boot that are not already present. This feature can
125 be enabled/disabled by re-running vmware-config-tools.pl.
126
127 Would you like to enable VMware automatic kernel modules?
128 [yes]
129
130 Thinprint provides driver-free printing. Do you wish to enable this feature?
131 [yes]
132
133 Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
134 if you want to enable Common Agent (caf). [yes]
135
136
137
138 Detected X version 7.1
139
140
141
142 Do you want to change the starting screen display size? (yes/no) [no] yes
143
144
145 Unable to detect guest resolution.
146
147
148 Please choose one of the following display sizes that X will start with:
149
150 [1]< 640x480
151 [2]  800x600
152 [3]  1024x768
153 [4]  1280x800
154 Please enter a number between 1 and 4:
155
156 [1] 3
157
158
159 X is running fine with the new config file.
160
161 Creating a new initrd boot image for the kernel.
162
163 NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and
164       /etc/vmware-tools/GuestProxyData/server/cert.pem already exist.
165       They are not generated again. To regenerate them by force,
166       use the "vmware-guestproxycerttool -g -f" command.
167
168    Starting Virtual Printing daemon: done
169    Checking acpi hot plug[  OK  ]
170 Starting VMware Tools services in the virtual machine:
171    Switching to guest configuration:[  OK  ]
172    VMware Automatic Kmods:[  OK  ]
173    Paravirtual SCSI module:[  OK  ]
174    Guest memory manager:[  OK  ]
175    VM communication interface:[  OK  ]
176    VM communication interface socket family:[  OK  ]
177    Guest filesystem driver:[  OK  ]
178    Mounting HGFS shares:[FAILED]
179    Blocking file system:[  OK  ]
180    VMware User Agent:[  OK  ]
181    File system sync driver:[  OK  ]
182    Guest operating system daemon:[  OK  ]
183    VGAuthService:[  OK  ]
184 The configuration of VMware Tools 10.1.6 build-5214329 for Linux for this
185 running kernel completed successfully.
186
187 You must restart your X session before any mouse or graphics changes take
188 effect.
189
190 You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
191 command line.
192
193 To enable advanced X features (e.g., guest resolution fit, drag and drop, and
194 file and text copy/paste), you will need to do one (or more) of the following:
195 1. Manually start /usr/bin/vmware-user
196 2. Log out and log back into your desktop session
197 3. Restart your X session.
198
199 Enjoy,
200
201 --the VMware team
202
203 Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
204 /dev/scd0 ...
205 Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/cdrom ...
206 [[email protected] vmware-tools-distrib]# 

执行完毕后 系统会自动重启的。

时间: 2025-01-06 02:55:51

解决Linux安装 VMware tools 工具的方法的相关文章

linux 安装VMware Tools 方法 (1)

虚拟机安装 VMware Tools for Linux 介绍: VMware Tools是VMware虚拟机中自带的一种增强工具,相当于VirtualBox中的增强功能(Sun VirtualBox Guest Additions),是VMware提供的增强虚拟显卡和硬盘性能.以及同步虚拟机与主机时钟的驱动程序. 只有在VMware虚拟机中安装好了VMware Tools,才能实现主机与虚拟机之间的文件共享,同时可支持自由拖拽的功能,鼠标也可在虚拟机与主机之前自由移动(不用再按ctrl+alt

Linux下 安装VMware Tools工具

Linux下需要安装VMware Tools工具 Linux下需要安装VMware Tools工具来实现主机和虚拟机直接文件复制粘贴功能,安装方法如下: ①点击虚拟机VM菜单栏--虚拟机--安装VMware Tools. ②然后RedHat系统中弹出的安装包,找到VMwareTools-9.2.3-1031360.tar.gz 然后右键解压到/media目录下. ③进入/media用终端命令进行安装. [[email protected]?VMware?Tools]#?cd?/media/VMw

VMware10中的CentOS6.5命令行安装VMware tools工具启用windows与虚拟机中Linux系统的共享目录

一.描述 系统描述:win7旗舰版64位系统+VMware Workstation10+CentOS6.5(win7系统上安装了VMware Workstation10虚拟化软件,在该虚拟化软件上安装了CentOS6.5),现在我想要在win7系统和CentOS系统之间传递数据,那么我只要在虚拟机上安装VMware tools工具并启动共享目录即可. 二.安装步骤 1.VMware tools安装 1.1 选中要安装VMware tools的linux虚拟机,然后点击VMware Worksta

虚拟机中的Linux安装VMware Tools的方法

1. 在CD-ROM虚拟光驱中选择使用ISO镜像,找到VMWARE TOOLS 安装文件,如C:\program\VMware\VMware Workstation\Programs\linux.iso    当然这个ISO是你安装VMware workstation 的目录下的Linux.iso,不是你的Linux OS 镜像文件.VMware Tools一般都在这个文件里. 2. 以管理员身份进入Linux,root账号 3. 退出到windows,在虚拟机菜单栏中点击 虚拟机-> 安装 V

如何给Red Hat Linux安装Vmware Tools

众所周知在VMware虚拟机中安装好了VMware Tools,才能实现主机与虚拟机之间的文件共享,同时可支持自由拖拽的功能,鼠标也可在虚拟机与主机之前自由移动(而不再用按Ctrl+Alt释放),而且还可以令虚拟机屏幕也可实现全屏化,重要一点能使得虚拟机的来宾系统时间与宿主机一致. 那么Red Hat Linux系统如何安装VMware tools的呢? 下面就介绍该工具(Vmware-Tools)在Linux环境中的安装步骤: 1. 在安装Linux的虚拟机中,单击"虚拟机"菜单下的

Ubuntus安装vmware tools工具

1,选择虚拟机->安装VMware Tools(T)2,把下载的VMwareTools工具复制到桌面3,右击VMwareTools版本->Extract Here4,打开终端输入以下命令5,先输入sudo的权限密码,再输入y,后面一直回车,直到出现/dev/sr0 ...停止为止 原文地址:http://blog.51cto.com/13395901/2165361

KALI Linux安装VMware Tools

VMware Tools是虚拟机和物理机交换数据的一个强大工具,可以让虚拟机自适应窗口大小,以及物理机和虚拟机之间的复制黏贴操作等,能够更方便我们使用虚拟机的操作系统,接下来我们就在KALI中安装VMware Tools 首先打开虚拟机,单击虚拟机选项卡下的安装 VMware Tools选项 就会看到位置选项卡下多了一个VM的光驱标志,单击它 复制下图里的这个文件到桌面 然后打开终端,进入桌面目录 用ls命令查看当前目录下的文件,看到我们刚刚复制过来的VMtools压缩包 用 tar zxvf

wmware下linux安装vmware tools步骤

以在centos6.5的环境下安装VMwaretools为例说明安装步骤 1.选择虚拟机右键 ,安装/升级 VMware Tools ,此时安装包会映射到服务器中, 如下图,映射到/media/目录下 2.挂载此安装文件 mount /dev/sr0 /mnt/cdrom 3.查看Vmwaretools 中包含的文件 4.将 VMwareTools-9.9.2-2496486.tar.gz 文件拷贝到 /tmp临时目录下 cp VMwareTools-9.9.2-2496486.tar.gz /

kail2 linux 安装vmware tools

kali进去后,安装vmtools有点蛋疼,中途会问你要编译内核模块所需要的内核头文件,但是没有默认安装的.安装headers时又因为没有源下载不了,所以我们要做一些准备工作. 首先打开shell,我们要增加一个源. view source 1 vim /etc/apt/sources.list 或者 1 nano /etc/apt/sources.list 增加下面两行: 1 deb http://http.kali.org/kali kali main non-free contrib 2