VMware Tools 安装

来源:互联网 发布:unity3d lua教程 编辑:程序博客网 时间:2024/05/20 14:18




[root@localhost mnt]# mkdir /mnt/cdrom[root@localhost mnt]# mount /dev/cdrom /mnt/cdrommount: /dev/sr0 is write-protected, mounting read-only[root@localhost mnt]# pwd/mnt[root@localhost mnt]# ls -ltotal 2dr-xr-xr-x. 2 hadoop hadoop 2048 Feb 11 02:21 cdrom[root@localhost mnt]# 
[root@localhost mnt]# cd cdrom[root@localhost cdrom]# ls -ltotal 56309-r-xr-xr-x. 1 hadoop hadoop     1975 Feb 11 02:09 manifest.txt-r-xr-xr-x. 1 hadoop hadoop     2287 Feb 11 02:07 run_upgrader.sh-r--r--r--. 1 hadoop hadoop 56003938 Feb 11 02:10 VMwareTools-10.1.5-5055693.tar.gz-r-xr-xr-x. 1 hadoop hadoop   802620 Feb 11 02:08 vmware-tools-upgrader-32-r-xr-xr-x. 1 hadoop hadoop   848816 Feb 11 02:08 vmware-tools-upgrader-64[root@localhost cdrom]# pwd/mnt/cdrom[root@localhost cdrom]# cp VMwareTools-10.1.5-5055693.tar.gz /tmp
[root@localhost tmp]# tar -zxvf VMwareTools-10.1.5-5055693.tar.gz
[root@localhost vmware-tools-distrib]# ./vmware-install.plThe installer has detected an existing installation of open-vm-tools packages on this system and will not attempt to remove and replace these user-space applications. It is recommended to use the open-vm-tools packages provided by the operating system. If you do not want to use the existing installation of open-vm-tools packages and use VMware Tools, you must uninstall the open-vm-tools packages and re-run this installer.The packages that need to be removed are:open-vm-toolsThe installer will next check if there are any missing kernel drivers. Type yesif you want to do this, otherwise type no [yes] yesCreating a new VMware Tools installer database using the tar4 format.Installing VMware Tools.In which directory do you want to install the binary files? [/usr/bin] What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d] What is the directory that contains the init scripts? [/etc/rc.d/init.d] In which directory do you want to install the daemon files? [/usr/sbin] In which directory do you want to install the library files? [/usr/lib/vmware-tools] The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want?[yes] yesIn which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools] The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] yesThe installation of VMware Tools 10.1.5 build-5055693 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".Before running VMware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want this program to invoke the command for you now? [yes] yesYou have chosen to install VMware Tools on top of an open-vm-tools package.  You will now be given the option to replace some commands provided by open-vm-tools.  Please note that if you replace any commands at this time and later remove VMware Tools, it may be necessary to re-install the open-vm-tools.The file /usr/bin/vmware-hgfsclient that this program was about to install already exists.  Overwrite? [no] noThe file /usr/bin/vmhgfs-fuse that this program was about to install already exists.  Overwrite? [no] noInitializing...Making sure services for VMware Tools are stopped.The module vmci has already been installed on this system by another installer or package and will not be modified by this installer.The module vsock has already been installed on this system by another installeror package and will not be modified by this installer.The module vmxnet3 has already been installed on this system by another installer or package and will not be modified by this installer.The module pvscsi has already been installed on this system by another installer or package and will not be modified by this installer.The module vmmemctl has already been installed on this system by another installer or package and will not be modified by this installer.The VMware Host-Guest Filesystem allows for shared folders between the host OS and the guest OS in a Fusion or Workstation virtual environment.  Do you wish to enable this feature? [yes] yesBefore you can compile modules, you need to have the following installed... makegcckernel headers of the running kernelSearching for GCC...Detected GCC binary at "/bin/gcc".The path "/bin/gcc" appears to be a valid path to the gcc binary.Would you like to change it? [no] noSearching for a valid kernel header path...Detected the kernel headers at "/lib/modules/3.10.0-514.el7.x86_64/build/include".The path "/lib/modules/3.10.0-514.el7.x86_64/build/include" appears to be a valid path to the 3.10.0-514.el7.x86_64 kernel headers.Would you like to change it? [no] noUsing kernel build system.make: Entering directory `/tmp/modconfig-cp7l2R/vmhgfs-only'/bin/make -C /lib/modules/3.10.0-514.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \  MODULEBUILDDIR= modulesmake[1]: Entering directory `/usr/src/kernels/3.10.0-514.el7.x86_64'  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/message.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/dir.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/rpcout.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/hgfsUtil.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/cpName.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/request.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/hgfsEscape.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/link.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/bdhandler.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/backdoor.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/transport.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/inode.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/file.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/super.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/stubs.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/fsutil.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/cpNameLinux.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/hgfsBd.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/filesystem.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/module.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/page.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/backdoorGcc64.o/tmp/modconfig-cp7l2R/vmhgfs-only/backdoorGcc64.o: warning: objtool: BackdoorHbIn()+0xd: duplicate frame pointer save/tmp/modconfig-cp7l2R/vmhgfs-only/backdoorGcc64.o: warning: objtool: BackdoorHbOut()+0xd: duplicate frame pointer save  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/dentry.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/cpNameLite.o  CC [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/kernelStubsLinux.o  LD [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/vmhgfs.o  Building modules, stage 2.  MODPOST 1 modules  CC      /tmp/modconfig-cp7l2R/vmhgfs-only/vmhgfs.mod.o  LD [M]  /tmp/modconfig-cp7l2R/vmhgfs-only/vmhgfs.komake[1]: Leaving directory `/usr/src/kernels/3.10.0-514.el7.x86_64'/bin/make -C $PWD SRCROOT=$PWD/. \  MODULEBUILDDIR= postbuildmake[1]: Entering directory `/tmp/modconfig-cp7l2R/vmhgfs-only'make[1]: `postbuild' is up to date.make[1]: Leaving directory `/tmp/modconfig-cp7l2R/vmhgfs-only'cp -f vmhgfs.ko ./../vmhgfs.omake: Leaving directory `/tmp/modconfig-cp7l2R/vmhgfs-only'The vmxnet driver is no longer supported on kernels 3.3 and greater. Please upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)VMware automatic kernel modules enables automatic building and installation ofVMware kernel modules at boot that are not already present. This feature canbe enabled/disabled by re-running vmware-config-tools.pl.Would you like to enable VMware automatic kernel modules?[yes] yesThinprint provides driver-free printing. Do you wish to enable this feature? [yes] yesCreating a new initrd boot image for the kernel.
Found VMware Tools CDROM mounted at /run/media/hadoop/VMware Tools. Ejecting device /dev/sr0 ...


[root@localhost vmware-tools-distrib]# cd /mnt/
[root@localhost mnt]# ls -l
total 5
drwxr-xr-x. 2 root root    6 May 17 20:30 cdrom
dr-xr-xr-x. 1 root root 4192 May 17  2017 hgfs
[root@localhost mnt]# cd hgfs
[root@localhost hgfs]# pwd
/mnt/hgfs
[root@localhost hgfs]# ls -l
total 4
drwxrwxrwx. 1 root root 4096 May 17 18:59 java
[root@localhost hgfs]# cd java
[root@localhost java]# ls -l
total 4896192
-rwxrwxrwx. 1 root root    8491533 May 16 23:47 apache-maven-3.3.9-bin.tar.gz
-rwxrwxrwx. 1 root root    3845425 May 16 22:56 apache-maven-3.3.9-src.tar.gz
-rwxrwxrwx. 1 root root 4379901952 May 16 20:12 CentOS-7-x86_64-DVD-1611.iso
-rwxrwxrwx. 1 root root    8556639 May 17 00:55 findbugs-noUpdateChecks-3.0.1.tar.gz
-rwxrwxrwx. 1 root root  199635269 May 15 23:44 hadoop-2.6.5.tar.gz
-rwxrwxrwx. 1 root root   18258529 May 16 21:02 hadoop-2.7.3-src.tar.gz
-rwxrwxrwx. 1 root root  142249690 May 16 02:26 jdk-7u76-linux-x64.tar.gz
-rwxrwxrwx. 1 root root  185540433 May 16 19:58 jdk-8u131-linux-x64.tar.gz
-rwxrwxrwx. 1 root root   47098831 May 16 00:26 jre-7u79-linux-x64.tar.gz
-rwxrwxrwx. 1 root root    2401901 May 16 22:57 protobuf-2.5.0.tar.gz
-rwxrwxrwx. 1 root root   17699306 May 16 01:03 zookeeper-3.4.6.tar.gz

到这里,已经安装完成,并且可以和外部的window连接

原创粉丝点击