免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5222 | 回复: 0
打印 上一主题 下一主题

VMwareTools安装指南(fedora/ubuntu/Redhat linux enterprise) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-23 14:06 |只看该作者 |倒序浏览
(原作者:豪门俊少 联系方式:macrojun@163.com
很多刚开始接触 linux 的朋友,在忍不住好奇的时候,没少对 linux 这个全新的系统有些望而生畏。
一些人坚持着,一些人倒下了,然而还有些聪明的(我认为为是幸运的)准精们,
选择在在 VM 下学习 linux 。当他们兴致勃勃甚至热血沸腾着装完 fedora 或者 ubuntu 后, 有
部分又受挫了,安装 vmware tools ,估计没多少人没少头疼过。
那时候,我也是 ……
前不久在论坛里注册了个 ID ,没事瞎逛,发现不少哥们一直在问关于 vmtools 安装的问题,
突然有些遗憾,就想帮帮这些朋友。毕竟鄙人也是一大老粗,写不出什么好东西,若此处 有
误,还请大家多包含多指教!
废话不说,安装总结如下:

一、 大致过程:
a) VM —— install VMware Tools
b) 系统会自动将 VMtools 镜像插入光驱,并自动挂载。
c) 找到安装文件,安装,配置,重启。
二、 使用 rpm 安装
a) 进入目录
[wenjun@localhost ~]$ cd /
[wenjun@localhost /]$ ls
bin dev home lost+found misc net proc sbin srv tmp var
boot etc lib media mnt opt root selinux sys usr
[wenjun@localhost /]$ cd media
[wenjun@localhost media]$ ls
VMware Tools
[wenjun@localhost media]$ cd \"VMware Tools\"
[wenjun@localhost VMware Tools]$ ls
manifest.txt VMwareTools-7.8.5-156735.tar.gz
VMwareTools-7.8.5-156735.i386.rpm
b) 执行安装命令
i. Fedora 下:
[wenjun@localhost VMware Tools]$ rpm -i VMwareTools-7.8.5-156735.i386.rpm
ii. Ubuntu 下:
alien -i VMwareTools-7.8.5-15735.rpm (你得先安装 alien )
c) 安装成功
[root@localhost VMware Tools]# rpm -i VMwareTools-7.8.5-156735.i386.rpm
The installation of VMware Tools 7.8.5 for Linux completed successfully.
You can decide to remove this software from your system at any time by
invoking the following command: \"rpm -e VMwareTools\".
Before running VMware Tools for the first time, you need to
configure it for your running kernel by invoking thefollowing command: \"/usr/bin/vmware-config-tools.pl\".
Enjoy,
--the VMware team
d) 配置
[root@localhost VMware Tools]# cd /
[root@localhost /]# /usr/bin/vmware-config-tools.pl
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Virtual Printing daemon: [ 确定 ]
The bld-2.6.18-8.el5-i686smp-RHEL5 - vmmemctl module loads perfectly into the
running kernel.
The bld-2.6.18-8.el5-i686smp-RHEL5 - vmhgfs module loads perfectly into the
running kernel.
The bld-2.6.18-8.el5-i686smp-RHEL5 - vmxnet module loads perfectly into the
running kernel.
The bld-2.6.18-8.el5-i686smp-RHEL5 - vmblock module loads perfectly into the
running kernel.
[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature
that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]
The bld-2.6.18-8.el5-i686smp-RHEL5 - vmci module loads perfectly into the
running kernel.
The bld-2.6.18-8.el5-i686smp-RHEL5 - vsock module loads perfectly into the
running kernel.
Detected X.org version 7.1.
Please choose one of the following display sizes that X will start with (1 -
29):
[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\"
[14] \"1280x768\"
[15] \"1152x864\"
[16] \"1280x800\"
[17] \"1366x768\"
[18] \"1280x960\"
[19] \"1440x900\"
[20] \"1280x1024\"
[21] \"1400x1050\"
[22] \"1680x1050\"
[23] \"1600x1200\"
[24] \"1920x1080\"
[25] \"1920x1200\"
[26] \"1920x1440\"
[27] \"2048x1536\"
[28] \"2560x1600\"
[29] \"2560x1920\"
Please enter a number between 1 and 29:
[12]
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.9-42.ELsmp i686 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Fri Jan 26
14:15:21 EST 2007 i686
Build Date: 09 January 2007
Build ID: xorg-x11-server 1.1.1-48.13.el5
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader presentMarkers: (--) 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.3755\", Time: Tue Apr 7
21:33:17 2009
(++) Using config file: \"/tmp/vmware-config0/XF86Config.3755\"
(EE) AIGLX: Screen 0 is not DRI capable
X is running fine with the new config file.
FreeFontPath: FPE \"unix/:7100\" refcount is 2, should be 1; fixing.
Checking acpi hot plug [ 确定 ]
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: [ 确定 ]
VM communication interface: [ 确定 ]
VM communication interface socket family: [ 确定 ]
Blocking file system: [ 确定 ]
Guest operating system daemon: [ 确定 ]
Virtual Printing daemon: [ 确定 ]
The configuration of VMware Tools 7.8.5 build-156735 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 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
If the virtual printer feature is enabled, you will need to restart the CUPS
service to make use of this feature.
Enjoy,
--the VMware team
e) 重启
Reboot
三、 使用 gz 安装
以上是使用 *.rpm 进行安装的,在 ubuntu 下用上面的方法,你可能会遇到问题,因为 你
可能没有安装 alien 。
a) 进入目录,如果刚刚没记住,请往上翻翻
b) 将 *.gz 复制到一个可写的目录下,解压。
i. cp 到目标目录, tar xvzf *.gz
ii. 或者直接右击 *.gz ,解压到一个目录
c) 配置
i. 进入目录 vmware-tools-distrib : cd vmware-tools-distrib
ii. ./vmware-install.pl
d) 重启
至此,已经安装结束了,至于 vmware tools 有哪些作用,大家到网上搜搜吧,很简单的,只要 知
道就行了。
写这个花了不少时间,就是节省点大家的时间。但如果还有不足之处让你犯难,

mailto:macrojun@163.com
豪门俊少

教程pdf版下载地址:http://down.qiannao.com/space/fi ... 0020tools.pdf/.page
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP