背景:需要使用vmware安装oracle数据库,但linux机由于没有安装vmware tools 无法跟主机共享文件,粘贴板。
说明:本教程以vmware 12为基础提供安装vmware tools的步骤,对应linux系统版本为Redhat 6.5.
Vmware Tools工具安装
----点击虚拟机顶部工具栏选择虚拟机--安装VMware Tools
----完成步骤1后,桌面上会生成一个vmware tools的dvd光盘,选中光盘单击右键--在终端中打开
----输入ls命令查看文件列表,使用命令tar -xzvf VMwareTools-10.0.6-3595377.tar.gz -C /opt 解压压缩包文件到/opt目录下
----进入解压后生成的vmware-tools-distrib
cd /opt/vmware-tools-distrib
----运行vmware-install.pl安装,进入安装后不断点回车,直至安装完成。运行命令如下
./vmware-install.pl
ps:详细安装过程如下:
[root@oraserver VMware Tools]# ls
manifest.txt VMwareTools-10.0.6-3595377.tar.gz vmware-tools-upgrader-64
run_upgrader.sh vmware-tools-upgrader-32
[root@oraserver VMware Tools]# tar -xzvf VMwareTools-10.0.6-3595377.tar.gz -C /opt
[root@oraserver opt]# cd /opt/vmware-tools-distrib
[root@oraserver vmware-tools-distrib]# ls
bin doc FILES installer vgauth vmware-install.real.pl
caf etc INSTALL lib vmware-install.pl
[root@oraserver 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]
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]
In which directory do you want to install the common agent library files?
[/usr/lib]
In which directory do you want to install the common agent transient files?
[/var/lib]
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 10.0.6 build-3595377 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]
Initializing...
Making sure services for VMware Tools are stopped.
Stopping Thinprint services in the virtual machine:
Stopping Virtual Printing daemon: done
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [确定]
VMware User Agent (vmware-user): [确定]
Unmounting HGFS shares: [确定]
Guest filesystem driver: [确定]
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.
The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.
The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [yes]
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment. Do you wish to enable this feature?
[yes]
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.
Would you like to enable VMware automatic kernel modules?
[no]
Thinprint provides driver-free printing. Do you wish to enable this feature?
[yes]
Disabling timer-based audio scheduling in pulseaudio.
Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
if you want to enable Common Agent (caf). [yes]
Do you want to enable Common Agent (caf)? [yes]
Detected X server version 1.13.0
Distribution provided drivers for Xorg X server are used.
Skipping X configuration because X drivers are not included.
Creating a new initrd boot image for the kernel.
Generating the key and certificate files.
Successfully generated the key and certificate files.
Starting Virtual Printing daemon: done
Checking acpi hot plug [确定]
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [确定]
VM communication interface: [确定]
VM communication interface socket family: [确定]
Guest filesystem driver: [确定]
Mounting HGFS shares: [失败]
Blocking file system: [确定]
Guest operating system daemon: [确定]
VGAuthService: [确定]
Common Agent: [确定]
The configuration of VMware Tools 10.0.6 build-3595377 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 "/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 your desktop session; and,
3. Restart your X session.
Enjoy,
--the VMware team
Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/sr0 ...
[root@oraserver vmware-tools-distrib]#
评论回复