首页 > 系统 > Linux > 正文

Oracle Linux 5.7安装VMware Tools的问题

2024-06-28 13:25:31
字体:
来源:转载
供稿:网友
Oracle linux 5.7安装VMware Tools的问题 2014-07-01 11:25 by 潇湘隐者, ... 阅读, ... 评论, 收藏, 编辑

案例环境介绍:

虚拟机的版本:VMware? Workstation 8.0.3 build-703057 操作系统版本:Oracle Linux Server release 5.7

在安装虚拟机工具时,执行./vmware-install.pl 命令后一步一步操作,最后出现如下错误信息,安装程序aborted:

Creating a new initrd boot image for the kernel. No module ehci-hcd found for kernel 2.6.32-200.13.1.el5uek, aborting. ERROR: "/sbin/mkinitrd -f --with=vmxnet3 --with=vmw_pvscsi --with=vmxnet /boot/initrd-2.6.32-200.13.1.el5uek.img 2.6.32-200.13.1.el5uek" exited with non-zero status.

Your system currently may not have a functioning init image and may not boot PRoperly. DO NOT REBOOT! Please ensure that you have enough free space available in your /boot directory and run this configuration script again.

Execution aborted.

Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device /dev/sr0 ... Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/cdrom ...

解决方法介绍:

Google了一些资料后,终于找到了一个解决方法:拷贝一些文件到对应目录即可解决这个错误。如下所示:将这些文件拷贝到/lib/modules/2.6.32-200.13.1.el5uek/kernel/drivers/usb/host目录下

[root@DB-Server host]# ls /lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/?hci-hcd.ko 
/lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/ehci-hcd.ko
/lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/ohci-hcd.ko
/lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/uhci-hcd.ko
[root@DB-Server host]# cp /lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/?hci-hcd.ko /lib/modules/2.6.32-200.13.1.el5uek/kernel/drivers/usb/host

拷贝完这些文件后,执行perl安装脚本vmware-install.pl重新安装VMware Tools即可安装成功。安装过程如下所示:

[root@DB-Server 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] 
Uninstalling the tar installation of VMware Tools.
Stopping services for VMware Tools
Stopping VMware Tools services in the virtual machine:
   Guest Operating system daemon:[  OK  ]
   Virtual Printing daemon:[  OK  ]
   VMware User Agent (vmware-user):[  OK  ]
   Blocking file system:[  OK  ]
   Unmounting HGFS shares:[  OK  ]
   Guest filesystem driver:[  OK  ]
   VM communication interface socket family:[  OK  ]
   VM communication interface:[  OK  ]
This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to 
remove it.  Somebody else apparently did it already.
File /etc/vmware-tools/vmware-user.desktop is backed up to 
/etc/vmware-tools/vmware-user.desktop.old.2.
File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.2.
File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is 
backed up to 
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.2.
This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to 
remove it.  Somebody else apparently did it already.
This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove 
it.  Somebody else apparently did it already.
This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to 
remove it.  Somebody else apparently did it already.
This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to 
remove it.  Somebody else apparently did it already.
This program previously created the directory /etc/vmware-tools, and was about 
to remove it. Since there are files in that directory that this program did not
create, it will not be removed.
File /etc/X11/xorg.conf is backed up to /etc/X11/xorg.conf.old.2.
The removal of VMware Tools 8.8.2 build-590212 for Linux completed 
successfully.
Installing VMware Tools.
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表