原创 Red hat 9.0 Linux下安装VMware Tools

2011-1-18 10:06 2517 4 4 分类: MCU/ 嵌入式

Red hat 9.0 Linux下安装VMware Tools


 


 在虚拟机上安装完系统后,在状态栏中一直提醒你安装VMware Tools.只有正确安装了VMware Tools后,该提示才会消失,并正确设置显卡以及显示器的分辨率等参数。好处:可以支持图形界面,可以支持共享文件功能等。


步骤:
1、先启动虚拟机,进入Linux系统
       点击菜单栏上的
虚拟机,然后安装VMwre Tools”,这时虚拟机中系统的光驱里就会有VMware Tools的碟片(加载了Linux.iso镜像)。在vmware的菜单中选择Vm->install vmware-tools,这个时候好象vmware就会把安转文件映射到你的cdrom

   


此时要进入终端,使用命令行进行安装。


2、右键新建终端即可。此时屏幕上会出现一个白色窗口,里面为命令行操作,这就是终端窗口,我们需要使用Linux的基本命令来对VMware Tools进行安装。


 


3、在终端窗口输入sudo passwd rootsudo命令可以使普通用户以根用户的身分执行指令)
  回车后系统会提示输入当前用户密码,然后就是设置root用户密码,设置OK后会有提示
  然后输入su命令获得根用户的命令和文件使用权限(命令exit或者按Ctrl+D可退出)
4、输入ls屏幕会列出光驱里的文件。


5、接着mount一下光驱
    #mount -t iso9660 /dev/cdrom /mnt


 


6、将安装文件拷到自己的目录
   #cp /mnt/VMwareTools-5.5.0-18463.tar.gz  /tmp   (tmp是系统自带的一个文件夹)


   #ls    (观察有没有tar.gz的文件,记住文件名)


7、解压缩一下
  #tar zxvf VMwareTools-5.5.0-18463.tar.gz(根据自己情况输入上一步显示的tar.gz的实际文件名)


8、卸载CDROM


  #umount /dev/cdrom
  不然运行安装后会出现:
 unable to create the directory /mnt/hgfs(本人就是被这个问题困扰了两天,那叫一个无语。。。)


9、然后进入解压后的目录vmware-tools-distrib,进行安装


#cd /tmp      回车


#cd vmware-tools-distrib   回车


#./vmware-install.pl  回车


 


10、安装过程的画面,全部使用默认值,一直按 Enter 就对了


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]


Thepath "/usr/lib/vmware-tools" does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
[yes]


In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]


Thepath "/usr/share/doc/vmware-tools" does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want?
[yes]


The installation of VMware Tools 5.5.1 build-19175 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]



Stopping VMware Tools services in the virtual machine:


Guest operating system daemon: [ ok ]
Trying to find a suitable vmhgfs module for your running kernel.


The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.


pcnet32 30153 0
Unloading pcnet32 module


Trying to find a suitable vmxnet module for your running kernel.


The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.


 


Detected X.org version 6.8.


关闭控制台鼠标服务: [ 确定 ]
启动控制台鼠标服务: [ 确定 ]


Please choose one of the following display sizes (1 - 13):


# 显示分辨率,这里是以 1024x768 为例


# VMware Tools 安装的时候,会自动修改 X server 的配置文件


[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"


[7] "1280x1024"
[8] "1376x1032"
[9] "1400x1050"
[10] "1680x1050"
[11] "1600x1200"
[12] "1920x1200"
[13] "2364x1773"
Please enter a number between 1 and 13:


[3]


 


X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.9-34.EL i686 [ELF]
Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686
Build Date: 04 May 2006
Build Host: x8664-build.centos.org


Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
OSKernel: Linux version 2.6.9-34.EL (buildcentos@build-i386) (gccversion3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006P
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.3131", Time: Mon Jun 12 20:57:34 2006
(++) Using config file: "/tmp/vmware-config0/XF86Config.3131"
(WW) VMWARE(0): Failed to set up write-combining range (0xf0000000,0x1000000)


X is running fine with the new config file.


Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ ok ]
Guest filesystem driver: [ ok ]
DMA setup: [ ok ]
Guest operating system daemon: [ ok ]


The configuration of VMware Tools 5.5.1 build-19175 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 XFree86 session.


To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start


Enjoy,


--the VMware team


[root@rd01 vmware-tools-distrib]# shutdown -r now

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
4
关闭 站长推荐上一条 /3 下一条