个人工具

“UbuntuHelp:VMware/Tools”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/VMware/Tools}} {{Languages|php5}} Make sure you install VMware Tools in any Ubuntu/Kubuntu/Xubuntu guest running on UbuntuHelp:VMware/Esx, [[...)
 
第22行: 第22行:
 
<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></code>
+
</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.
第31行: 第31行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo mount /dev/cdrom ~/Desktop/vmware-tools-distrib
 
sudo mount /dev/cdrom ~/Desktop/vmware-tools-distrib
</nowiki></code>
+
</nowiki></pre>
  
  
第39行: 第39行:
 
cd ~/Desktop/vmware-tools-distrib
 
cd ~/Desktop/vmware-tools-distrib
 
sudo ./vmware-install.pl
 
sudo ./vmware-install.pl
</nowiki></code>
+
</nowiki></pre>
  
 
During vmware-install.pl, choose the default answers to everything.
 
During vmware-install.pl, choose the default answers to everything.
第51行: 第51行:
 
echo "/usr/bin/vmware-toolbox" > ~/.kde/Autostart/vmware-toolbox.sh
 
echo "/usr/bin/vmware-toolbox" > ~/.kde/Autostart/vmware-toolbox.sh
 
chmod +x ~/.kde/Autostart/vmware-toolbox.sh
 
chmod +x ~/.kde/Autostart/vmware-toolbox.sh
</nowiki></code>
+
</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.
第59行: 第59行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Options "Protocol" "imps/2"
 
Options "Protocol" "imps/2"
</nowiki></code>
+
</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:
第65行: 第65行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Options "Protocol" "ExplorerPS/2"
 
Options "Protocol" "ExplorerPS/2"
</nowiki></code>
+
</nowiki></pre>
  
 
Restart X.
 
Restart X.
第76行: 第76行:
 
<pre><nowiki>
 
<pre><nowiki>
 
$ tar xzvf VMware-workstation-5.5.1-19175.tar.gz "*/windows.iso"
 
$ tar xzvf VMware-workstation-5.5.1-19175.tar.gz "*/windows.iso"
</nowiki></code>
+
</nowiki></pre>
  
 
point the VM's CD drive at a dummy file:
 
point the VM's CD drive at a dummy file:
第86行: 第86行:
 
ide1:0.fileName = "cd0.iso"
 
ide1:0.fileName = "cd0.iso"
 
ide1:0.deviceType = "cdrom-image"
 
ide1:0.deviceType = "cdrom-image"
</nowiki></code>
+
</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 ./vmware-distrib/lib/isoimages/windows.iso cd0.iso
 
ln -s ./vmware-distrib/lib/isoimages/windows.iso cd0.iso
</nowiki></code>
+
</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'.)
第113行: 第113行:
 
<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></code>
+
</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.
第124行: 第124行:
 
cd ~/Desktop/vmware-tools-distrib
 
cd ~/Desktop/vmware-tools-distrib
 
sudo ./vmware-install.pl
 
sudo ./vmware-install.pl
</nowiki></code>
+
</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.
第133行: 第133行:
 
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></code>
+
</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.
第146行: 第146行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Options "Protocol" "imps/2"
 
Options "Protocol" "imps/2"
</nowiki></code>
+
</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:
第152行: 第152行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Options "Protocol" "ExplorerPS/2"
 
Options "Protocol" "ExplorerPS/2"
</nowiki></code>
+
</nowiki></pre>
  
 
Restart X.
 
Restart X.
第164行: 第164行:
 
<pre><nowiki>
 
<pre><nowiki>
 
# aptitude install xserver-xorg-input-vmmouse
 
# aptitude install xserver-xorg-input-vmmouse
</nowiki></code>
+
</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]

2007年5月13日 (日) 12:56的版本


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.

Advantages of having VMware Tools installed on your Ubuntu/Kubuntu/Xubuntu guest

  • VMware Network acceleration
  • VMware Video acceleration
  • Host to Guest time synchronization
  • Seemless 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 (UbuntuHelp: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`

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

sudo mount /dev/cdrom ~/Desktop/vmware-tools-distrib


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.

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.

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:

Options "Protocol" "imps/2"

If you have more than five buttons (scroll wheel counts as three), then you might need the following line:

Options "Protocol" "ExplorerPS/2"

Restart X.

VMware-tools for windows (for running win in vmware on Ubuntu)

Download the latest "Archived Version" of VMware Workstation in ".tar.gz" format at http://www.vmware.com/download/ws/. You will need to register your name and address, but you do not need to own any VMware products. (*Download* for Linux, Register, agree to the EULA, "Compressed Tar Archive") - 95mb.

extract windows.iso from the .tar:

$ tar xzvf VMware-workstation-5.5.1-19175.tar.gz "*/windows.iso"

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 ./vmware-distrib/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:

Options "Protocol" "imps/2"

If you have more than five buttons (scroll wheel counts as three), then you might need the following line:

Options "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