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

本文介绍在VMware Workstation虚拟机的Ubuntu系统中安装VMware Tools的详细步骤。需先启动Ubuntu系统,点击安装选项,若文件未出现需调整设置。提取文件后,切换到root用户,执行安装命令,安装过程使用默认值,完成后重启虚拟机测试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

在这里插入图片描述
必须在虚拟机内部进行安装!!!

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

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

如果没有,关机然后需要关闭IOS指定镜像改为使用物理驱动器
在这里插入图片描述开启虚拟机后然后就会出现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不成功再按找原来的执行一遍

评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

薄荷糖的余味

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值