VM 安装VM Tools实现拖拽文件到Linux(亲测可用)
分类:
文章
•
2024-05-19 13:45:04
- 在虚拟软件中选择“安装/重新安装VMware Tools
- 切换到root用户,用root用户登陆系统安装VMwareTools功能增加包:
命令:su root
- 创建/media/cdrom目录:
[[email protected] 桌面]# mkdir -p /media/cdrom
- 将光驱设备挂载到该目录上:
[[email protected] 桌面]# mount /dev/cdrom /media/cdrom
- 进入到该挂载目录:
[[email protected] 桌面]# cd /media/cdrom
- 将功能增强包复制到/home目录中:
[[email protected] cdrom]# cp VMwareTools-9.9.0-2304977.tar.gz /home
- 进入到/home目录中:
[[email protected] cdrom]# cd /home
- 解压功能增强包:
[[email protected] home]# tar -xzvf VMwareTools-9.9.0-2304977.tar.gz
………………此处省略解压过程细节………………
- 进入解压文件夹中:
[[email protected] home]# cd vmware-tools-distrib/
- 运行安装脚本并加上参数-d,代表默认安装:
[[email protected] vmware-tools-distrib]#./vmware-install.pl -d
打印如下内容:
The installer has detected an existinginstallationlinxprobediancom/chapter-01dianhtml of open-vm-tools on this
…………省略部分安装过程,当您看到这个字样后,重启后即可正常使用VmwareTools…………
Creating a new initrd boot image for thekernel.
Starting Virtual Printing daemon: done
Starting vmware-tools (via systemctl): [OK ]
The configuration of VMware Tools 9.9.0build-2304977 for Linux for this
running kernel completed successfully.
Enjoy,
–the VMware team
- 重新启动系统后生效
[[email protected] ~]# reboot