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

  在虚拟机下安装了Debian后,我先后使用了两种方法安装VMware Tools,都没有成功。
  方法(1)
  使用VMware自带的Install VMware tools功能
  系统没有反应,也没在桌面生成VMware Tools的虚拟光盘。
  方法(2)
  将VMware安装目录下的linux.iso挂载到Debian中,使用命令行方式安装VMware Tools
  安装到最后,提示What is the location of the directory of C header files that match your running kernel? 无法继续安装。
  最终使用如下方法解决了这一问题:
  /*解决location of the directory of C header files的问题*/
  1)uname -a查看系统版本
  我的系统信息为:Linux debian 2.6.18-6-686
  2)cd /usr/src; ln -s linux-headers-2.6.18-6-686 linux (如系统没有安装则运行apt-get install linux-headers-2.6.18-6-686)
  3)export CC=/usr/bin/gcc-4.1
  /*安装vmware-tools*/
  4)拷贝linux.iso到Debian中
  5)mount -o loop linux.iso /mnt
  6)tar zxvf vmware.tgz
  7)su ./vmware-install.pl
  如果你没有特殊的设置需要,一路回车就可以了。
  安装结束后,移动你的鼠标。如果不需要按住Ctrl+Alt,就可以将鼠标移至虚拟机以外的区域,就代表VMware Tools已经安装成功!
  (另外,我也遇到过需要重启Linux系统,VMware Tools才能生效的情况。)
  本文转自:Debian Linux虚拟机中安装VMware Tools的方法

posted @ 2012-11-27 11:39  VEsystem  阅读(4348)  评论(0编辑  收藏  举报