免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 877 | 回复: 0
打印 上一主题 下一主题

Install VMware Tools in Fedora Core [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-18 22:45 |只看该作者 |倒序浏览

1. Install software needed by VMware Tools
  • Install packages to build the kernel modules
    yum install gcc kernel-devel
  • Check the running kernel matches the kernel headers
    uname -r             # running kernel
    rpm -q kernel-devel  # installed kernel headers
  • If the two versions do not match, run
    yum -y upgrade kernel kernel-devel
    reboot
  • Find out where the kernel headers are (you may need this later)
    ls -d /usr/src/kernels/$(uname -r)*/include
    2. Prepare VMware Tools
    Choose one of a), b), c) or d).
    a) If you are running the VM inside VMware Workstation 5.5 Show answer
  • From VMware Workstation: go to VM> Install VMware Tools
  • From the VM: mount the virtual cd drive
    mount /dev/cdrom /mnt/
  • Extract VMware Tools to /tmp/
    tar -C /tmp -zxvf /mnt/VMwareTools-5.5.1-19175.tar.gz
  • Unmount the virtual cd drive
    umount /mnt
  • Now run the installer
    cd /tmp/vmware-tools-distrib
    ./vmware-install.pl
  • When asked Do you want to run vmware-config-tools.pl?, answer "No", and follow on from 3. Install VMware Tools below. b) If you are running the VM inside ESX 3.0.x Show answer
  • From Virtual Infrastructure Client: go to VM> Install VMware Tools
  • From the VM: mount the virtual cd drive
    mount /dev/cdrom /mnt/
  • Extract VMware Tools to /tmp/
    tar -C /tmp -zxvf /mnt/VMwareTools-5.5.1-19175.tar.gz
  • Unmount the virtual cd drive
    umount /mnt
  • Now run the installer
    cd /tmp/vmware-tools-distrib
    ./vmware-install.pl
  • When asked Do you want to run vmware-config-tools.pl?, answer "No", and follow on from 3. Install VMware Tools below.
    -->
    b) If you have VMware-workstation-5.5.1-19175.tar.gz on disk Show answer
  • Make sure VMware-workstation-5.5.1-19175.tar.gz is on disk inside the VM.
  • Extract the VMware Tools iso
    tar --strip-components=3 -zxvf VMware-workstation-5.5.1-19175.tar.gz \
    vmware-distrib/lib/isoimages/linux.iso
  • Create a temporary mount point
    mkdir /mnt/vmtools-temp
  • Mount the iso image
    mount -o loop linux.iso /mnt/vmtools-temp
  • Copy VMware Tools from the mount
    cp /mnt/vmtools-temp/VMwareTools-5.5.1-19175.tar.gz /tmp/
  • Extract VMware Tools to /tmp/
    tar -C /tmp -zxvf /mnt/vmtools-temp/VMwareTools-5.5.1-19175.tar.gz
  • Tidy up
    umount /mnt/vmtools-temp
    rmdir /mnt/vmtools-temp
    rm linux.iso
  • Now run the installer
    cd /tmp/vmware-tools-distrib
    ./vmware-install.pl
  • When asked Do you want to run vmware-config-tools.pl?, answer "No", and follow on from 3. Install VMware Tools below.
    c) If you have VMwareTools-5.5.1-19175.tar.gz on disk Show answer
  • Extract VMware Tools to /tmp/
    tar -C /tmp -zxvf VMwareTools-5.5.1-19175.tar.gz
  • Now run the installer
    cd /tmp/vmware-tools-distrib
    ./vmware-install.pl
  • When asked Do you want to run vmware-config-tools.pl?, answer "No", and follow on from 3. Install VMware Tools below.
    d) If you cannot do any of these Show answer
  • Download VMware Workstation Trial (free) from
    http://www.vmware.com/download/ws/

  • Go to If you have VMwareTools-5.5.1-19175.tar.gz on disk, above.
    3. Install VMware Tools
    Note: Version 5.5.1 of VMware Tools requires a patch, shown below. If you are using a later version of VMware Tools, this is not be required. Try running /usr/bin/vmware-config-tools.pl first without the patch, and only if it fails follow this section.
  • Backup your existing file
    cp /usr/bin/vmware-config-tools.pl /usr/bin/vmware-config-tools.pl.orig
  • Patch the file (see note above)
    cd /tmp/
    wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-tools-any-update2.tar.gz
    tar zxvf vmware-tools-any-update2.tar.gz
    cd vmware-tools-any-update2/
    ./runme.pl
  • When asked Do you want to run vmware-config-tools.pl?, answer "Yes".
    4. Fixes
    a) Your mouse is stuck inside your VM Show answer
  • Edit the X config file
    vi /etc/X11/xorg.conf
  • Look for the section Secton "InputDevice"
  • Change the Driver "mouse" to Driver "vmmouse"
  • Create a link to the driver
    ln -s /usr/lib/vmware-tools/configurator/XOrg/6.8.x/vmmouse_drv.o /usr/lib/xorg/modules/input/
  • Restart X.

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12184/showart_693414.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP