八教程网知识的定义是什么,知识指的是什么,百科知识大全

首页 > 软件教程 / 正文

虚拟机中的Linux安装VMware Tools的方法

admin 2021-07-18 软件教程 评论

  Linux VMware Tools安装步骤简易版

  Linux VMware Tools安装估计有点困难,我也在网上看了好多版本的Linux安装VMware Tools,方法都一样。但是自己在安装过程中,还是遇到了点问题。但是最终还是搞定。我运行的是VMware workstation 8.0.4 , OS: CentOS 6.0

  1. 在CD-ROM虚拟光驱中选择使用ISO镜像,找到VMWARE TOOLS 安装文件,如C:programVMwareVMware WorkstationProgramslinux.iso

  当然这个ISO是你安装VMware workstation 的目录下的Linux.iso,不是你的Linux OS 镜像文件。VMware Tools一般都在这个文件里。

  2. 以管理员身份进入Linux,root账号

  3. 退出到windows,在虚拟机菜单栏中点击 虚拟机-> 安装 VMWARE TOOLS 子菜单,会弹出对话框,点击"确认" 安装

  4. 挂载光驱:Mount -t iso9660 /dev/cdrom /mnt

  加载CDROM设备,这是如果进入/mnt 目录下,你会发现一个文件:

  VMwareTools-8.8.4-743747.tar.gz

  这个就死VMware Tools的Linux软件包,也是我们刚才使用的WinISO打开的Liunx.ISO

  有的虚拟机上估计执行mount /dev/cdrom /mnt/cdrom

  如果提示如下错误,挂载点不存在。,[root@localhost /]#mount /dev/cdrom /mnt/cdrom

  mount: mount point /mnt/cdrom dose not exist

  请直接执行此命令:

  mount /dev/cdrom /opt

  cd /opt

  或者应该可以使用自动挂载,直接进入

  cd /misc/cd

  5. copy 此文件到临时文件夹

  cp /mnt/mVMwareTools-8.8.4-743747.tar.gz /tmp

  6. 卸载CDROM,执行umount /dev/cdrom

  7. 进入tmp文件目录并解压此文件包

  cd /tmp

  tar zxf vmware-linux-tools.tar.gz

  解压默认到vmware-tools-distrib目录下:此时你可以使用ls -ll 查看文件夹下的文件

  8. 进入vmware-tools-distrib,安装vmware tools.

  ./vmware-install.pl 执行安装,

  安装过程中他会一步一步的有问题回应,此过程中,你遇到后面显示[yes],[no],[yes][no]的直接输入yes,然后回车。其他的问题不管[]里面是什么,直接回车就好了,不要输入。

  9. 大约5分钟左右安装完成。 执行init 6重启ok。

  Linux VMware Tools安装步骤图文版,大家可以参考下

  操作过程如下:

  [root@localhost~]#cd/

  [root@localhost/]#ls

  bindevhomelost+foundmiscnetprocsbinsrvtftpbootusr

  bootetclibmediamntoptrootselinuxsystmpvar

  [root@localhost/]#cd/media

  [root@localhostmedia]#ls

  VMwareTools

  [root@localhostmedia]#cdVMwareTools/

  [root@localhostVMwareTools]#ls

  manifest.txtVMwareTools-8.1.3-203739.tar.gz

  [root@localhostVMwareTools]#cpVMwareTools-8.1.3-203739.tar.gz/tmp

  [root@localhostVMwareTools]#cd/tmp

  [root@localhosttmp]#ls

  gconfd-rootscim-helper-manager-socket-root

  keyring-lbbFvvscim-panel-socket:0-root

  mapping-rootscim-socket-frontend-root

  orbit-rootssh-FmnVlj2751

  scim-bridge-0.3.0.lockfile-0@localhost:0.0virtual-root.ZxmHUV

  scim-bridge-0.3.0.socket-0@localhost:0.0VMwareTools-8.1.3-203739.tar.gz

  [root@localhosttmp]#tar-zxfVMwareTools-8.1.3-203739.tar.gz

  [root@localhosttmp]#ls

  gconfd-rootscim-panel-socket:0-root

  keyring-lbbFvvscim-socket-frontend-root

  mapping-rootssh-FmnVlj2751

  orbit-rootvirtual-root.ZxmHUV

  scim-bridge-0.3.0.lockfile-0@localhost:0.0VMwareTools-8.1.3-203739.tar.gz

  scim-bridge-0.3.0.socket-0@localhost:0.0vmware-tools-distrib

  scim-helper-manager-socket-root

  [root@localhosttmp]#cdvmware-tools-distrib/

  [root@localhostvmware-tools-distrib]#ls

  bindocetcFILESINSTALLinstallerlibvmware-install.pl

  [root@localhostvmware-tools-distrib]#./vmware-install.pl

  CreatinganewVMwareToolsinstallerdatabaseusingthetar4format.

  InstallingVMwareTools.

  Inwhichdirectorydoyouwanttoinstallthebinaryfiles?

  [/usr/bin]yes

  Thepath"yes"isarelativepath.Pleaseenteranabsolutepath.

  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.Thisprogramis

  goingtocreateit,includingneededparentdirectories.Isthiswhatyouwant?

  [yes]

  yes

  Inwhichdirectorydoyouwanttoinstallthedocumentationfiles?

  [/usr/share/doc/vmware-tools]

  Thepath"yes"isarelativepath.Pleaseenteranabsolutepath.

  Inwhichdirectorydoyouwanttoinstallthedocumentationfiles?

  [/usr/share/doc/vmware-tools]

  Thepath"/usr/share/doc/vmware-tools"doesnotexistcurrently.Thisprogram

  isgoingtocreateit,includingneededparentdirectories.Isthiswhatyou

  want?[yes]

  TheinstallationofVMwareTools8.1.3build-203739forLinuxcompleted

  successfully.Youcandecidetoremovethissoftwarefromyoursystematany

  timebyinvokingthefollowingcommand:"/usr/bin/vmware-uninstall-tools.pl".

  BeforerunningVMwareToolsforthefirsttime,youneedtoconfigureitby

  invokingthefollowingcommand:"/usr/bin/vmware-config-tools.pl".Doyouwant

  thisprogramtoinvokethecommandforyounow?[yes]

  StoppingVMwareToolsservicesinthevirtualmachine:

  Guestoperatingsystemdaemon:[确定]

  VirtualPrintingdaemon:[确定]

  UnmountingHGFSshares:[确定]

  Guestfilesystemdriver:[确定]

  Foundacompatiblepre-builtmoduleforvmmemctl.Installingit...

  Foundacompatiblepre-builtmoduleforvmhgfs.Installingit...

  Foundacompatiblepre-builtmoduleforvmxnet.Installingit...

  Foundacompatiblepre-builtmoduleforvmblock.Installingit...

  [EXPERIMENTAL]TheVMwareFileSystemSyncDriver(vmsync)isanewfeaturethat

  createsbackupsofvirtualmachines.PleaserefertotheVMwareKnowledgeBase

  formoredetailsonthiscapability.Doyouwishtoenablethisfeature?

  [no]

  Foundacompatiblepre-builtmoduleforvmci.Installingit...

  Foundacompatiblepre-builtmoduleforvsock.Installingit...

  Foundacompatiblepre-builtmoduleforvmxnet3.Installingit...

  Foundacompatiblepre-builtmoduleforpvscsi.Installingit...

  DetectedX.orgversion7.1.

  Hostresolutiondetectedas"1440x900".

  PleasechooseoneofthefollowingdisplaysizesthatXwillstartwith:

  [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"

  Pleaseenteranumberbetween1and17:

  [17]12

  XWindowSystemVersion7.1.1

  ReleaseDate:12May2006

  XProtocolVersion11,Revision0,Release7.1.1

  BuildOperatingSystem:Linux2.6.18-128.1.16.el5i686RedHat,Inc.

  CurrentOperatingSystem:Linuxlocalhost.localdomain2.6.18-164.el5#1SMPTueAug1815:51:54EDT2009i686

  BuildDate:22July2009

  BuildID:xorg-x11-server1.1.1-48.67.el5

  Beforereportingproblems,checkhttp://wiki.x.org

  tomakesurethatyouhavethelatestversion.

  ModuleLoaderpresent

  Markers:(--)probed,(**)fromconfigfile,(==)defaultsetting,

  (++)fromcommandline,(!!)notice,(II)informational,

  (WW)warning,(EE)error,(NI)notimplemented,(??)unknown.

  (++)Logfile:"/tmp/vmware-config0/XF86ConfigLog.16172",Time:ThuApr102:40:282010

  (++)Usingconfigfile:"/tmp/vmware-config0/XF86Config.16172"

  TheXKEYBOARDkeymapcompiler(xkbcomp)reports:

  >Warning:Multiplesymbolsforlevel1/group1onkey

  >UsingXF86Sleep,ignoringXF86Standby

  >Warning:Symbolmapforkeyredefined

  >Usinglastdefinitionforconflictingfields

  ErrorsfromxkbcomparenotfataltotheXserver

  Xisrunningfinewiththenewconfigfile.

  FreeFontPath:FPE"unix/:7100"refcountis2,shouldbe1;fixing.

  Creatinganewinitrdbootimageforthekernel.

  StartingVMwareToolsservicesinthevirtualmachine:

  Switchingtoguestconfiguration:[确定]

  ParavirtualSCSImodule:[确定]

  Guestfilesystemdriver:[确定]

  MountingHGFSshares:[失败]

  Guestmemorymanager:[确定]

  Guestvmxnetfastnetworkdevice:[确定]

  VMcommunicationinterface:[确定]

  VMcommunicationinterfacesocketfamily:[确定]

  Blockingfilesystem:[确定]

  Filesystemsyncdriver:[确定]

  Guestoperatingsystemdaemon:[确定]

  VirtualPrintingdaemon:[确定]

  TheconfigurationofVMwareTools8.1.3build-203739forLinuxforthisrunning

  kernelcompletedsuccessfully.

  YoumustrestartyourXsessionbeforeanymouseorgraphicschangestake

  effect.

  YoucannowrunVMwareToolsbyinvokingthefollowingcommand:

  "/usr/bin/vmware-toolbox"duringanXserversession.

  ToenableadvancedXfeatures(e.g.,guestresolutionfit,draganddrop,and

  fileandtextcopy/paste),youwillneedtodoone(ormore)ofthefollowing:

  1.Manuallystart/usr/bin/vmware-user

  2.Logoutandlogbackintoyourdesktopsession;and,

  3.RestartyourXsession.

  Tousethevmxnetdriver,restartnetworkingusingthefollowingcommands:

  /etc/init.d/networkstop

  rmmodpcnet32

  rmmodvmxnet

  modprobevmxnet

  /etc/init.d/networkstart

  Enjoy,

  --theVMwareteam

  FoundVMwareToolsCDROMmountedat/media/VMwareTools.Ejectingdevice

  /dev/hdc...

  [root@localhostvmware-tools-distrib]#

Tags:

猜你喜欢

留言与评论(共有 0 条评论)
   
验证码:
搜索
网站分类
标签列表