VM linux安装VMware-tools教程及其常见错误【所有错误已解决】

VM linux安装VMware-tools教程及其常见错误【所有错误已解决】 1、挂在光盘出现写保护mount: block device /dev/sr0 is write-protected, mounting read-only;2、在安装VMware-tools出现bash:./vmware-install.pl :/usr/bin/perl:bad interpreter:No such file or directory;3、安装vmware-tools出现”what is the location of the “ifconfig”program on your machine?”;4、the path ‘’ is not valid path to gcc binary5、The path “” is not a valid path to the 3.10.0-693.el7.x86_64 kernel headers


【安装教程在后面】


常见错误:

错误1 挂在光盘出现写保护mount: block device /dev/sr0 is write-protected, mounting read-only :
方法1:

$ mount -o remount,rw /dev/cdrom /mnt/cdrom 

方法2(新手建议用):

$ chmod 777 /dev/sr0 # 直接改变权限
$ mount /dev/cdrom /mnt/cdrom

错误2 在安装VMware-tools出现bash:./vmware-install.pl :/usr/bin/perl:bad interpreter:No such file or director :
这是由缺少依赖造成的,执行以下命令即可(centos):

$ yum groupinstall "Perl Support" # Ubuntu系统请将yum改成apt-get

错误3 安装vmware-tools出现”what is the location of the “ifconfig”program on your machine :
出现这个问题的错误是因为网络问题, 解决办法如下:

$ yum update #更新yum # Ubuntu系统请将yum改成apt-get
$ yum install net-tools # Ubuntu系统请将yum改成apt-get

错误4 the path ‘’ is not valid path to gcc binary :
没有安装gcc

$ yum update #更新yum 已经更新后的跳过此步骤 # Ubuntu系统请将yum改成apt-get
$ yum install gcc # Ubuntu系统请将yum改成apt-get

错误5 The path “” is not a valid path to the 3.10.0-693.el7.x86_64 kernel headers
缺少依赖,安装即可:

$ yum install kernel-devel-$(uname -r)



安装步骤:

1、点击安装VMware-Tools
如图:选中主机,点击安装VMware-Tools:
在这里插入图片描述
2、挂载文件及读取
在root用户,或者有root权限的用户下,输入:

$ mkdir /mnt/cdrom  #创建目录
$ mount /dev/cdrom /mnt/cdrom/  #挂载CDROM,第1步时自动创建/dev/cdrom
$ cd /mnt/cdrom/ # 查看挂载后的文件查看数据

在这里插入图片描述
遇到错误请看文章开头…

3、解压VMware.tar.gz,并安装

$ tar zxvf VMwareTools-10.1.6-.tar.gz  #这里请用自动补全,解压自己版本的vm-tool
$ cd vmware-tools- #请用自动补全,进入自己解压的文件
$ ./vmware-install.pl #开始安装

$ 安装过程中,所有选项默认即可

在这里插入图片描述
遇到错误请看文章开头…

!!至此,安装全部完成

参考文献:
[1]: https://blog.csdn.net/yueludanfeng/article/details/60339688
[2]: https://blog.csdn.net/lly7858/article/details/9347159
[3]: https://blog.csdn.net/qq648483997/article/details/88640936

如果你觉得这篇文章有用,请点个赞吧…

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

_刘文凯_

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

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

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

打赏作者

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

抵扣说明:

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

余额充值