VWmare设置挂载目录

 [root@localhost ~]# mkdir -p /mnt/cdrom  #首先创建一个挂载目录

[root@localhost ~]# mount -t auto /dev/cdrom /mnt/cdrom #进行挂载操作
mount: /dev/sr0 is write-protected, mounting read-only

[root@localhost ~]# cd /mnt/cdrom/ #进入到挂载目录
[root@localhost cdrom]# ll #查看挂载后的内容
total 56674
-r-xr-xr-x. 1 root root     1985 Sep 14  2017 manifest.txt
-r-xr-xr-x. 1 root root     4393 Sep 14  2017 run_ upgrader.sh
-r--r--r--. 1 root root 56375699 Sep 14  2017 VMwareTools-10.1.15-6627299.tar.gz  #这个文件很关键
-r-xr-xr-x. 1 root root   802620 Sep 14  2017 vmware-tools-upgrader-32
-r-xr-xr-x. 1 root root   848816 Sep 14  2017 vmware-tools-upgrader-64

[root@localhost cdrom]# cp VMwareTools-10.1.15-6627299.tar.gz /home/ #将该文件拷贝到其他目录下,我这里用的是home目录
[root@localhost cdrom]# umount /dev/cdrom  #解除挂载
umount: /mnt/cdrom: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

[root@localhost cdrom]# cd /home/ #进入到home目录
[root@localhost home]# ll
total 55056
-r--r--r--. 1 root root 56375699 Apr 20 08:17 VMwareTools-10.1.15-6627299.tar.gz

[root@localhost home]# tar -zxf VMwareTools-10.1.15-6627299.tar.gz  #解压刚刚拷贝过来的文件
[root@localhost home]# ll
total 55060
-r--r--r--. 1 root root 56375699 Apr 20 08:17 VMwareTools-10.1.15-6627299.tar.gz
drwxr-xr-x. 9 root root     4096 Sep 14  2017 vmware-tools-distrib

[root@localhost home]# cd vmware-tools-distrib/ #进入解压后的目录

[root@localhost vmware-tools-distrib]# ./ vmware-install.pl  #进行安装
open-vm-tools packages are available from the OS vendor and VMware recommends 
using open-vm-tools packages. See  http://kb.vmware.com/kb/2073803 for more 
information.
Do you still want to proceed with this installation? [no] yes  #这里要注意,需要输入yes

...(省略n行)
**********一路回车即可****************

To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session
3. Restart your X session.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...

#到这里VMware Tools安装完成 

猜你喜欢

转载自www.cnblogs.com/bigyuanzi/p/10743850.html