用到虚拟化的工具,我还是比较喜欢vm,但占用内存太高了,真是没得办法。今天我安装了Centos系统,以前我在配置好winodws srv的时候,直接使用安装vmtool工具,就可直接安装上,但Centos比较麻烦还得进行挂载安装操作。那么下面开始安装。
1、将vmtool 放入光驱中,然后我就使用命令了,开始安装,在安装的时候,需要为我们的Vmtool安装包,放置一个文件位置,在此我习惯性在/opt下创建了vmtool目录,方便管理
2、进入挂载目录内
[root@localhost /]# cd /media/
[root@localhost media]# ls VMware Tools3、创建/opt/vmtool/并将/media/下的内容全部复制到/opt/vmtool下
[root@localhost media]# mkdir /opt/vmtool
[root@localhost media]# chmod -R 777 /opt/vmtool/[root@localhost media]# cp -r VMware\ Tools/ /opt/vmtool/
4、进入/opt/vmtool/下解压并执行安装
[root@localhost VMware Tools]# tar zxvf VMwareTools-8.4.6-385536.tar.gz
vmware-tools-distrib/ vmware-tools-distrib/lib/ vmware-tools-distrib/lib/modules/ vmware-tools-distrib/lib/modules/binary/ vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/ vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/ vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/vmblock.o vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/vsock.o vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/vmci.o vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/vmhgfs.o vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/vmmemctl.o vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/objects/vmxnet.o vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/properties vmware-tools-distrib/lib/modules/binary/athlon-2.4.19-353-JDS2/ vmware-tools-distrib/lib/modules/binary/athlon-2.4.19-353-JDS2/objects/…………………………………………………………………………………………………..
中间省略
vmware-tools-distrib/installer/upstart-job.conf
vmware-tools-distrib/INSTALL vmware-tools-distrib/FILES [root@localhost VMware Tools]# ls manifest.txt VMwareTools-8.4.6-385536.tar.gz vmware-tools-distrib[root@localhost VMware Tools]# ll
总计 105300[root@localhost VMware Tools]# ll
总计 105300 -r--r--r-- 1 root root 1996 04-13 14:39 manifest.txt -r--r--r-- 1 root root 107704942 04-13 14:39 VMwareTools-8.4.6-385536.tar.gz drwxr-xr-x 7 root root 4096 2011-03-26 vmware-tools-distrib [root@localhost VMware Tools]# cd vmware-tools-distrib/ [root@localhost vmware-tools-distrib]# ls bin doc etc FILES INSTALL installer lib vmware-install.pl[root@localhost vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.The previous installation was made by the tar installer (version 4).
Keeping the tar4 installer database format.
You have a version of VMware Tools installed. Continuing this install will
first uninstall the currently installed version. Do you wish to continue? (yes/no) [yes] yesUninstalling the tar installation of VMware Tools.
Stopping services for VMware Tools
Skipping VMware Tools services shutdown on the host: [确定]
This program previously created the directory
/usr/lib/vmware-tools/modules/binary/bld-2.6.22.9-1mdv-i586laptop-Mandriva2008/objects, and was about to remove it. Since there are files in that directory that this program did not create, it will not be removed.This program previously created the directory
/usr/lib/vmware-tools/modules/binary/bld-2.6.22.9-1mdv-i586laptop-Mandriva2008, and was about to remove it. Since there are files in that directory that this program did not create, it will not be removed.This program previously created the directory
/usr/lib/vmware-tools/modules/binary, and was about to remove it. Since there are files in that directory that this program did not create, it will not be removed.This program previously created the directory /usr/lib/vmware-tools/modules,
and was about to remove it. Since there are files in that directory that this program did not create, it will not be removed.This program previously created the directory /usr/lib/vmware-tools, and was
about to remove it. Since there are files in that directory that this program did not create, it will not be removed.The removal of VMware Tools 8.4.6 build-385536 for Linux completed
successfully.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 file
/usr/lib/vmware-tools/modules/binary/bld-2.6.22.9-1mdv-i586laptop-Mandriva2008/objects/vmxnet3.o that this program was about to install already exists. Overwrite? [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 8.4.6 build-385536 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] yesInitializing...
Making sure services for VMware Tools are stopped.
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [确定] Virtual Printing daemon: [确定] Unmounting HGFS shares: [确定] Guest filesystem driver: [确定]Found a compatible pre-built module for vmmemctl. Installing it...
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
Found a compatible pre-built module for vmblock. Installing it...
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
Found a compatible pre-built module for vmxnet3. Installing it...
Found a compatible pre-built module for pvscsi. Installing it...
Detected Xorg X server version 7.1.
Host resolution detected as "1024 x 768".
Please choose one of the following display sizes that X will start with:
[1] "320x200"
[2] "320x240" [3] "400x300" [4] "512x384" [5] "640x400" [6] "640x480" [7] "720x480" [8] "800x480" [9] "854x480" [10] "720x576" [11]< "800x600" Please enter a number between 1 and 11:[11]
X Window System Version 7.1.1
Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: Linux 2.6.18-53.el5 i686 Red Hat, Inc. Current Operating System: Linux localhost.localdomain 2.6.18-308.el5 #1 SMP Tue Feb 21 20:05:41 EST 2012 i686 Build Date: 22 February 2012 Build ID: xorg-x11-server 1.1.1-48.90.el5 Before reporting problems, check to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (++) Log file: "/tmp/vmware-config0/XF86ConfigLog.3651", Time: Fri Apr 13 14:50:48 2012 (++) Using config file: "/tmp/vmware-config0/XF86Config.3651" The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Multiple symbols for level 1/group 1 on key <I5F> > Using XF86Sleep, ignoring XF86Standby > Warning: Symbol map for key <I5F> redefined > Using last definition for conflicting fields Errors from xkbcomp are not fatal to the X serverX is running fine with the new config file.
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot p_w_picpath for the kernel. Checking acpi hot plug [确定] Starting VMware Tools services in the virtual machine: Switching to guest configuration: [确定] Paravirtual SCSI module: [确定] Guest filesystem driver: [确定] Mounting HGFS shares: [失败] Guest memory manager: [确定] Guest vmxnet fast network device: [确定] VM communication interface: [确定] VM communication interface socket family: [确定] Blocking file system: [确定] Guest operating system daemon: [确定] Virtual Printing daemon: [确定] The configuration of VMware Tools 8.4.6 build-385536 for Linux for this running kernel completed successfully.You must restart your X session before any mouse or graphics changes take
effect.You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line during an X server session.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; and, 3. Restart your X session.To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop rmmod pcnet32 rmmod vmxnet modprobe vmxnet /etc/init.d/network startEnjoy,
--the VMware team
Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/hdc ...等待安装完成。重启系统,可以看到效果。快试下吧。