问题
Linux虚拟机安装VMware tools报如下错误
The guest operating system has locked the CD-ROM door and is probably using the CD-ROM, which can prevent the guest from recognizing media changes. If possible, eject the CD-ROM from inside the guest before disconnecting.
Disconnect anyway and override the lock?
解决方法
1.挂载CDROM
mount /dev/cdrom /mnt/cdrom
(如果报mount point /mnt/cdrom does not exit,则输入mkdir -p /mnt/cdrom
创建目录)
2.cd /mnt/cdrom
,ll
查看文件发现有VMwareTools的.tar.gz后缀的压缩文件
3.因为cdrom文件夹没有写权限,cp到其他路径,例如:cp VMwareTools-xx.xxx.xxx.tar.gz /home/soft
4.此时cd到soft路径再执行解压命令tar -zxvf VMwareTools-xx.xxx.xxx.tar.gz vmware-tools-distrib/
5.解压后cd vmware-tools-distrib
发现有vmware后缀为.pl的文件。执行即可安装。(没有安装perl的需要先安装perl)