linux下安装vmtools.docx
《linux下安装vmtools.docx》由会员分享,可在线阅读,更多相关《linux下安装vmtools.docx(11页珍藏版)》请在冰豆网上搜索。
linux下安装vmtools
Linux下安装vmtools
1、环境描述:
采用虚拟机机VM10,Linux使用RedHat5.5,VMtools文件包为VMwareTools-9.6.0-1294478.tar.gz
可以利用U盘(建议用FAT32分区)或FTP服务器将VMtools文件包复制到Linux系统中,可以在根目录下建立vmtools目录来存放。
2、以root身份登入,用终端模式,进入vmtools目录,用命令“tarzxpfVMwareTools-9.6.0-1294478.tar.gz”进行解压,解压完成后,进入解压后的目录,运行“vmware-install.pl”文件
[root@localhost]#cdvmtools
[root@localhostvmtools]#tarzxpfVMwareTools-5.5.1-19175.tar.gz
[root@localhostvmtools]#cdvmware-tools-distrib
[root@localhostvmware-tools-distrib]#./vmware-install.pl
Creatinganewinstallerdatabaseusingthetar3format.
Installingthecontentofthepackage.
#安装过程的画面,全部使用默认值,一直按Enter就对了
Inwhichdirectorydoyouwanttoinstallthebinaryfiles?
[/usr/bin]
Whatisthedirectorythatcontainstheinitdirectories(rc0.d/torc6.d/)?
[/etc/rc.d]
Whatisthedirectorythatcontainstheinitscripts?
[/etc/rc.d/init.d]
Inwhichdirectorydoyouwanttoinstallthedaemonfiles?
[/usr/sbin]
Inwhichdirectorydoyouwanttoinstallthelibraryfiles?
[/usr/lib/vmware-tools]
Thepath"/usr/lib/vmware-tools"doesnotexistcurrently.Thisprogramisgoingtocreateit,includingneededparentdirectories.Isthiswhatyouwant?
[yes]
Inwhichdirectorydoyouwanttoinstallthedocumentationfiles?
[/usr/share/doc/vmware-tools]
Thepath"/usr/share/doc/vmware-tools"doesnotexistcurrently.Thisprogramisgoingtocreateit,includingneededparentdirectories.Isthiswhatyouwant?
[yes]
TheinstallationofVMwareTools5.5.1build-19175forLinuxcompleted
successfully.Youcandecidetoremovethissoftwarefromyoursystematany
timebyinvokingthefollowingcommand:
"/usr/bin/vmware-uninstall-tools.pl".
BeforerunningVMwareToolsforthefirsttime,youneedtoconfigureitby
invokingthefollowingcommand:
"/usr/bin/vmware-config-tools.pl".Doyouwant
thisprogramtoinvokethecommandforyounow?
[yes]
StoppingVMwareToolsservicesinthevirtualmachine:
Guestoperatingsystemdaemon:
[确定]
Tryingtofindasuitablevmhgfsmoduleforyourrunningkernel.
Themodulebld-2.6.9-5.EL-i686-RHEL4loadsperfectlyintherunningkernel.
pcnet32301530
Unloadingpcnet32module
Tryingtofindasuitablevmxnetmoduleforyourrunningkernel.
Themodulebld-2.6.9-5.EL-i686-RHEL4loadsperfectlyintherunningkernel.
DetectedX.orgversion6.8.
关闭控制台鼠标服务:
[确定]
启动控制台鼠标服务:
[确定]
Pleasechooseoneofthefollowingdisplaysizes(1-13):
#显示分辨率,这里是以1024x768为例
#VMwareTools安装的时候,会自动修改Xserver的配置文件
[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"
Pleaseenteranumberbetween1and13:
[2]3注意:
此处用默认的选项“3”即可,不需修改
XWindowSystemVersion6.8.2
ReleaseDate:
9February2005
XProtocolVersion11,Revision0,Release6.8.2
BuildOperatingSystem:
Linux2.6.9-34.ELi686[ELF]
CurrentOperatingSystem:
Linuxrd01.domain2.6.9-34.EL#1WedMar800:
07:
35CST2006i686
BuildDate:
04May2006
BuildHost:
x8664-build.centos.org
Beforereportingproblems,checkhttp:
//wiki.X.Org
tomakesurethatyouhavethelatestversion.
ModuleLoaderpresent
OSKernel:
Linuxversion2.6.9-34.EL(buildcentos@build-i386)(gccversion3.4.520051201(RedHat3.4.5-2))#1WedMar800:
07:
35CST2006P
Markers:
(--)probed,(**)fromconfigfile,(==)defaultsetting,
(++)fromcommandline,(!
!
)notice,(II)informational,
(WW)warning,(EE)error,(NI)notimplemented,(?
?
)unknown.
(++)Logfile:
"/tmp/vmware-config0/XF86ConfigLog.3131",Time:
MonJun1220:
57:
342006
(++)Usingconfigfile:
"/tmp/vmware-config0/XF86Config.3131"
(WW)VMWARE(0):
Failedtosetupwrite-combiningrange(0xf0000000,0x1000000)
Xisrunningfinewiththenewconfigfile.
StartingVMwareToolsservicesinthevirtualmachine:
Switchingtoguestconfiguration:
[确定]
Guestfilesystemdriver:
[确定]
DMAsetup:
[确定]
Guestoperatingsystemdaemon:
[确定]
TheconfigurationofVMwareTools5.5.1build-19175forLinuxforthisrunning
kernelcompletedsuccessfully.
YoumustrestartyourXsessionbeforeanymouseorgraphicschangestake
effect.
YoucannowrunVMwareToolsbyinvokingthefollowingcommand:
"/usr/bin/vmware-toolbox"duringanXFree86session.
Tousethevmxnetdriver,restartnetworkingusingthefollowingcommands:
/etc/init.d/networkstop
rmmodpcnet32
rmmodvmxnet
depmod-a
modprobevmxnet
/etc/init.d/networkstart
Enjoy,
--theVMwareteam
[root@localhostvmware-tools-distrib]#shutdown-rnow
#修改完成之后,重新启动计算机,让VMwareTools生效
3、测试验证VMwareTools
1)、在虚拟机菜单处,可看到“重新安装VMwareTools”选项
2)、鼠标即可随意移动,不需要按“ctrl+alt”,而且支持在windows和Linux系统之间互相拖放来复制文件
========================================
4、如果运行“vmware-install.pl”文件时出错,不能继续安装
1)、出现Error,Executionaborted提示
出错了!
2)、将/ect/vmware-tools目录删除,重启一次,重新解压文件包,,再运行“vmware-install.pl”一次,即可了!
!
!