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

[经验分享] linux命令行下安装VM TOOLS

[复制链接]

尚未签到

发表于 2015-4-10 08:57:37 | 显示全部楼层 |阅读模式
ROOT帐户登录LINUXVM菜单:VM--安装VMware Tools,打开终端:
注意:在linux的各种命令行下输入"命令""软件名"一定要注意大小写!!!

[iyunv@rd01 ~]# cd /mnt/cdrom
[iyunv@rd01 ~]# cd /cdrom
[iyunv@rd01 ~]#
ls   VMwareTools-5.5.1-19175.rpm VMwareTools-5.5.1-19175.tar.gz
[iyunv@rd01 ~]# rpm -ivh VMwareTools-5.5.1-19175.i386.rpm
[iyunv@rd01 ~]# cp VMwareTools-5.5.1-19175.tar.gz /tmp
[iyunv@rd01 ~]# cd /tmp
[iyunv@rd01 ~]# tar zxpf VMwareTools-5.5.1-19175.tar.gz
[iyunv@rd01 ~]# cd vmware-tools-distrib
[iyunv@rd01 vmware-tools-distrib]# ./vmware-install.pl

Creating a new installer database using the tar3 format.
Installing the content of the package.
# 安装过程的画面,全部使用默认值,一直按 Enter 就对了
In which directory do you want to install the binary files?
[/usr/bin]
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/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
Thepath "/usr/lib/vmware-tools" does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
[yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
Thepath "/usr/share/doc/vmware-tools" does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want?
[yes]
The installation of VMware Tools 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/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: [ 确定 ]

Trying to find a suitable vmhgfs module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
pcnet32 30153 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

Detected X.org version 6.8.
关闭控制台鼠标服务: [ 确定
]
启动控制台鼠标服务: [ 确定 ]
Enjoy,
--the VMware team
[iyunv@rd01 vmware-tools-distrib]# shutdown -r now

# 修改完成之后,重新启动计算机,让 VMware Tools 生效

  
  
  再接下来设置共享就是在VM里设置了,VM→Setting→Options→SharedFolders→Add→选定要共享的文件夹并给这个文件夹命名→OK,vmware会把这个文件夹自动mount到/mnt/hgfs目录下,OK搞定收工!
  
  
  关于这个问题,偶有一点小发现,如下:
  1.这个共享与windows的server服务开否没有关系,也就是说与我们常见的windows与windows共享是不同的。
  2.共享与内置防火墙允许共享这个有关。我开了内置防火墙,也就是在本地连接那里设置启用了共享这一项,否则会有什么后果,有待我具体确定,刚才就是我把这个没搞hgfs里面什么也没有,内置防火墙允许共享这项之后我重启了一次linux,现在有了,HOHO!
  3.现在是两个文件夹拖文件的时候,可以从windows拖到Linux系统,但是把文件从linux拖到windows的时候显示错误提示:目标位置没有足够的空间。NND!我在VM里设置了可写,设置了windows目录可写权限,赋给everyone所有权限,赋给vmware user也是所有权限,依然出现这样的问题,很是郁闷。最后我试着在/mnt/hgfs共享出来的文件夹里可以新建文件夹,那就表明可以写啊,有戏。然后我用cp命令把linux的东东拷到windows目录去了,yeah!这可能是一个Bug吧,cp可以,拖动复制就报错,我靠!
  4.在终端里对汉字的支持,还是不太好,windows的文件带有汉字的在linux里显示的。。。。。。。。。乱78糟,所以如果想把linux的东东CP到windows里最好取名的时候不带汉字。另外比如LINUX下带汉字的记事本(内容有汉字)cp到windows用记事本打开的话,格式是没办法了,LINUX下的换行在windows里都用一个黑框代替了,这样子可以用写字板看就会恢复原来的格式,可是汉字呢,惨了!两者要是都能恢复就好了。。。。。。。。。:)

  5.这个共享暂时用用,以后换换Samba或者FTP玩玩:)
  
  
  转载:http://hi.baidu.com/w_dalu/blog/item/09c374c397aa3653b219a8fd.html

运维网声明 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-55584-1-1.html 上篇帖子: ubuntu11.10下,vmware8.0安装ghostxp导致的问题。 下篇帖子: [译|转]ESX 3.5中使用QLogic QLE 220 HBA卡
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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