VmwareTools for linux的安装

[注意] 以下操作在root帐号下完成。

一、VMwareTools-版本号.rpm的图形模式的安装:
1.在Windows的vmware的窗口菜单中选vm(虚拟机)->install vmware tools(安装Vmware Tools)

2.挂载光驱目录mount /dev/cdrom /mnt/cdrom (vmtools的安装文件放在vmware虚拟的cdrom中,首先要mount上这个光驱才能找到安装文件)
3.打开/mnt/cdrom目录
4.找到VMwareTools-版本号.rpm包,双击选运行就好了
5.安装完成后在windows的vmware的窗口菜单中选vm(虚拟机)->Setting(设置)->Options(选项)
->Shared Folders(共享文件夹)->添加你要共享的Windows目录
6.重新启动,再进入RedHat就会在/mnt目录下自动生成/mnt/hgfs目录了
7.如果没有则在终端中输入
/usr/bin/vmware-config-tools.pl

按照提示去操作就可以了.我的操作结果如下:

[root@localhost root]# /usr/bin/vmware-config-tools.pl

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.i686-RH9.0 loads perfectly in the running kernel.

pcnet32                 18240    1
Unloading pcnet32 module

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

The module up-2.4.20-8.i686-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.i686-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] yes

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

The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.

[EXPERIMENTAL] The Crosstalk service provides a new communication capability
with the Host, primarily for development at the moment.   Would you like to
enable this feature? [no] yes

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

The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.

 

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]


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 http://www.XFree86.Org/
         to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com ) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003 PF
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.2620", Time: Mon Apr 30 19:14:43 2007
(++) Using config file: "/tmp/vmware-config0/XF86Config.2620"

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:                        [   确定   ]
    Loading vmdesched driver module:                         [   确定   ]
    Guest descheduled time accounting daemon:                [   确定   ]
    New Host-Guest communications path:                      [   确定   ]
    Blocking file system:                                    [   确定   ]
    DMA setup:                                               [   确定   ]
    Guest operating system daemon:                           [   确定   ]

The configuration of VMware Tools 6.0.0 build-44426 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

If you wish to configure any experimental features, please run the following
command: "vmware-config-tools.pl --experimental".

Enjoy,

 

8.这时再看看是不是已经出来了


二、VMwareTools-版本号.tar.gz包的文本模式的安装:
1.右键点击桌面,打开一个終端。
2.在終端里:
su
#/sbin/telinit 3
3.图形界面消失,敲回车几下,在文本方式下登录。
4.在Windows的vmware的窗口菜单中选vm(虚拟机)->install vmware tools(安装Vmware Tools)
5.在虚拟机中:
su
mount /dev/cdrom /mnt/cdrom
cd /tmp
ls
tar zxf VMwareTools-版本号.tar.gz
/etc/init.d/network stop
rmmod vmxnet
cd vmware-tools-distrib
./vmware-install.pl(一路按回车,有yes的话输入yes)
6.回答并设置屏幕分辨率,除了分辨率需要选择外,直接回车就行了。
7.开启刚才关闭的网络服务
/etc/init.d/network start
8.返回到默认的图形界面(运行级别5),关闭RedHat
/sbin/telinit 5
9.在windows的vmware的窗口菜单中选vm(虚拟机)->Setting(设置)->Options(选项)
->Shared Folders(共享文件夹)->添加你要共享的Windows目录
10.重启RedHat看看吧
/mnt/hgfs/你共享的文件夹名

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值