特殊:Badtitle/NS100:VMware/Tools:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示2个用户的11个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/VMware/Tools}} | {{From|https://help.ubuntu.com/community/VMware/Tools}} | ||
{{Languages|UbuntuHelp:VMware/Tools}} | {{Languages|UbuntuHelp:VMware/Tools}} | ||
Make sure you install [[UbuntuHelp:VMware|VMware]] Tools in any Gobuntu/Ubuntu/Kubuntu/Xubuntu guest running on [[UbuntuHelp:VMware/Esx|VMware/Esx]], [[UbuntuHelp:VMware/Player|VMware/Player]], [[UbuntuHelp:VMware/Server|VMware/Server]] or [[UbuntuHelp:VMware/Workstation|VMware/Workstation]]. | |||
=== What are 'Tools'? === | |||
Make sure you install VMware Tools in any Ubuntu/Kubuntu/Xubuntu guest running on [[UbuntuHelp:VMware/Esx]], [[UbuntuHelp:VMware/Player]], [[UbuntuHelp:VMware/Server]] or [[UbuntuHelp:VMware/Workstation]]. | [[UbuntuHelp:VMware|VMware]]/Tools is software installed on the guest system for improving performance. This page first explains how to install tools on Ubuntu, so ubuntu being the guest and another (any) OS being the host. After that it is explained how to install tools on windows with ubuntu being the host (so windows as guest). Returning to installing tools on Ubuntu 6.10 (Ubuntu once again being the guest). | ||
=== Advantages of having VMware Tools installed on your Ubuntu/Kubuntu/Xubuntu guest === | === Advantages of having VMware Tools installed on your Ubuntu/Kubuntu/Xubuntu guest === | ||
* [[UbuntuHelp:VMware|VMware]] Network acceleration | |||
* VMware Network acceleration | * [[UbuntuHelp:VMware|VMware]] Video acceleration | ||
* VMware Video acceleration | |||
* Host to Guest time synchronization | * Host to Guest time synchronization | ||
* | * Seamless mouse movement between host and guest | ||
* Cut & Paste - Guest to Host and Guest to Guest (with VMware Toolbox) (possibly only on gnome) | * Cut & Paste - Guest to Host and Guest to Guest (with [[UbuntuHelp:VMware|VMware]] Toolbox) (possibly only on gnome) | ||
* Disk Shrink (with VMware Toolbox running at root) | * Disk Shrink (with [[UbuntuHelp:VMware|VMware]] Toolbox running at root) | ||
* Startup/Shutdown Scripts (with VMware Toolbox running at root) | * Startup/Shutdown Scripts (with [[UbuntuHelp:VMware|VMware]] Toolbox running at root) | ||
* HeartBeat ([[UbuntuHelp:VMware/Esx]] only ?) | * HeartBeat ([[UbuntuHelp:VMware/Esx|VMware/Esx]] only ?) | ||
=== Installing VMware tools on Ubuntu/Kubuntu/Xubuntu Guests === | === Installing VMware tools on Ubuntu/Kubuntu/Xubuntu Guests === | ||
Start up a terminal window and do the following to ensure that you have the required packages for building [[UbuntuHelp:VMware|VMware]] Tools or your kernel. | |||
Start up a terminal window and do the following to ensure that you have the required packages for building VMware Tools or your kernel. | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install build-essential linux-headers-`uname -r` | sudo apt-get install build-essential linux-headers-`uname -r` psmisc | ||
</nowiki></pre> | </nowiki></pre> | ||
NOTE: linux-headers-`uname -r` is not required on a default build as these headers already exist. They are listed here in case you have made kernel modifications. | |||
From the [[UbuntuHelp:VMware|VMware]] menu, choose <code><nowiki>VM->Install VMware Tools</nowiki></code>. You should see a mounted CD image show up on the desktop. In the File Browser that pops up, right-click the [[UbuntuHelp:VMware|VMware]]Tools*.tar.gz file and extract to the Desktop. | |||
If the cdrom was not automatically mounted, mount the cdrom (in your guest OS) by doing | |||
<pre><nowiki> | |||
# make a mount point if needed : | |||
sudo mkdir /media/cdrom | |||
# Mount the CD | |||
sudo mount /dev/cdrom /media/cdrom | |||
# Copy and extract VMWareTools | |||
sudo cp /media/cdrom/VMwareTools*.tar.gz ~/Desktop | |||
# You can extract with archive manager, right click on the archive and extract ... or | |||
tar xvf VMwareTools*.tar.gz | |||
# Install as below | |||
</nowiki></pre> | |||
Open a terminal window, and run the following commands. | Open a terminal window, and run the following commands. | ||
<pre><nowiki> | <pre><nowiki> | ||
cd ~/Desktop/vmware-tools-distrib | cd ~/Desktop/vmware-tools-distrib | ||
sudo ./vmware-install.pl | sudo ./vmware-install.pl | ||
</nowiki></pre> | </nowiki></pre> | ||
During vmware-install.pl, choose the default answers to everything (just hit the <enter> key). | |||
During vmware-install.pl, choose the default answers to everything. | You can configure the tools as root | ||
<pre><nowiki> | |||
In order for the synchronized clipboard to function as well as the host shared folders feature, you must have vmware-toolbox running. | sudo vmware-toolbox | ||
</nowiki></pre> | |||
Otherwise run them as a user (not root) | |||
<pre><nowiki> | |||
vmware-toolbox | |||
</nowiki></pre> | |||
* In order for the synchronized clipboard and mouse to function as well as the host shared folders feature, you must have vmware-toolbox running, although you can minimize the window. | |||
To have vmware tools auto start with your sessions, go to System->Preferences->Sessions->Startup Programs. Click Add, enter vmware-toolbox, Ok, Close. | |||
If you are running a Kubuntu guest OS. | If you are running a Kubuntu guest OS. | ||
<pre><nowiki> | <pre><nowiki> | ||
第52行: | 第59行: | ||
chmod +x ~/.kde/Autostart/vmware-toolbox.sh | chmod +x ~/.kde/Autostart/vmware-toolbox.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
In order to get the scroll wheel to work again after the above install, you will need to make a minor change to the xorg.conf file. | In order to get the scroll wheel to work again after the above install, you will need to make a minor change to the xorg.conf file. | ||
In the "Configured Mouse" section, change the following line as indicated: | In the "Configured Mouse" section, change the following line as indicated: | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "Protocol" "imps/2" | |||
</nowiki></pre> | </nowiki></pre> | ||
If you have more than five buttons (scroll wheel counts as three), then you might need the following line: | If you have more than five buttons (scroll wheel counts as three), then you might need the following line: | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "Protocol" "ExplorerPS/2" | |||
</nowiki></pre> | </nowiki></pre> | ||
Restart X. | Restart X. | ||
=== VMware-tools for windows (for running win in vmware on Ubuntu) === | === VMware-tools for windows (for running win in vmware on Ubuntu) === | ||
Download the .bundle file 'workstation for Linux' on http://www.vmware.com/download/ws/. | |||
Download the | Extract the content to a temp directory: | ||
<pre><nowiki> | |||
$ sudo /usr/lib/vmware/installer/vmware-installer --install-bundle VMware-Workstation-6.5.0-118166.i386.bundle --extract /tmp/vmware | |||
</nowiki></pre> | |||
or for x64 users: | |||
<pre><nowiki> | <pre><nowiki> | ||
$ | $ sudo /usr/lib/vmware/installer/vmware-installer --install-bundle VMware-Workstation-6.5.1-126130.x86_64.bundle --extract /tmp/vmware | ||
</nowiki></pre> | </nowiki></pre> | ||
(Takes about 580MB, filenames may vary (do not copy paste this code)) | |||
Point the VM's CD drive at a dummy file: | |||
<pre><nowiki> | <pre><nowiki> | ||
# MyVM.vmx | |||
... | ... | ||
ide1:0.present = "TRUE" | ide1:0.present = "TRUE" | ||
第86行: | 第88行: | ||
ide1:0.deviceType = "cdrom-image" | ide1:0.deviceType = "cdrom-image" | ||
</nowiki></pre> | </nowiki></pre> | ||
and link the dummy file to the real iso: | and link the dummy file to the real iso: | ||
<pre><nowiki> | <pre><nowiki> | ||
ln -s | ln -s /tmp/vmware/vmware-workstation/lib/isoimages/windows.iso cd0.iso | ||
</nowiki></pre> | </nowiki></pre> | ||
(If you use cd0.iso and a symlink, you can switch .iso files while the MV is running. you can do it without the symlink, but it is 'harder'.) | (If you use cd0.iso and a symlink, you can switch .iso files while the MV is running. you can do it without the symlink, but it is 'harder'.) | ||
Fire up the VM, (which will launch Windows), click into my computer, CD Rom, setup.exe - it should launch the basic setup wiz. defaults are good. Once it is done, it will want to reboot the VM. Do that, and when you get back into windows you should see the vmware-tools icon in the tray, and you should be able to move your mouse in and out of the VM without having to hot-key, and be able to set the display res to some nutty amount. | Fire up the VM, (which will launch Windows), click into my computer, CD Rom, setup.exe - it should launch the basic setup wiz. defaults are good. Once it is done, it will want to reboot the VM. Do that, and when you get back into windows you should see the vmware-tools icon in the tray, and you should be able to move your mouse in and out of the VM without having to hot-key, and be able to set the display res to some nutty amount. | ||
=== Workaround: Installing VMware Tools 5.5.2 on Ubuntu 6.10 === | === Workaround: Installing VMware Tools 5.5.2 on Ubuntu 6.10 === | ||
[[UbuntuHelp:VMware|VMware]] Workstation: 5.5.2 build-29772 | |||
VMware Workstation: 5.5.2 build-29772 | |||
Guest OS: Ubuntu-6.10.1-desktop-i386 | Guest OS: Ubuntu-6.10.1-desktop-i386 | ||
NOTE: If you are performing an upgrade to 6.10 it would be best to uninstall [[UbuntuHelp:VMware|VMware]] Tools prior to performing the upgrade due to the vm* binaries being built for the older kernel. After the upgrade is complete, [[UbuntuHelp:VMware|VMware]] Tools can be reinstalled. | |||
NOTE: If you are performing an upgrade to 6.10 it would be best to uninstall VMware Tools prior to performing the upgrade due to the vm* binaries being built for the older kernel. After the upgrade is complete, VMware Tools can be reinstalled. | The [[UbuntuHelp:VMware|VMware]] Tools installer (for 5.5.2) does not install drivers for Xorg 7.1, only up to 7.0 is supported. The method outlined below updates the installer to install the 7.0 vmmouse driver and leaves the vmware video driver that exists on a default 6.10 install in place. The existing 6.10 vmware_drv.so is 39332 bytes, 2006-09-11 19:55. | ||
Please also reference [[UbuntuHelp:VMware|VMware]] Knowledge Base Article 5739104, "Mouse Does Not Function Properly in Linux Guests That Use Xorg 7.1 or Higher". | |||
The VMware Tools installer (for 5.5.2) does not install drivers for Xorg 7.1, only up to 7.0 is supported. The method outlined below updates the installer to install the 7.0 vmmouse driver and leaves the vmware video driver that exists on a default 6.10 install in place. The existing 6.10 vmware_drv.so is 39332 bytes, 2006-09-11 19:55. | Start up a terminal window and do the following to ensure that you have the required packages for building [[UbuntuHelp:VMware|VMware]] Tools for the 6.10 kernel (2.6.17-10-generic). | ||
Please also reference VMware Knowledge Base Article 5739104, "Mouse Does Not Function Properly in Linux Guests That Use Xorg 7.1 or Higher". | |||
Start up a terminal window and do the following to ensure that you have the required packages for building VMware Tools for the 6.10 kernel (2.6.17-10-generic). | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install build-essential linux-headers-`uname -r` | sudo apt-get install build-essential linux-headers-`uname -r` | ||
</nowiki></pre> | </nowiki></pre> | ||
NOTE: linux-headers-`uname -r` is not required on a default build as these headers already exist. They are listed here in case you have made kernel modifications. | NOTE: linux-headers-`uname -r` is not required on a default build as these headers already exist. They are listed here in case you have made kernel modifications. | ||
From the [[UbuntuHelp:VMware|VMware]] WS menu, choose VM->Install [[UbuntuHelp:VMware|VMware]] Tools. You should see a mounted CD image show up on the desktop. | |||
From the VMware WS menu, choose VM->Install VMware Tools. You should see a mounted CD image show up on the desktop. | |||
In the File Browser that pops up, right-click the VMwareTools*.tar.gz file and click Extract To The Desktop is the default, click Extract. Close the File Browser.Back in the terminal window: | In the File Browser that pops up, right-click the VMwareTools*.tar.gz file and click Extract To The Desktop is the default, click Extract. Close the File Browser.Back in the terminal window: | ||
<pre><nowiki> | <pre><nowiki> | ||
cd ~/Desktop/vmware-tools-distrib | cd ~/Desktop/vmware-tools-distrib | ||
sudo ./vmware-install.pl | sudo ./vmware-install.pl | ||
</nowiki></pre> | </nowiki></pre> | ||
CAUTION: During vmware-install.pl, I chose the default answers to everything but at the end did not choose to launch vmware-config-tools.pl. This file is going to be patched in the next step. | CAUTION: During vmware-install.pl, I chose the default answers to everything but at the end did not choose to launch vmware-config-tools.pl. This file is going to be patched in the next step. | ||
Put the contents of the vmware-config-tools-5.5.2-patch-diff.txt file in your home directory. (Look over the changes for your peace of mind) | Put the contents of the vmware-config-tools-5.5.2-patch-diff.txt file in your home directory. (Look over the changes for your peace of mind) | ||
<pre><nowiki>wget http://mtnbike.org/vmware/vmware-config-tools-5.5.2-patch-diff.txt | <pre><nowiki> | ||
wget http://mtnbike.org/vmware/vmware-config-tools-5.5.2-patch-diff.txt | |||
sudo chmod u+w /usr/bin/vmware-config-tools.pl | sudo chmod u+w /usr/bin/vmware-config-tools.pl | ||
sudo patch /usr/bin/vmware-config-tools.pl vmware-config-tools-5.5.2-patch-diff.txt | sudo patch /usr/bin/vmware-config-tools.pl vmware-config-tools-5.5.2-patch-diff.txt | ||
sudo /usr/bin/vmware-config-tools.pl | sudo /usr/bin/vmware-config-tools.pl | ||
</nowiki></pre> | </nowiki></pre> | ||
In order for the synchronized clipboard to function as well as the host shared folders feature, you must have vmware-toolbox running. | In order for the synchronized clipboard to function as well as the host shared folders feature, you must have vmware-toolbox running. | ||
From the menu choose, System->Preferences->Sessions->Startup Programs | From the menu choose, System->Preferences->Sessions->Startup Programs | ||
Click Add, enter vmware-toolbox, Ok, Close. | Click Add, enter vmware-toolbox, Ok, Close. | ||
In order to get the scroll wheel to work again after the above install, you will need to make a minor change to the xorg.conf file. | In order to get the scroll wheel to work again after the above install, you will need to make a minor change to the xorg.conf file. | ||
In the "Configured Mouse" section, change the following line as indicated: | In the "Configured Mouse" section, change the following line as indicated: | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "Protocol" "imps/2" | |||
</nowiki></pre> | </nowiki></pre> | ||
If you have more than five buttons (scroll wheel counts as three), then you might need the following line: | If you have more than five buttons (scroll wheel counts as three), then you might need the following line: | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "Protocol" "ExplorerPS/2" | |||
</nowiki></pre> | </nowiki></pre> | ||
Restart X. | Restart X. | ||
=== Additional Resources === | === Additional Resources === | ||
* [http://www.vmware.com/support/ws4/doc/new_guest_tools_ws.html#1008207 VMware Tools for Linux Guests] | * [http://www.vmware.com/support/ws4/doc/new_guest_tools_ws.html#1008207 VMware Tools for Linux Guests] | ||
* [http://kb.vmware.com/vmtnkb/search.do?cmd=displayKC&docType=kc&externalId=2308&sliceId=SAL_Public Repeated Keystrokes Occur in Terminal Window on Linux Guest] | * [http://kb.vmware.com/vmtnkb/search.do?cmd=displayKC&docType=kc&externalId=2308&sliceId=SAL_Public Repeated Keystrokes Occur in Terminal Window on Linux Guest] | ||
=== xorg 7.2 === | === xorg 7.2 === | ||
You may need to | You may need to | ||
<pre><nowiki> | <pre><nowiki> | ||
# aptitude install xserver-xorg-input-vmmouse | |||
</nowiki></pre> | </nowiki></pre> | ||
and | and | ||
[http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=5739104&sliceId=2&docTypeID=DT_KB_1_1&dialogID=2226328&stateId=0%200%202224503 Debian 4.0 using 7.1 and Ubuntu 7.04 using Xorg 7.2 may need vmmouse] | [http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=5739104&sliceId=2&docTypeID=DT_KB_1_1&dialogID=2226328&stateId=0%200%202224503 Debian 4.0 using 7.1 and Ubuntu 7.04 using Xorg 7.2 may need vmmouse] | ||
[http://kb.vmware.com/vmtnkb/dynamickc.do?externalId=5739104&sliceId=SAL_Public&command=show&forward=nonthreadedKC&kcId=5739104 Mouse Does Not Function Properly in Linux Guests That Use Xorg 7.1 or Higher] | [http://kb.vmware.com/vmtnkb/dynamickc.do?externalId=5739104&sliceId=SAL_Public&command=show&forward=nonthreadedKC&kcId=5739104 Mouse Does Not Function Properly in Linux Guests That Use Xorg 7.1 or Higher] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月20日 (四) 00:46的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/VMware/Tools }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/af | • {{#if: UbuntuHelp:VMware/Tools|Afrikaans| [[::VMware/Tools/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ar | • {{#if: UbuntuHelp:VMware/Tools|العربية| [[::VMware/Tools/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/az | • {{#if: UbuntuHelp:VMware/Tools|azərbaycanca| [[::VMware/Tools/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/bcc | • {{#if: UbuntuHelp:VMware/Tools|جهلسری بلوچی| [[::VMware/Tools/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/bg | • {{#if: UbuntuHelp:VMware/Tools|български| [[::VMware/Tools/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/br | • {{#if: UbuntuHelp:VMware/Tools|brezhoneg| [[::VMware/Tools/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ca | • {{#if: UbuntuHelp:VMware/Tools|català| [[::VMware/Tools/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/cs | • {{#if: UbuntuHelp:VMware/Tools|čeština| [[::VMware/Tools/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/de | • {{#if: UbuntuHelp:VMware/Tools|Deutsch| [[::VMware/Tools/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/el | • {{#if: UbuntuHelp:VMware/Tools|Ελληνικά| [[::VMware/Tools/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/es | • {{#if: UbuntuHelp:VMware/Tools|español| [[::VMware/Tools/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/fa | • {{#if: UbuntuHelp:VMware/Tools|فارسی| [[::VMware/Tools/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/fi | • {{#if: UbuntuHelp:VMware/Tools|suomi| [[::VMware/Tools/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/fr | • {{#if: UbuntuHelp:VMware/Tools|français| [[::VMware/Tools/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/gu | • {{#if: UbuntuHelp:VMware/Tools|ગુજરાતી| [[::VMware/Tools/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/he | • {{#if: UbuntuHelp:VMware/Tools|עברית| [[::VMware/Tools/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/hu | • {{#if: UbuntuHelp:VMware/Tools|magyar| [[::VMware/Tools/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/id | • {{#if: UbuntuHelp:VMware/Tools|Bahasa Indonesia| [[::VMware/Tools/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/it | • {{#if: UbuntuHelp:VMware/Tools|italiano| [[::VMware/Tools/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ja | • {{#if: UbuntuHelp:VMware/Tools|日本語| [[::VMware/Tools/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ko | • {{#if: UbuntuHelp:VMware/Tools|한국어| [[::VMware/Tools/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ksh | • {{#if: UbuntuHelp:VMware/Tools|Ripoarisch| [[::VMware/Tools/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/mr | • {{#if: UbuntuHelp:VMware/Tools|मराठी| [[::VMware/Tools/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ms | • {{#if: UbuntuHelp:VMware/Tools|Bahasa Melayu| [[::VMware/Tools/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/nl | • {{#if: UbuntuHelp:VMware/Tools|Nederlands| [[::VMware/Tools/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/no | • {{#if: UbuntuHelp:VMware/Tools|norsk| [[::VMware/Tools/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/oc | • {{#if: UbuntuHelp:VMware/Tools|occitan| [[::VMware/Tools/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/pl | • {{#if: UbuntuHelp:VMware/Tools|polski| [[::VMware/Tools/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/pt | • {{#if: UbuntuHelp:VMware/Tools|português| [[::VMware/Tools/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ro | • {{#if: UbuntuHelp:VMware/Tools|română| [[::VMware/Tools/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/ru | • {{#if: UbuntuHelp:VMware/Tools|русский| [[::VMware/Tools/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/si | • {{#if: UbuntuHelp:VMware/Tools|සිංහල| [[::VMware/Tools/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/sq | • {{#if: UbuntuHelp:VMware/Tools|shqip| [[::VMware/Tools/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/sr | • {{#if: UbuntuHelp:VMware/Tools|српски / srpski| [[::VMware/Tools/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/sv | • {{#if: UbuntuHelp:VMware/Tools|svenska| [[::VMware/Tools/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/th | • {{#if: UbuntuHelp:VMware/Tools|ไทย| [[::VMware/Tools/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/tr | • {{#if: UbuntuHelp:VMware/Tools|Türkçe| [[::VMware/Tools/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/vi | • {{#if: UbuntuHelp:VMware/Tools|Tiếng Việt| [[::VMware/Tools/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/yue | • {{#if: UbuntuHelp:VMware/Tools|粵語| [[::VMware/Tools/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/zh | • {{#if: UbuntuHelp:VMware/Tools|中文| [[::VMware/Tools/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/zh-hans | • {{#if: UbuntuHelp:VMware/Tools|中文(简体)| [[::VMware/Tools/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VMware/Tools | UbuntuHelp:VMware/Tools | {{#if: | :}}VMware/Tools}}/zh-hant | • {{#if: UbuntuHelp:VMware/Tools|中文(繁體)| [[::VMware/Tools/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:VMware/Tools|:VMware/Tools|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :VMware/Tools/zh | | {{#ifexist: VMware/Tools/zh | | {{#ifeq: {{#titleparts:VMware/Tools|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:VMware/Tools|1|-1|}} | zh | | }}
Make sure you install VMware Tools in any Gobuntu/Ubuntu/Kubuntu/Xubuntu guest running on VMware/Esx, VMware/Player, VMware/Server or VMware/Workstation.
What are 'Tools'?
VMware/Tools is software installed on the guest system for improving performance. This page first explains how to install tools on Ubuntu, so ubuntu being the guest and another (any) OS being the host. After that it is explained how to install tools on windows with ubuntu being the host (so windows as guest). Returning to installing tools on Ubuntu 6.10 (Ubuntu once again being the guest).
Advantages of having VMware Tools installed on your Ubuntu/Kubuntu/Xubuntu guest
- VMware Network acceleration
- VMware Video acceleration
- Host to Guest time synchronization
- Seamless mouse movement between host and guest
- Cut & Paste - Guest to Host and Guest to Guest (with VMware Toolbox) (possibly only on gnome)
- Disk Shrink (with VMware Toolbox running at root)
- Startup/Shutdown Scripts (with VMware Toolbox running at root)
- HeartBeat (VMware/Esx only ?)
Installing VMware tools on Ubuntu/Kubuntu/Xubuntu Guests
Start up a terminal window and do the following to ensure that you have the required packages for building VMware Tools or your kernel.
sudo apt-get install build-essential linux-headers-`uname -r` psmisc
NOTE: linux-headers-`uname -r` is not required on a default build as these headers already exist. They are listed here in case you have made kernel modifications.
From the VMware menu, choose VM->Install VMware Tools
. You should see a mounted CD image show up on the desktop. In the File Browser that pops up, right-click the VMwareTools*.tar.gz file and extract to the Desktop.
If the cdrom was not automatically mounted, mount the cdrom (in your guest OS) by doing
# make a mount point if needed : sudo mkdir /media/cdrom # Mount the CD sudo mount /dev/cdrom /media/cdrom # Copy and extract VMWareTools sudo cp /media/cdrom/VMwareTools*.tar.gz ~/Desktop # You can extract with archive manager, right click on the archive and extract ... or tar xvf VMwareTools*.tar.gz # Install as below
Open a terminal window, and run the following commands.
cd ~/Desktop/vmware-tools-distrib sudo ./vmware-install.pl
During vmware-install.pl, choose the default answers to everything (just hit the <enter> key). You can configure the tools as root
sudo vmware-toolbox
Otherwise run them as a user (not root)
vmware-toolbox
- In order for the synchronized clipboard and mouse to function as well as the host shared folders feature, you must have vmware-toolbox running, although you can minimize the window.
To have vmware tools auto start with your sessions, go to System->Preferences->Sessions->Startup Programs. Click Add, enter vmware-toolbox, Ok, Close. If you are running a Kubuntu guest OS.
echo "/usr/bin/vmware-toolbox" > ~/.kde/Autostart/vmware-toolbox.sh chmod +x ~/.kde/Autostart/vmware-toolbox.sh
In order to get the scroll wheel to work again after the above install, you will need to make a minor change to the xorg.conf file. In the "Configured Mouse" section, change the following line as indicated:
Option "Protocol" "imps/2"
If you have more than five buttons (scroll wheel counts as three), then you might need the following line:
Option "Protocol" "ExplorerPS/2"
Restart X.
VMware-tools for windows (for running win in vmware on Ubuntu)
Download the .bundle file 'workstation for Linux' on http://www.vmware.com/download/ws/. Extract the content to a temp directory:
$ sudo /usr/lib/vmware/installer/vmware-installer --install-bundle VMware-Workstation-6.5.0-118166.i386.bundle --extract /tmp/vmware
or for x64 users:
$ sudo /usr/lib/vmware/installer/vmware-installer --install-bundle VMware-Workstation-6.5.1-126130.x86_64.bundle --extract /tmp/vmware
(Takes about 580MB, filenames may vary (do not copy paste this code)) Point the VM's CD drive at a dummy file:
# MyVM.vmx ... ide1:0.present = "TRUE" ide1:0.fileName = "cd0.iso" ide1:0.deviceType = "cdrom-image"
and link the dummy file to the real iso:
ln -s /tmp/vmware/vmware-workstation/lib/isoimages/windows.iso cd0.iso
(If you use cd0.iso and a symlink, you can switch .iso files while the MV is running. you can do it without the symlink, but it is 'harder'.) Fire up the VM, (which will launch Windows), click into my computer, CD Rom, setup.exe - it should launch the basic setup wiz. defaults are good. Once it is done, it will want to reboot the VM. Do that, and when you get back into windows you should see the vmware-tools icon in the tray, and you should be able to move your mouse in and out of the VM without having to hot-key, and be able to set the display res to some nutty amount.
Workaround: Installing VMware Tools 5.5.2 on Ubuntu 6.10
VMware Workstation: 5.5.2 build-29772 Guest OS: Ubuntu-6.10.1-desktop-i386 NOTE: If you are performing an upgrade to 6.10 it would be best to uninstall VMware Tools prior to performing the upgrade due to the vm* binaries being built for the older kernel. After the upgrade is complete, VMware Tools can be reinstalled. The VMware Tools installer (for 5.5.2) does not install drivers for Xorg 7.1, only up to 7.0 is supported. The method outlined below updates the installer to install the 7.0 vmmouse driver and leaves the vmware video driver that exists on a default 6.10 install in place. The existing 6.10 vmware_drv.so is 39332 bytes, 2006-09-11 19:55. Please also reference VMware Knowledge Base Article 5739104, "Mouse Does Not Function Properly in Linux Guests That Use Xorg 7.1 or Higher". Start up a terminal window and do the following to ensure that you have the required packages for building VMware Tools for the 6.10 kernel (2.6.17-10-generic).
sudo apt-get install build-essential linux-headers-`uname -r`
NOTE: linux-headers-`uname -r` is not required on a default build as these headers already exist. They are listed here in case you have made kernel modifications. From the VMware WS menu, choose VM->Install VMware Tools. You should see a mounted CD image show up on the desktop. In the File Browser that pops up, right-click the VMwareTools*.tar.gz file and click Extract To The Desktop is the default, click Extract. Close the File Browser.Back in the terminal window:
cd ~/Desktop/vmware-tools-distrib sudo ./vmware-install.pl
CAUTION: During vmware-install.pl, I chose the default answers to everything but at the end did not choose to launch vmware-config-tools.pl. This file is going to be patched in the next step. Put the contents of the vmware-config-tools-5.5.2-patch-diff.txt file in your home directory. (Look over the changes for your peace of mind)
wget http://mtnbike.org/vmware/vmware-config-tools-5.5.2-patch-diff.txt sudo chmod u+w /usr/bin/vmware-config-tools.pl sudo patch /usr/bin/vmware-config-tools.pl vmware-config-tools-5.5.2-patch-diff.txt sudo /usr/bin/vmware-config-tools.pl
In order for the synchronized clipboard to function as well as the host shared folders feature, you must have vmware-toolbox running. From the menu choose, System->Preferences->Sessions->Startup Programs Click Add, enter vmware-toolbox, Ok, Close. In order to get the scroll wheel to work again after the above install, you will need to make a minor change to the xorg.conf file. In the "Configured Mouse" section, change the following line as indicated:
Option "Protocol" "imps/2"
If you have more than five buttons (scroll wheel counts as three), then you might need the following line:
Option "Protocol" "ExplorerPS/2"
Restart X.
Additional Resources
xorg 7.2
You may need to
# aptitude install xserver-xorg-input-vmmouse
and Debian 4.0 using 7.1 and Ubuntu 7.04 using Xorg 7.2 may need vmmouse Mouse Does Not Function Properly in Linux Guests That Use Xorg 7.1 or Higher