VMware tools详细教程 解决安装失败等问题

时间:2024-03-28 22:47:27

1、打开虚拟机VMware Workstation,启动Ubuntu系统,菜单栏 - 虚拟机 - 安装VMware Tools,不启动Ubuntu系统是无法点击“安装VMware Tools”选项的,如下图:

VMware tools详细教程 解决安装失败等问题VMware tools详细教程 解决安装失败等问题
必须在虚拟机内部进行安装!!!

2、如果弹出如下框,点击是即可:

VMware tools详细教程 解决安装失败等问题

3、此时,会发现虚拟机设备下多了VMware Tools这一项,点击它,其里面有一个VMwareTools…tar.gz文件:

如果没有,关机然后需要关闭IOS指定镜像改为使用物理驱动器
VMware tools详细教程 解决安装失败等问题开启虚拟机后然后就会出现tar.gz文件

4、接下来我们把VMwareTools…tar.gz文件提取到某个目录下你自己定义然后cd到那个文件目录下进行操作。

5、提取完成后会发现桌面的myfile里面多了一个vmware-tools-distrib文件夹,这个正是我们待会安装需要用到的:

6、下面我们快捷键Ctrl+Alt+T,启动命令框,然后切换到root用户(切换命令为:sudo su,回车然后会提示你输入当前登录用户的密码,输入成功后即可进入root用户):注密码不会显示
大家都应该懂

7、然后我们以root用户进入到刚刚提取到的vmware-tools-distrib文件夹下,然后输入命令:./vmware-install.pl,然后回车,如下文:
安装过程的画面,全部使用默认值,一直按 Enter 就对了,能yes就yes
如果碰到只有no或者安装安装vmware-tools时出现Unable to find the answer LIBDIR in the installer database错误就rm -rf /etc/vmware-tool
然后再进行操作

In which directory do you want to install the binary files?
[/usr/bin]

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

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

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

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

Thepath “/usr/lib/vmware-tools” does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
[yes]

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

Thepath “/usr/share/doc/vmware-tools” does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want?
[yes]

The installation of VMware Tools 5.5.1 build-19175 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]

一直yes和回车
然后就安装完成啦。。!!!重启虚拟机然后拉个文件试试能拉进去就成啦! 如果成功就OK不成功再按找原来的执行一遍