安装VMware tools on linux

转载 2007年10月02日 16:52:00

How To Set Up VMware Tools On Various Linux Distributions

'); //-->
Remove ads
'); //-->
Submitted by o.meyer (Contact Author) (Forums) on Sun, 2007-09-30 17:51. :: Debian | Fedora | Linux | PCLinuxOS | Ubuntu | Desktop | Virtualization

How To Set Up VMware Tools On Various Linux Distributions

Version 1.0
Author: Oliver Meyer <o [dot] meyer [at] projektfarm [dot] de>
Last edited 09/25/2007

This document explains how to set up the VMware Tools in the following guest operating systems: Ubuntu 7.04, Fedora 7, PCLinuxOS 2007 and Debian Etch. Installing VMware Tools in your guest operating systems will help maximize performance, provide mouse synchronization and copy & paste functionality. This article also shows a way of making VMware Tools start automatically when you start a guest operating system.

I used the VMware Tools v1.0.3-44356 provided by VMware Server v1.03.

This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web.

This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

'); //-->
Remove ads
'); //-->

 

1 Preparation

Set up a virtual machine of your choice. Click on VM in the top menu of the VMware Server console and select Install VMware Tools.

 

 

 

 

2 Ubuntu 7.04

First copy the VMware Tools from the mounted iso to the temporary folder:

cp /media/cdrom/VMwareTools-1.0.3-44356.tar.gz /tmp/

Afterwards switch to the temporary folder and unpack the VMware Tools:

cd /tmp/
tar xvfz VMwareTools-1.0.3-44356.tar.gz

Next switch to the folder with the unpacked files and execute the installer:

cd vmware-tools-distrib/
sudo ./vmware-install.pl

Now you will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

After the installation/configuration finished you have to start the VMware Tools:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

 

3 Fedora 7 (Kernel 2.6.22.5-76.fc7)

First become root and install some needed packages:

su -
%yourrootpassword%
yum install kernel-devel gcc gcc-c++

Next copy the VMware Tools from the mounted iso to the temporary folder:

cp /media/VMware/ Tools/VMwareTools-1.0.3-44356.tar.gz /tmp/

Afterwards switch to the temporary folder and unpack the VMware Tools:

cd /tmp/
tar xvfz VMwareTools-1.0.3-44356.tar.gz

Now we have to fix the vmxnet module:

cd vmware-tools-distrib/lib/modules/source
tar xf vmxnet.tar
cp vmxnet-only/vmxnet.c vmxnet-only/vmxnet.c.orig
wget http://www.thoughtpolice.co.uk/vmware/howto/patch2-vmxnet.c.patch
patch -u vmxnet-only/vmxnet.c < patch2-vmxnet.c.patch
tar cf vmxnet.tar vmxnet-only/
cd /tmp/vmware-tools-distrib
./vmware-install.pl

You will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

Next step is to fix the xorg.conf:

vi /etc/X11/xorg.conf

Add the following lines:

Section "Monitor"
   Identifier "vmware"
EndSection

After this you have to run the configuration again:

vmware-config-tools.pl

Choose the default value every time (simply hit enter) till you reach the question Do you want to change your guest X resolution? - choose yes and select your desired resolution.

The last step is to fix the integration of the vmxnet module by manually loading it (otherwise you might obtain problems with the network):

/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/networking start

Afterwards reboot the vm. After the vm has rebooted, you can start the VMware Tools via:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

 

4 PCLinuxOS 2007

Become root, switch to the mounted iso and install the rpm package:

su -
%yourrootpassword%
cd /media/VMware/ Tools/
rpm -ivh VMwareTools-1.0.3-44356.i386.rpm

Afterwards run the configuration:

vmware-config-tools.pl

You will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

Afterwards reboot the vm. After the vm has rebooted, you can start the VMware Tools via:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

 

5 Debian Etch

First install some needed pakages:

apt-get install autoconf automake binutils ccp gcc linux-headers-$(uname -r) make psmisc

Next copy the VMware Tools from the mounted iso to the temporary folder:

cp /media/cdrom/VMwareTools-1.0.3-44356.tar.gz /tmp/

Afterwards switch to the temporary folder and unpack the VMware Tools:

cd /tmp/
tar xvfz VMwareTools-1.0.3-44356.tar.gz

Next switch to the folder with the unpacked files and execute the installer:

cd vmware-tools-distrib/
./vmware-install.pl

Now you will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

Afterwards reboot the vm. After the vm has rebooted, you can start the VMware Tools via:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

Submitted by o.meyer (Contact Author) (Forums) on Sun, 2007-09-30 17:54. ::

6 VMware Toolbox Automatic Hidden Start

We'll create two scripts (I sometimes had problems when I put all in one script). These scripts will be executed everytime when an X-session starts - they will switch to the next workspace, start the VMware Tools minimized and switch back to the previous workspace. The switching will be done with xvkbd - a virtual keyboard for the X window system.

6.1 Install Xvkbd

Ubuntu 7.04:

sudo apt-get install xvkbd

Fedora 7:

su -
%yourrootpassword%
rpm -ivh http://dag.wieers.com/rpm/packages/xvkbd/xvkbd-2.8-1.el4.rf.i386.rpm
exit

PCLinuxOS 2007:

Download the rpm-package from http://rpmseek.com/rpm/xvkbd-2.7a-2mdk.i586.html?hl=de&cs=xvkbd:PN:0:0:0:0:2800686.

'); //-->
Remove ads
'); //-->

Afterwards switch to the directory where you downloaded the package and install it:

su -
%yourrootpassword
rpm -ivh xvkbd-2.7a-2mdk.i586.rpm
exit

Debian Etch:

su -
%yourrootpassword%
apt-get install xvkbd
exit

Now change to your homedir:

cd ~

6.2 Scripts For Gnome

vi switcher1.sh

#! /bin/sh
sleep 2
xvkbd -text "/C/A/[Right]"
sleep 2 
vmware-toolbox --minimize &> /dev/null

vi switcher2.sh

#! /bin/sh
sleep 10
xvkbd -text "/C/A/[Left]"

Make the scripts executeable:

chmod +x switcher*

Add the scripts to the session startup programs:

 

 

Repeat these steps for "switcher2.sh"

6.3 Scripts For KDE

Note: If the panel taskbar is configured to show windows from all desktops, the VMware Toolbox will still be visible in the taskbar.

vi .kde/Autostart/switcher1.sh

#! /bin/sh
sleep 2
xvkbd -text "/C/[F2]"
sleep 2
vmware-toolbox --minimize &> /dev/null

vi .kde/Autostart/switcher2.sh

#! /bin/sh
sleep 10
xvkbd -text "/C/[F1]"

Make the scripts executeable:

chmod +x .kde/Autostart/switcher*

 

7 Links

Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge
 

Vmware 8.0安装Ubuntu14.04后没有图形界面的解决方法:VMware Tools is currently being installed on your system.

****************************************************************** ********************************...

解决Linux安装 VMware tools 工具的方法

Linux安装 VMware tools 工具的方法      VMware虚拟机中如何安装VMWare-Tools详解好处:可以支持图形界面,可以支持共享文件功能等 ...
  • sz_bdqn
  • sz_bdqn
  • 2015年07月06日 20:15
  • 20499

Vmware Tools for Linux 安装失败问题解决

几天来一直试着安装Vmware Tools for Linux  但是每次安装到中途都会遇到同样的问题 Unable to copy the source file ./installer/serv...

linux和windows下使用桌面和命令安装Vmware Tools

1.VMware Tools介绍: VMware Tools是VMware虚拟机中自带的一种增强工具,相当于VirtualBox中的增强功能(Sun VirtualBox Guest Addit...

Linux安装 VMware tools 工具的方法及启用共享文件的设置

准备: 笔记本或台式机 虚拟机 虚拟机安装Linux系统 方法/步骤: 1)安装VMware ,选择VM(虚拟机)-->install VMware Tools(安装VMware Tools...

在虚拟机VM中的linux安装vmware tools

  • jobsss
  • jobsss
  • 2012年05月09日 16:07
  • 760

Linux下安装VMware Tools

VMware Tools可以增强虚拟的性能,现在很多人都使用VMware来安装虚拟机,如果虚拟机是Windows的话,在安装Windows虚拟机工具时在VMware主菜单中点“安装虚拟机工具”子菜单,...

Redhat 和 Ubuntu linux安装VMware tools

使用vmware时,最棘手的事大概就是某些环境限制下虚拟操作系统不能得到IP了。这样跟主机之间以及外部都完全隔离,孤独的机器往往不能发挥什么作用。   这里是网上搜到的设置linux与windows...

Kali Linux 2.0安装VMware-tools

1.为虚拟机加载VMware-tools 安装过程如下: 在VMware-workstation菜单栏中单击虚拟机----》安装VMware-tools ...

Red Hat Linux虚拟机安装VMWare Tools

在VMware虚拟机中安装好了VMware Tools,才能实现主机与虚拟机之间的文件共享,同时可支持自由拖拽的功能,鼠标也可在虚拟机与主机之前自由移动(而不再用按ctrl+alT释放),而且还可以令...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:安装VMware tools on linux
举报原因:
原因补充:

(最多只允许输入30个字)