全部博文(74)
分类: LINUX
2009-08-12 08:40:51
install VMWare tools for centOS5.2
虚拟机是VMware Workstation 6.0 操作系统是centOS5.2
①先在虚拟机菜单栏里单击VM->install VMWare tools
②挂载光驱
#mount /dev/cdrom /mnt
#cd /mnt
#ls –l
里面有两个文件一个是.rpm包,一个是.tar.gz的压缩文件。
#cp *.tar.gz /tmp
③安装
#rpm –ivh *.rpm
#cd /tmp
#tar –zxvf *.tar.gz
#cd vmware-tools-distrib
#ls
#./vmware-tools
./vmware-install.pl #运行.pl文件,期间将多次询问文件设置路径及是否启用新特性等,直接回车使用默认选项即可,期间应设置分辨率。OK,屏幕闪几下,你的鼠标自由移动了吧?无需热键即可主客切换,启用文件拖拽互传。
后部分执行过程如下:
[root@localhost tmp]# 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 rpm installer (version 4).
Converting the rpm4 installer database format
to the tar4 installer database 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]
In 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]
The installation of VMware Tools
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]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmmemctl module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
pcnet32 18016 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
Trying to find a suitable vmblock module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
[EXPERIMENTAL] The VMware CPU Time Accounting daemon (vmware-vmdesched) can
help increase the accuracy of CPU time accounting performed by the guest
operating system. Please refer to the VMware Knowledge Base for more details on
this capability. Do you wish to enable this feature? [no]
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment. Would you like to enable this feature? [no]
Detected XFree86 version 4.3.0.
Please choose one of the following display sizes that X will start with (1 -
15):
[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x900"
[10] "1400x1050"
[11] "1440x900"
[12] "1680x1050"
[13] "1600x1200"
[14] "1920x1200"
[15] "2364x1773"
Please enter a number between 1 and 15:
[2] 3
XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host: porky.devel.redhat.com
Before reporting problems, check
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.20-8 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:18:24 EST 2003 PFMarkers: (--) 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.3222", Time: Sat Feb 21 10:29:06 2009
(++) Using config file: "/tmp/vmware-config0/XF86Config.3222"
X is running fine with the new config file.
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ 确定 ]
Guest filesystem driver: [ 确定 ]
Mounting HGFS shares: [失败]
Guest memory manager: [ 确定 ]
Guest vmxnet fast network device: [ 确定 ]
Blocking file system: [ 确定 ]
DMA setup: [ 确定 ]
Guest operating system daemon: [ 确定 ]
The configuration of VMware Tools 6.0.2 build-59824 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 the following command:
"/usr/bin/vmware-toolbox" during an X server 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 start
To make use of the virtual printer, you will need to restart the CUPS service
Enjoy,
--the VMware team
[root@localhost vmware-tools-distrib]#
安装完vmware以后有以下几点好处:
1)、鼠标可以自由在虚拟机与主机之间切换了,没有安装vmware tools的时候需要用ctrl+Alt、Ctrl+G来切换。
2)、虚拟机与主机的剪贴板可以通讯了,可以在虚拟机和主机之间自由复制、粘贴文本。
上面两点的详细设置可以在vmware的菜单edit-preferences里进行设置。
3)、可以设置虚拟机与主机之间的时间同步:在linux中运行vmware-toolbox,在弹出窗口把Options中的time synchronization....钩选上即可。