红联Linux门户
Linux帮助

Fedora 在VMware中的vmware-tools安装过程

发布时间:2007-08-23 10:44:46来源:红联作者:acctorairev
# Install software called by by VMware Tools
yum install gcc
# Install kernel header files
yum install kernel-devel
# Check it matches the running kernel
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).
# Find out where the kernel headers are
ls -d /usr/src/kernels/$(uname -r)*/include
# You may need this later.
# If you already have VMwareTools-5.5.2-29772.tar.gz
on disk, SKIP THIS STEP!
# Download VMware-workstation-5.5.2-29772.tar.gz from vmware.com
# Extract the VMware Tools iso from it
tar --strip-components=3 -zxvf VMware-workstation-5.5.2-29772.tar.gz \
vmware-distrib/lib/isoimages/linux.iso
# Create a temporary mount point
mkdir /mnt/vmtools-temp
# Mount the image
mount -o loop linux.iso /mnt/vmtools-temp
# Copy VMware Tools from the mount
cp /mnt/vmtools-temp/VMwareTools-5.5.2-29772.tar.gz /tmp/
# Unmount the image and tidy up
umount /mnt/vmtools-temp
rmdir /mnt/vmtools-temp
rm linux.iso
# Unpack VMware Tools to a temporary directory
cd /tmp/
tar zxvf VMwareTools-5.5.2-29772.tar.gz
cd /tmp/vmware-tools-distrib/
./vmware-install.pl
# Do you want to run vmware-config-tools.pl? yes
# Fix xorg config
# If when you (re)start X, you get the error "Undefined Monitor "vmware"..":
vi /etc/X11/xorg.conf
# Add the lines
Section "Monitor"
Identifier "vmware"
EndSection
# To add better mouse support, add the lines
Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
EndSection
# then find the "ServerLayout" section, and in that section, add the line
InputDevice "Mouse0" "CorePointer"

# TODO fix vmhgfs compile (currently broken)
# TODO fix fast ethernet driver compile (currently broken)
# TODO copy and paste broken

有感:
红色部是解决鼠标在虚拟机与本机之间的切换问题,在我安装成功之后,我倒觉得不解决这个问题更方便使用。因为鼠标拿虚拟机范围后自动会解除,而放到其范围内会自动有效。

安装成功之后还是有些成就感的。我安装的过程与上面不尽相同,主要是一个挂载liunx.iso的过程,安装程序中已经有这个镜像,里面就已经vmware-tools了。我算彻底明白mount的意思了。hoho!
文章评论

共有 4 条评论

  1. 阿基理斯 于 2009-10-15 09:37:25发表:

    添砖加瓦,建设四化。

  2. prinse 于 2009-10-14 13:31:20发表:

    我的 host 是 F11,vmware 是 6.5.3 workstation,guest 是 ubantu 9.10,安装 vmware-tools 时,一配 xorg.conf 重启 guest 到 GDM 时就挂了。不知何故……

  3. yeswangzi 于 2009-10-11 22:34:18发表:

    太复杂了,看不懂啊

  4. happywinner 于 2007-08-24 09:59:56发表:

    我装好像没这么复杂。