设为首页 收藏本站
查看: 1069|回复: 0

[经验分享] VM的Linux CentOS系统的VMTools的手动安装

[复制链接]

尚未签到

发表于 2015-4-9 20:38:18 | 显示全部楼层 |阅读模式
VM的Linux CentOS系统的VMTools的手动安装
  一是没时间安装,另外是一直用的是VM的绿色版,里面没有Linux.iso 文件
  今天晚上安装上了 linux 的vmtools ,再也不用按 Ctrl+Alt 了 也不用看800 X 600的桌面了!
  在vmware安装vmware tools,如果直接安装VMTools工具不成功,那么就需要手工安装。
  
1. 以ROOT身份进入LINUX
2. 退出到windows,点击 SETTING菜单下的ENABLE VMWARE TOOLS子菜单,确认安装
3. 使用虚拟光驱加载iso镜像,路径为d:\linux.iso
4. 进入linux运行在终端执行如下语句,将tar.gz 复制到/tmp目录下: 因为在cdrom文件下没的可执行权限!

      cp VMwareTools-8.1.3-203739.tar.gz /tmp
  5. cd /tmp     进入TMP目录
  6. tar zxf vmware-linux-tools.tar.gz
      解压缩该软件包,默认解压到 vmware-tools-distrib目录下(与文件名同名)。
    cd  vmware-tools-distrib  进入解压后的目录

  7. 执行安装文件
    [iyunv@localhost vmware-tools-distrib]# ./INSTALL

     应该是 :./vmware-install.pl

  如果你的EngLish好的话,就根据自己需要配置一下,如果不是很懂EngLish的话你一直按回车就行了!
  安装好后,重启linux 生效!
  
  我的安装过程:
  
  [iyunv@localhost m]# copy vm.tar.gz /tmp
bash: copy: command not found
[iyunv@localhost m]# cp VM.tar.gz /tmp
[iyunv@localhost m]# cd /tmp
[iyunv@localhost tmp]# ls
gconfd-root                                 scim-helper-manager-socket-root
keyring-rNk1Rx                              scim-panel-socket:0-root
mapping-root                                scim-socket-frontend-root
orbit-root                                  ssh-TWjXMV5315
  virtual-root.EzCSaH
    VM.tar.gz
[iyunv@localhost tmp]# tar zxf vm.tar.gz
tar: vm.tar.gz:无法 open: 没有那个文件或目录
tar: 错误不可恢复:现在退出
tar: Child returned status 2
tar: 由于前面延迟的错误而退出
[iyunv@localhost tmp]# tar zxf VM.tar.gz
[iyunv@localhost tmp]# ls
gconfd-root                                 scim-panel-socket:0-root
keyring-rNk1Rx                              scim-socket-frontend-root
mapping-root                                ssh-TWjXMV5315
orbit-root                                  virtual-root.EzCSaH
  VM.tar.gz
    vmware-tools-distrib
scim-helper-manager-socket-root
[iyunv@localhost tmp]# cd vmware-tools-distrib
[iyunv@localhost vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
[iyunv@localhost vmware-tools-distrib]# ./INSTALL
bash: ./INSTALL: 权限不够
[iyunv@localhost vmware-tools-distrib]# ls -l
总计 532
drwxr-xr-x  2 root root   4096 2009-10-22 bin
drwxr-xr-x  2 root root   4096 2009-10-22 doc
drwxr-xr-x  3 root root   4096 2009-10-22 etc
-r--r--r--  1 root root 517698 2009-10-22 FILES
lrwxrwxrwx  1 root root     13 02-11 22:44 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 root root   4096 2009-10-22 installer
drwxr-xr-x 17 root root   4096 2009-10-22 lib
lrwxrwxrwx  1 root root     31 02-11 22:44 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[iyunv@localhost vmware-tools-distrib]# chmod 755 INSTALL
[iyunv@localhost vmware-tools-distrib]# ls -l
总计 532
drwxr-xr-x  2 root root   4096 2009-10-22 bin
drwxr-xr-x  2 root root   4096 2009-10-22 doc
drwxr-xr-x  3 root root   4096 2009-10-22 etc
-r--r--r--  1 root root 517698 2009-10-22 FILES
lrwxrwxrwx  1 root root     13 02-11 22:44 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 root root   4096 2009-10-22 installer
drwxr-xr-x 17 root root   4096 2009-10-22 lib
lrwxrwxrwx  1 root root     31 02-11 22:44 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[iyunv@localhost vmware-tools-distrib]# INSTALL
bash: INSTALL: command not found
[iyunv@localhost vmware-tools-distrib]# ./INSTALL
./INSTALL: line 1: syntax error near unexpected token `C'
./INSTALL: line 1: `Copyright (C) 1998-2008 VMware, Inc.  All Rights Reserved.'
[iyunv@localhost vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.
  The previous installation was made by the tar installer (version 4).
  Keeping the tar4 installer database format.
  You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes] y
  Uninstalling the tar installation of VMware Tools.
  Skipping VMware Tools services shutdown on the host:       [确定]
  The removal of VMware Tools 6.0.4 build-93057 for Linux completed successfully.
Thank you for having tried this software.
  Installing VMware Tools.
  In which directory do you want to install the binary files?
[/usr/bin/vmtools]
  The path "/usr/bin/vmtools" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]   
  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/bin/sbin]
  The path "/usr/bin/sbin" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]
  In which directory do you want to install the library files?
[/usr/bin/lib/vmware-tools]
  The path "/usr/bin/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
  In which directory do you want to install the documentation files?
[/usr/bin/doc/vmware-tools]
  The path "/usr/bin/doc/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] y
  The installation of VMware Tools 8.1.3 build-203739 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/bin/vmtools/vmware-uninstall-tools.pl".
  Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmtools/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:                          [确定]
   Virtual Printing daemon:                                [确定]
   Unmounting HGFS shares:                                 [确定]
   Guest filesystem driver:                                [确定]
  
Found a compatible pre-built module for vmmemctl.  Installing it...
  
Found a compatible pre-built module for vmhgfs.  Installing it...
  
Found a compatible pre-built module for vmxnet.  Installing it...
  
Found a compatible pre-built module for vmblock.  Installing it...
  
[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] y
  Found a compatible pre-built module for vmsync.  Installing it...
  
Found a compatible pre-built module for vmci.  Installing it...
  
Found a compatible pre-built module for vsock.  Installing it...
  
Found a compatible pre-built module for vmxnet3.  Installing it...
  
Found a compatible pre-built module for pvscsi.  Installing it...
  
  
Detected X.org version 7.1.
  
Host resolution detected as "1366 x 768".
  
Please choose one of the following display sizes that X will start with:
  [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"
Please enter a number between 1 and 13:
  [13] 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.18-164.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64
Build Date: 31 March 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5
        Before reporting problems, checkhttp://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
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.6468", Time: Fri Feb 11 22:48:37 2011
(++) Using config file: "/tmp/vmware-config0/XF86Config.6468"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key  redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
  X is running fine with the new config file.
  FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot image for the kernel.
   Checking acpi hot plug                                  [确定]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [确定]
   Paravirtual SCSI module:                                [确定]
   Guest filesystem driver:                                [确定]
   Mounting HGFS shares:                                   [失败]
   Guest memory manager:                                   [确定]
   VM communication interface:                             [确定]
   VM communication interface socket family:               [确定]
   Blocking file system:                                   [确定]
   File system sync driver:                                [确定]
   Guest operating system daemon:                          [确定]
   Virtual Printing daemon:                                [确定]
  The configuration of VMware Tools 8.1.3 build-203739 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/vmtools/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/vmtools/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
  Enjoy,
  --the VMware team
  
   之后如果拖动不了文件,本地连接断开在重连
  
  -----------------------
转自 : http://hi.baidu.com/zwfec/item/7f920e2dbf421f99b6326329

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-55522-1-1.html 上篇帖子: 设置linux虚拟机屏幕大小,告别ctrl+alt 下篇帖子: 如何在虚拟机上安装Linux 乌班图
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表