Install VMware Tools on CentOS 6.3

1 In the VMWare graphical interface, set the CentOS CD-ROM drive to C:\Program Files\VMware\VMware Workstation\linux.iso, and set it according to your VM installation directory;

2 Then, start CentOS; 

3 After booting, mount the CD-ROM
mount -t auto /dev/cdrom /mnt/cdrom This command is to mount the CentOS CDROM in the /mnt/cdrom directory, and you can access the contents inside;

Possible problems:
/mnt/cdrommount: mount point /mnt/cdrom does not exist -- the /mnt/cdrom directory does not exist and needs to be created first.

[root@CentOS6 /]# cd /mnt
[root@CentOS6 /]# mkdir -p /mnt/cdrom --Create /mnt/cdrom directory
[root@CentOS6 /]# mount -t auto /dev/cdrom /mnt/cdrom --mount CentOS CDROM mount mount: block device /dev/cdrom is write-protected, mounting read-only --mount successfully.

4 Use the files in the CD-ROM drive to install

[root@CentOS6 /]# cd /mnt/cdrom
[root@CentOS6 /]# ls -a
[root@CentOS6 /]# cp VMwareTools-8.6.1-19175.tar.gz /tmp
[root@CentOS6 /]# cd /tmp
[root@CentOS6 /]# tar zxpf VMwareTools-8.6.1-19175.tar.gz
[root@CentOS6 /]# cd vmware-tools-distrib
[root@CentOS6 vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.

Installing the content of the package. 

# The screen of the installation process, all use the default values, just keep pressing Enter.

until it appears:
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start

Enjoy,

--the VMware team

If the above appears, the basic installation is complete!

5 shutdown -r now restart

6 After restarting the computer and logging in again, we will find that when we want to leave the Guest OS, we no longer need to press "Ctrl + Alt",

Now let's share the Host OS folder for the Guest OS, [VM]→[Settings]
Note: "You do not have VMware Tools installed" was originally displayed in the lower left corner. Now that we have installed VMware Tools, it will no longer be displayed;

新增要分享的数据夹:〔Options〕→〔Shared Folders〕→〔Add〕〔下一步〕点选〔Browse〕,选取要分享的数据夹,这里是以 D盘为例,上面的「Name」您可以随意输入,这里是以 test 为例「Enable this share」启用这个分享

顺利的话,我们只要到「/mnt/hgfs」数据夹,就可以看到刚刚分享的数据夹了


相关参考:
CentOS CDROM挂载使用mount命令
http://os.51cto.com/art/201001/178745.htm

[ CentOS ] 安装VMware Tools
http://xxjcom.blog.51cto.com/259691/48462

如何在CentOS安裝VMWare Tools? (OS) (Linux) (CentOS) (VMWare)
http://www.cnblogs.com/oomusou/archive/2008/06/06/centos_vmware_tools.html

Linux 安装VMware Tools
http://www.ilegal.cn/POST/33.html




爱护动物,人人有责

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325605321&siteId=291194637