安装更新时出现问题VMwareTools时的问题

虚拟机中的Linux安装VMware Tools的方法
& 发布时间: 19:19:25 & 作者:佚名 &
这篇文章主要介绍了虚拟机中的Linux安装VMware Tools的方法,需要的朋友可以参考下
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:\program\VMware\VMware Workstation\Programs\linux.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&/]#&lsbin&&&dev&home&lost+found&misc&net&proc&sbin&&&&&srv&tftpboot&usrboot&etc&lib&&&media&&&&&&&mnt&&&opt&root&selinux&sys&tmp&&&&&&&var[root@localhost&/]#&cd&/media[root@localhost&media]#&lsVMware&Tools[root@localhost&media]#&cd&VMware\&Tools/[root@localhost&VMware&Tools]#&lsmanifest.txt&VMwareTools-8.1.3-203739.tar.gz[root@localhost&VMware&Tools]#&cp&VMwareTools-8.1.3-203739.tar.gz&&&&/tmp[root@localhost&VMware&Tools]#&cd&/tmp[root@localhost&tmp]#&lsgconfd-root&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&scim-helper-manager-socket-rootkeyring-lbbFvv&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&scim-panel-socket:0-rootmapping-root&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&scim-socket-frontend-rootorbit-root&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&ssh-FmnVlj2751scim-bridge-0.3.0.lockfile-0@localhost:0.0&virtual-root.ZxmHUVscim-bridge-0.3.0.socket-0@localhost:0.0&&&&VMwareTools-8.1.3-203739.tar.gz[root@localhost&tmp]#&tar&-zxf&VMwareTools-8.1.3-203739.tar.gz&[root@localhost&tmp]#&lsgconfd-root&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&scim-panel-socket:0-rootkeyring-lbbFvv&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&scim-socket-frontend-rootmapping-root&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&ssh-FmnVlj2751orbit-root&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&virtual-root.ZxmHUVscim-bridge-0.3.0.lockfile-0@localhost:0.0&VMwareTools-8.1.3-203739.tar.gzscim-bridge-0.3.0.socket-0@localhost:0.0&&&&vmware-tools-distribscim-helper-manager-socket-root[root@localhost&tmp]#&cd&vmware-tools-distrib/[root@localhost&vmware-tools-distrib]#&lsbin&doc&etc&FILES&INSTALL&installer&lib&vmware-install.pl[root@localhost&vmware-tools-distrib]#&./vmware-install.pl&Creating&a&new&VMware&Tools&installer&database&using&the&tar4&format.Installing&VMware&Tools.In&which&directory&do&you&want&to&install&the&binary&files?&[/usr/bin]&yes&&&
The&path&&yes&&is&a&relative&path.&Please&enter&an&absolute&path.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]&The&path&&/usr/lib/vmware-tools&&does&not&exist&currently.&This&program&is&going&to&create&it,&including&needed&parent&directories.&Is&this&what&you&want?[yes]&yes&&&In&which&directory&do&you&want&to&install&the&documentation&files?&[/usr/share/doc/vmware-tools]&The&path&&yes&&is&a&relative&path.&Please&enter&an&absolute&path.In&which&directory&do&you&want&to&install&the&documentation&files?&[/usr/share/doc/vmware-tools]&The&path&&/usr/share/doc/vmware-tools&&does&not&exist&currently.&This&program&is&going&to&create&it,&including&needed&parent&directories.&Is&this&what&you&want?&[yes]&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/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:&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]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&thatcreates&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]&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&&1440&x&900&.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]&&&[13]&&&[14]&&&[15]&&&[16]&&&[17]&&&&Please&enter&a&number&between&1&and&17:[17]&12&&&X&Window&System&Version&7.1.1Release&Date:&12&May&2006X&Protocol&Version&11,&Revision&0,&Release&7.1.1Build&Operating&System:&Linux&2.6.18-128.1.16.el5&i686&Red&Hat,&Inc.Current&Operating&System:&Linux&localhost.localdomain&2.6.18-164.el5&#1&SMP&Tue&Aug&18&15:51:54&EDT&Build&Date:&22&July&2009Build&ID:&xorg-x11-server&1.1.1-48.67.el5&Before&reporting&problems,&check&http://wiki.x.orgto&make&sure&that&you&have&the&latest&version.Module&Loader&presentMarkers:&(--)&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.16172&,&Time:&Thu&Apr&1&02:40:28&2010(++)&Using&config&file:&&/tmp/vmware-config0/XF86Config.16172&The&XKEYBOARD&keymap&compiler&(xkbcomp)&reports:&&Warning:&&&&&&&&&&Multiple&symbols&for&level&1/group&1&on&key&&I5F&&&&&&&&&&&&&&&&&&&&&Using&XF86Sleep,&ignoring&XF86Standby&&Warning:&&&&&&&&&&Symbol&map&for&key&&I5F&&redefined&&&&&&&&&&&&&&&&&&&&Using&last&definition&for&conflicting&fieldsErrors&from&xkbcomp&are&not&fatal&to&the&X&serverX&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.Starting&VMware&Tools&services&in&the&virtual&machine:Switching&to&guest&configuration:&&&&&&&&&&&&&&&&&&&&&&&[确定]Paravirtual&SCSI&module:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]Guest&filesystem&driver:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]Mounting&HGFS&shares:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[失败]Guest&memory&manager:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]Guest&vmxnet&fast&network&device:&&&&&&&&&&&&&&&&&&&&&&&[确定]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&runningkernel&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/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/vmware-user2.&Log&out&and&log&back&into&your&desktop&&and,3.&Restart&your&X&session.To&use&the&vmxnet&driver,&restart&networking&using&the&following&commands:&/etc/init.d/network&stoprmmod&pcnet32rmmod&vmxnetmodprobe&vmxnet/etc/init.d/network&startEnjoy,--the&VMware&teamFound&VMware&Tools&CDROM&mounted&at&/media/VMware&Tools.&Ejecting&device&/dev/hdc&...[root@localhost&vmware-tools-distrib]#&
大家感兴趣的内容
12345678910
最近更新的内容51CTO旗下网站
解决无法安装VMWARE Tools的问题
VMWARE Tools可以提供很多人性化的操作,比如提升分辨率,它一旦发生故障将会影响操作的便捷性,本文会着重介绍如何解决无法安装VMWARE Tools的问题
作者:来源:ddvip.com| 22:21
在此次解决解决无法安装VMWARE Tools的问题的例子中,笔者采用的环境如下:
主机:win xp sp2 虚拟平台:VMWARE 4.5.2 在其上安装RedHat9.0。
无法安装VMWARE Tools的问题现象:能够进入图形界面,但是总是提示没有安装VMWARE Tools。具体如下:
A previous installation of VMware software has been detected.
The previous installation was made by the tar installer (version 3).
Keeping the tar3 installer database format.
Uninstalling the tar installation of VMware Tools.
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
The removal of VMware Tools 4.5.2 build-8848 for Linux completed successfully.
Thank you for having tried this software.
Installing the 未命名 1content of the package.
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]
The path "/usr/lib/vmware-tools" does not exist currently. This program is goingto create it, including needed parent directories. Is this what you want?
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program isgoing to create it, including needed parent directories. Is this what you want?
Unmounting the Tools ISO image mnt/cdrom .
The installation of VMware Tools 4.5.2 build-8848 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]
This configuration program is to be executed out of an XFree86 session. Please
shut down all instances of XFree86.
Execution aborted.
无法安装VMWARE Tools的问题原因:没有配置该工具。vmware-config-tools.pl需要根据你的显示器分辨率进行配置,然后才能加强鼠标功能。
解决:需要进行如下操作:
#init 3(保证在超级用户模式下,进入文字界面)
login:root
password:
#cd /usr/bin
#vmware-config-tools.pl
然后根据提示设置,完成后reboot一下,这个无法安装VMWARE Tools的问题就可以解决了。
【编辑推荐】
【责任编辑: TEL:(010)】
大家都在看猜你喜欢
关注热点关注聚焦关注
24H热文一周话题本月最赞
讲师:27601人学习过
讲师:6687人学习过
讲师:7742人学习过
精选博文论坛热帖下载排行
本书以一个模拟局域网组建为思路,介绍了与局域网组建各主要方面相关的知识及组建、配置方法。本书所介绍的内容主要包括:局域网组建规划、...
订阅51CTO邮刊vmware tools安装出现的问题
VMware中设置好共享文件夹并安装VMware Tools后/mnt/hgfs/下依然没有看到共享文件夹。查看网上的解决办法,都是说
1、sudo apt-get install open-vm-dkms
2、sudo mount -t vmhgfs .host:/ /mnt/hgfs
但是在执行步骤2的时候依然不行。好像是hgfs模块没有安装好。
后来试了重装VMware Tools时提示依赖open-vm-dkms和open-vm-tools此时卸载这两个软件并删除配置
sudo apt-get autoremove open-vm-dkms open-vm-tools --purge
然后再安装VMware Tools就能看到共享了。
执行到 apt-get install open-vm-dkms 出错,具体如下
xxx@ubuntu:~$ sudo apt-get install open-vm-dkms
[sudo] password for lee:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
open-vm-dkms 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 21 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 open-vm-tools (2:9.4.0-ubuntu6) ...
* Starting open-vm daemon vmtoolsd
invoke-rc.d: initscript open-vm-tools, action "start" failed.
dpkg: error processing package open-vm-tools (--configure):
子进程 已安装 post-installation 脚本 返回了错误号 2
dpkg: dependency problems prevent configuration of open-vm-tools-dkms:
open-vm-tools-dkms 依赖于 open-vm-tools (&= 2:9.4.0-ubuntu3);然而:
软件包 open-vm-tools 尚未配置。
dpkg: error processing package open-vm-tools-dkms (--configure):
依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
dpkg: dependency problems prevent configuration of open-vm-dkms:
open-vm-dkms 依赖于 open-vm-tools-dkms;然而:
软件包 open-vm-tools-dkms 尚未配置。
dpkg: error processing package open-vm-dkms (--configure):
依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
在处理时有错误发生:
open-vm-tools
open-vm-tools-dkms
open-vm-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
xxx@ubuntu:~$
解决方法:
重装VMware Tools时提示依赖open-vm-dkms和open-vm-tools此时卸载这两个软件并删除配置
sudo apt-get autoremove open-vm-dkms open-vm-tools --purge
然后再安装VMware Tools就能看到共享了。
在14.04上也遇到同样问题,用vmware-hgfsclient输出:
但运行mount -t vmhgfs .host:/ /mnt/hgfs/ 时提示: no such device
重新运行vmware-install.pl,一路默认选项,最后出现:
You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.
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/vmware-user
2. Log out and log back into
3. Restart your X session.
--the VMware team
按照提示先运行 /usr/bin/vmware-user,再logout/login(桌面右上端设置列表有个logout),
再运行mount第二次竟然成功!不明觉励。
./usr/bin/vmware-config-tools.pl -d
/usr/bin/vmware-toolbox-cmd
执行之后才有复制粘贴功能共享的实现
没有更多推荐了,VMware虚拟机给Ubuntu安装vmware tools工具的操作方法 - 常见问题解答 - U大侠官网-装机专家
VMware虚拟机给Ubuntu安装vmware tools工具的操作方法
来源:U大侠
  VMware虚拟机怎么给Ubuntu系统安装vmware tools呢?有用户需要在Ubuntu虚拟机和电脑中传送文件,那么就需要给Ubuntu虚拟机安装vmware tools工具,下面给大家介绍Ubuntu系统中安装vmware tools工具的操作方法。
  解决方法:
  1、打开虚拟机VMware Workstation,启动Ubuntu系统,菜单栏 - 虚拟机 - 安装VMware Tools,不启动Ubuntu系统是无法点击&安装VMware Tools&选项的,如下图:
  2、如果弹出如下框,点击是即可:
  3、此时,会发现虚拟机设备下多了VMware Tools这一项,点击它,其里面有一个VMwareTools&tar.gz文件:
常见问题解答安装Vmtools的时候出现的问题
这个是在虚拟机上安装Vmtools的时候出现的问题。
VMware(R) Workstation:9.0.0 build-812388
ubuntu版本:14.04
问题:The path "" is not a valid path to the 3.16.0-30-generic kernel headers.
1、安装3.16.0-30-generic kernel headers(注意与linux内核版本一致)
sudo apt&span class="hljs-attribute"&-get&/span& install linux&span class="hljs-attribute"&-headers&/span&&span class="hljs-subst"&-&/span&&span class="hljs-string"&`uname -r`&/span&
2、进入到3.16.0-30-generic/build/include目录,并拷贝当前目录,将该目录复制到vmtools 安装时需要填写的目录。
3、重新安装vmtools,走到提示“The path “” is not a valid path to the X.x.x.xx-generic kernel headers.”时,选择yes,并输入第二步中拷贝的路径,回车继续安装即可
4、如果按照上面的步骤依然提示,则在第一步之后拷贝/usr/src/linux-headers-3.16.0-30/include/uapi/linux/dvb/version.h到/usr/src/linux-headers-3.16.0-30/include/linux下,然后按照第二、第三步继续安装即可。
没有更多推荐了,}

我要回帖

更多关于 安装软件时出现问题 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信