1. 程式人生 > >centos最小化系統安裝VMware tool

centos最小化系統安裝VMware tool

1.先執行命令建立環境

yum -y install update
yum -y install gcc kernel-headers kernel-devel

2.然後重啟reboot

3.掛載,解壓,執行

[[email protected] ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
[[email protected] ~]# cd /mnt
[[email protected] mnt]# ls
manifest.txt     VMwareTools-10.3.2-9925305.tar.gz  vmware-tools-upgrader-64
run_upgrader.sh  vmware-tools-upgrader-32
[
[email protected]
mnt]# tar -zxf VMwareTools-10.3.2-9925305.tar.gz -C /tmp [[email protected] mnt]# cd /tmp [[email protected] tmp]# ls vmware-tools-distrib [[email protected] tmp]# cd ./vmware-tools-distrib/ [[email protected] vmware-tools-distrib]# ls bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl [
[email protected]
vmware-tools-distrib]# ./vmware-install.pl

都預設enter  ,直到出現以下內容即成功安裝;

centos6.7

Creating a new initrd boot image for the kernel.
Generating the key and certificate files.
Successfully generated the key and certificate files.
vmware-tools start/running
The configuration of VMware Tools 10.3.2 build-9925305 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

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. Ejecting device /dev/sr0 ...

centos7.5

Creating a new initrd boot image for the kernel.
manageSELinux install: The 'semanage' utility was not found.
There was an error configuring the SELinux security context for VMware Tools.  
Please make certain that SELinux is configured correctly.

The configuration of VMware Tools 10.3.2 build-9925305 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

4.檢視共享檔案位置hgfs

[[email protected] ~]# ls /mnt/
hgfs/     test.txt