设为首页 收藏本站
查看: 1013|回复: 0

[经验分享] RHEL 5.4 安装 VMware Tools

[复制链接]

尚未签到

发表于 2016-1-5 09:33:03 | 显示全部楼层 |阅读模式
  Vmtools
      VM tools顾名思义就是Vmware的一组工具。主要用于虚拟主机显示优化与调整,另外还可以方便虚拟主机与本机的交互,如允许共享文件夹,甚至可以直接从本机向虚拟主机拖放文件、鼠标无缝切换、显示分辨率调整等,十分实用。
  安装
      如果选择在VMware Workstation中手动安装(也就是不采用Easy Install)的方式安装RHEL 5.4,那么,也只能手动安装vmtoos了,如下:
  (1)选择VMware Workstation的菜单“VM/Install VMware tools…”,VMware Workstation会自动加载vmtoos的iso到当前运行的系统的cdrom,并默认挂载到“/media/VMware Tools”。
  
DSC0000.jpg
 
(2)在当前系统RHEL5.4中,执行以下命令:

  [iyunv@rhel54 ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/VMware Tools type iso9660 (ro,noexec,nosuid,nodev,uid=500)
[iyunv@rhel54 ~]# cd /media/"VMware Tools"
[iyunv@rhel54 VMware Tools]# ll
总计 104398
-r--r--r-- 1 edgen root      1996 11-12 02:26 manifest.txt
-r--r--r-- 1 edgen root 106900818 11-12 02:27 VMwareTools-8.4.5-324285.tar.gz
[iyunv@rhel54 VMware Tools]# cp VMwareTools-8.4.5-324285.tar.gz /tmp
[iyunv@rhel54 VMware Tools]# cd /tmp
  [iyunv@rhel54 tmp]# ll
总计 104584
drwx------ 3 edgen edgen      4096 12-26 22:09 gconfd-edgen
drwx------ 2 root  root       4096 12-26 20:12 gconfd-root
drwx------ 2 edgen edgen      4096 12-26 22:09 keyring-sznBvg
srwxrwxr-x 1 edgen edgen         0 12-26 22:09 mapping-edgen
drwx------ 2 edgen edgen      4096 12-26 23:07 orbit-edgen
-rw-rw-r-- 1 edgen edgen         5 12-26 22:12 scim-bridge-0.3.0.lockfile-500@localhost:0.0
srwxrwxr-x 1 edgen edgen         0 12-26 22:12 scim-bridge-0.3.0.socket-500@localhost:0.0
srw------- 1 edgen edgen         0 12-26 22:09 scim-helper-manager-socket-edgen
srw------- 1 edgen edgen         0 12-26 22:09 scim-panel-socket:0-edgen
srw------- 1 edgen edgen         0 12-26 22:09 scim-socket-frontend-edgen
drwx------ 2 edgen edgen      4096 12-26 22:09 ssh-BNdRno3399
drwx------ 2 edgen edgen      4096 12-26 22:09 virtual-edgen.9ttEaB
-r--r--r-- 1 root  root  106900818 12-26 23:07 VMwareTools-8.4.5-324285.tar.gz
[iyunv@rhel54 tmp]# tar -zxf VMwareTools-8.4.5-324285.tar.gz
  [iyunv@rhel54 tmp]# ll
总计 104592
drwx------ 3 edgen edgen      4096 12-26 22:09 gconfd-edgen
drwx------ 2 root  root       4096 12-26 20:12 gconfd-root
drwx------ 2 edgen edgen      4096 12-26 22:09 keyring-sznBvg
srwxrwxr-x 1 edgen edgen         0 12-26 22:09 mapping-edgen
drwx------ 2 edgen edgen      4096 12-26 23:07 orbit-edgen
-rw-rw-r-- 1 edgen edgen         5 12-26 23:12 scim-bridge-0.3.0.lockfile-500@localhost:0.0
srwxrwxr-x 1 edgen edgen         0 12-26 22:12 scim-bridge-0.3.0.socket-500@localhost:0.0
srw------- 1 edgen edgen         0 12-26 22:09 scim-helper-manager-socket-edgen
srw------- 1 edgen edgen         0 12-26 22:09 scim-panel-socket:0-edgen
srw------- 1 edgen edgen         0 12-26 22:09 scim-socket-frontend-edgen
drwx------ 2 edgen edgen      4096 12-26 22:09 ssh-BNdRno3399
drwx------ 2 edgen edgen      4096 12-26 22:09 virtual-edgen.9ttEaB
-r--r--r-- 1 root  root  106900818 12-26 23:07 VMwareTools-8.4.5-324285.tar.gz
drwxr-xr-x 7 root  root       4096 11-12 02:26 vmware-tools-distrib
[iyunv@rhel54 tmp]# cd vmware-tools-distrib
[iyunv@rhel54 vmware-tools-distrib]# ll
总计 596
drwxr-xr-x  2 root root   4096 11-12 02:26 bin
drwxr-xr-x  2 root root   4096 11-12 02:26 doc
drwxr-xr-x  3 root root   4096 11-12 02:26 etc
-r--r--r--  1 root root 552155 11-12 02:26 FILES
lrwxrwxrwx  1 root root     13 12-26 23:14 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 root root   4096 11-12 02:26 installer
drwxr-xr-x 17 root root   4096 11-12 02:26 lib
lrwxrwxrwx  1 root root     31 12-26 23:14 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[iyunv@rhel54 vmware-tools-distrib]# ./vmware-install.pl
Creating 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]
  
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 8.4.5 build-324285 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] no
  [iyunv@rhel54 vmware-tools-distrib]# /usr/bin/vmware-config-tools.pl
Initializing...


Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                       [确定]
   Virtual Printing daemon:                                      [确定]
   VMware User Agent (vmware-user):                    [确定]
   Blocking file system:                                             [确定]
   Unmounting HGFS shares:                                   [确定]
   Guest filesystem driver:                                       [确定]
   Guest memory manager:                                     [确定]
   VM communication interface socket family:          [确定]
   VM communication interface:                               [确定]


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.



The configuration file /etc/X11/xorg.conf can not be found. Do you want to
create a new one? (yes/no) [yes]


Host resolution detected as "1366 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"
[12]  "1024x768"
[13]< "1280x720"
Please enter a number between 1 and 13:

[13]
  
  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-128.1.16.el5 i686 Red Hat, Inc.
Current Operating System: Linux rhel54.yupan 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686
Build Date: 22 July 2009
Build ID: xorg-x11-server 1.1.1-48.67.el5
        Before reporting problems, check http://wiki.x.org
        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-config1/XF86ConfigLog.7071", Time: Sun Dec 26 23:44:43 2010
(++) Using config file: "/tmp/vmware-config1/XF86Config.7071"
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

X is running fine with the new config file.

FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot image 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.5 build-324285 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 start

Enjoy,

--the VMware team
  
  [iyunv@rhel54 vmware-tools-distrib]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
[iyunv@rhel54 vmware-tools-distrib]# reboot
  
  (3)在Vmware 界面中选择“vm/setting…”菜单打开“setting”窗口, 选择“Options”标签页,选择“Share Folders”,在右边点击“Add”按钮,选择主机目录。在Linux中进入到“/mnt/hgfs”目录就可以看到windows下的内容,同样你可以在linux下将文件拷进此文件夹传递到windows下。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-160468-1-1.html 上篇帖子: VMware 11.0 永久不过期激活密钥 下篇帖子: build android for VMware
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表