Vmware tools

How to install VMware Tools

Updated: December 27, 2008

In this article, I will teach you how to install VMware Tools in your virtual machines, so that you can increase the performance of your guest operating systems and use advanced features that VMware products offer.

Unfortunately, it turns out that this seemingly trivial procedure is not as simple as it sounds and has caused quite a bit of pain for many users. Having received a few emails from troubled readers, I decided to write this tutorial.

This article applies to VMware Server and Workstation products. The choice of the host is not important. We'll demonstrate the installation of the VMware Tools both for Linux and Windows guests.

In the next article, we'll talk about VirtualBox and Guest Addons.For much more information about virtualization, I most warmly recommend you read my entire Virtualization section. Let's rock.

Install VMware Tools for Windows guest

This means you have already successfully installed and configured VMware Server or VMware Workstation. This also means you have successfully installed a Windows guest operating system. Now, it's time to enhance it.It's very simple. In the main menu of the VMware (Server) Console, click VM > Install VMware Tools.

This will popup an installation wizard inside the guest. This is identical to any other Windows installation. Click Install, follow the menu and that's it. After the installation is complete, reboot.

After the reboot, check the system tray. It should have a VMware icon in it, signifying that the VMware Tools are running.Bob's your uncle.

Install VMware Tools for Linux guest

The below guide is taken from my article Installing Linux Mint - Full tutorial. The procedure is documented in absolute detail on pages 3 and 4 of the tutorial. It covers not only the installation of the tools, it also explains what you need BEFORE you can install the Tools, because some compilation is involved (entirely automatically) and what you can do AFTER the installation, namely add the VMware Tools to the startup of your session, so they start when you login.Now, please note that although the functionality here is demonstrated using Linux Mint, it is perfectly valid for all distributions.

Install VMware Tools

In the File Menu of the VMware Server, choose VM > Install VMware Tools, OK the warning message. This will mount a virtual CD-ROM drive containing the VMware Tools binaries.

The virtual CD-ROM contains two files - one with the extension .rpm and the other one with .tar.gz. The .rpm stands for RedHat Package Manager and is suitable for RedHat-based distributions. Since Linux Mint is Debian-based, this type of file is not suitable for us (instantly). Nevertheless, even if it were, we want to use the archive (.tar.gz.).

First, we need to extract it. This can be done via command line, as I have demonstrated in my Highly useful Linux commands & configurations article, but we'll do it using the GUI.

Right-click on the file > Extract-To...

Choose a destination.

After the archive has been extracted, we need to actually install the Tools. This must be done using the command line. First, we need to open a Terminal. The shortcut to Terminal can be easily found in the Menu, under System.

Once we hit the command line, we need to navigate to the directory containing the VMware Tools files. In the relevant directory, we need to locally execute the installation script (wizard). This can be done using the following command.

sudo ./vmware-install.pl

See below in the image; notice the geeky fortune.

The script is very simple and friendly. It asks questions, with default answers already selected. You will merely need to hit Enter several times - although you should read each step carefully.

After several steps, you'll hit a snag. But don't worry, I led you there deliberately. The purpose of this step is to show you that even when your installation supposedly fails, the workaround is simple and fast.

The reason you see the error below is because the default Linux Mint installation, like most Linux distributions, does not come with all the packages needed for compilation of sources. We will install the missing packages and then repeat the installation of VMware Tools.

If you read carefully, you'll notice that the installer even tells you which packages are missing - gcc, binutils, make, and kernel sources - and where to find them, on the installation CD. This means that even if you don't have a working Internet connection, you'll be able to obtain them.

This is extremely important because in a real life situation, the missing modules might be the network adapters, for example. Luckily, you would have the sources on the CDs that came with your hardware. But your compilation would fail, for the same reason the installation of VMware Tools failed. Without a working Internet connection, you would not be able to find the sources using the Synaptic Package Manager. If they were not included on the CD, you would have been stuck.

The missing tools can be found and installed using either the command line or the GUI. I'll show you both ways.

Install packages necessary for compilation

First, we will launch Synaptic (System > Package Manager).

Next, we will search for the missing packages and mark them for installation. After you find the right packages, right-click > Mark for installation.

After all the packages are installed successfully, start the installation of VMware Tools again.This time, you should get no error messages and it should work.

You can simply restart the X session (Ctrl + Alt + Backspace) and the network service (sudo /etc/init.d/networking restart) for the relevant changes to take effect. Or if you feel uncomfortable, you can simply reboot the machine.

It is important to remember that the VMware Tools offer you to change the resolution. This is what we aimed for, among other things.Indeed, after you restart, you should enjoy the normal-sized desktop. Don't mind the lack of the bottom panel, I took the screenshot while the desktop was loading.

Now, we could have also installed all of the missing packages (gcc, binutils, make, kernel sources) with one simple command in the Terminal:

sudo apt-get install build-essential

See in the image below:

This comes to show that the command line is often simpler and faster - and should not be feared!

Setup VMware Tools to start with your session

Lastly, you might want to setup the VMware Toolbox. This toolbox allows you to synchronize time, the clipboard and the mouse movement between the host and the guest. It will not run by default. You can manually invoke it - or add it to auto-start with the session.Manually, just type in Terminal:


Alternatively, add the VMware Toolbox to your session. Click on Menu > Preferences > Sessions.

Under Startup Programs tab, you can see all the programs currently listed and enabled for all sessions. This is what we need. You can also configure your Current Session and general Session Options, but that's another subject.

Click Add to create a new Startup Program.

Now, give the new entry a Name (e.g. VMware Toolbox), the Command (path to command) and an optional Comment, which can help you (or others) understand what the program does.

The path to VMware Toolbox is /usr/bin/vmware-toolbox - unless you specified a different path during the installation. If you're unsure, you can always look for the vmware-toolbox binary in several ways:

First, start typing vmware in the Terminal and tap the Tab key twice. This will suggest all possible commands starting with vmware, located in your PATH. The path is a list of all directories where the system expects to find programs.

Once you've found the command you like (vmware-toolbox), you can use the which command to see where it's installed.

which vmware-toolbox

You can also use the find and locate commands to look for vmware-toolbox.

cd / find . -name vmware-toolbox

For locate:

sudo updatedb <-- this will update the database locate vmware-toolbox

Once satisfied, type in the path to the vmware-toolbox binary (executable).

Now, once you restart the machine or manually run the Toolbox, you will see the VMware Tools Properties window come up, with all the relevant options that can be setup. In order to enjoy the extras, you must keep the VMware Toolbox running (most likely minimized).

Scripts and Shrink require root permissions.


Installing VMware Tools is a trivial task on Windows. On Linux, it takes quite a bit of work. But if you're familiar with all the steps you need to take, it takes only about 5 minutes.

Linux-wise, this tutorial also teaches you the art of fiddling with archives, running command-line scripts, installing build-essential packages, compiling, and configuring the startup sessions. All these are valuable lessons useful in everyday computing.

I hope you've enjoyed this tutorial.



How To Install VMware Tools

VMware tools are not required to be installed in any guest operating system that has been virtualized by VMware. However, 99% of all VMware users do install vmware tools. Let me tell you why.

VMware tools provide the following:

  • Improved video performance
  • Mouse synchronization with the host operating system so that you don‘t have to keep releasing your mouse from the guest to go back to the host
  • Improved mouse performance
  • Copy and paste between the host and guest

VMware tools is approximately a 6Mb application (when installed, not on disk) that is installed in the GUEST OS directly. Neither the VMware console nor the host OS are required to participate in the installation.

Installing the VMware tools in a guest OS is a little different for the different OSs you might run. For example, it can be more complex in Linux than in Windows. Installing these tools in any of the current Windows OSs is very easy. In this article, I will show you how.

Do I Have VMware Tools Installed?

The easiest way to tell if the VMware tools are installed on a virtual guest is to see how your mouse reacts when you move it over the VMware console for that guest. If the mouse inside the guest doesn‘t sync and react with your mouse then the tools, most likely, aren‘t installed. At this point, to use the mouse in that console, you would have to click on the screen of the console and the guest mouse would sync with your mouse. Then, to get back to your host operating system, you would have to hold down Control, then press Alt. Again, if you are having to do this, the tools are not installed.

Another way to see if they are installed is to go up to the VM menu and see if you have the option to Install VMware Tools, like this:

If it is possible to install your tools then they aren‘t installed yet.

How do I Install VMware Tools?

The easiest way to install the tools is to go to the same menu (VM), shown above, and click Install VMware Tools.

What this really does is mount an ISO file as a CD and run the install program on that virtual CD. These ISO files (the tools) are located in

C:\Program Files\VMware\VMware Server

For Windows, they are called windows.iso. Here you see the Windows tools and tools available for other OSs:

You could just mount this ISO file as a CD yourself, manually, and install the tools but let‘s take the easy way.

The Guest operating system must be running to install the tools. I also suggest that you are logged in. After you click Install VMware Tools on the VM menu, you will see this dialog box.

Click Install

In the Guest OS, you will see the start of the installation, like this:

Click Next

Now you can select the type of installation. Each option is pretty self expanatory. I suggest the custom install so you can see what you are really installing.

Click Next. If you chose custom, you will see that you are installing the VMware Toolbox, device drivers, and shared folders. All of these are helpful so click Next.

Click Install and the install will begin.

When the install is done, you will see this screen.

Click Finish.

You will immediately notice that your mouse is synchronized if you move the mouse off of the console and it stays with you. The improved mouse functionality has taken effect but you must still reboot.

Click Yes

After Installation

After installation, you can see that you mouse is synchronized. You should see some improved mouse and video performance. This will make using VMware much less painful.

After the reboot and after you login, you‘ll see the VMware Tools icon in the system tray, like this:

You‘ll also see the VMware Tools as an installed program in Control Panel/Add & Remove Programs.


In summary, anyone using VMware should install the VMware Tools, no matter what guest operating system they are using. These tools will make using VMware much easier and less frustrating. After you install the tools and use them for a while, if you go back to a machine that does not have them, you will immediately notice.

Got a question? Post it on our VMware Forums!


Installing VMware Tools on Linux

When creating guest operating systems in your VMware Workstation setup, it’s a good idea to make sure that VMware Tools are installed. To be clear, VMware tools is a software package that installs on the guest OS, not the host. VMware tools does many helpful things. One of the nicest things it does is to provide a seamless mouse experience between the host and guest operating system. What we mean by this is as you move your mouse between your host and then into the guest OS, you may experience times when the mouse appears to freeze inside VMware and you essentially lose your mouse so to speak. VMware tools prevents mouse lock by synchronizing mouse input between the Host and Guest OS. In addition to this nice feature, VMware tools improves video performance in the guest OS, enables file sharing between guest and host, provides Unity mode, as well as Guest OS shutdown and restart options. Let’s install VMware tools on our Ubuntu Desktop now.

Select VM – Install VMware Tools

Extract VMware Tools to the Ubuntu Desktop

You will see that once you selected Install VMware Tools, there will now be a CD mounted within Ubuntu.  In the screenshot, you can see this with a ‘DVD’ icon on it. This holds the VMware tools distribution. Right click the VMwareTools.x.x.x-xxxx.tar.gz and extract the contents to the Ubuntu desktop.

Run sudo ./vmware-install.pl -d at the terminal

Within the distribution is a Perl script which will install VMware tools for you when you run it.  Here are the contents of that file.



dir=`dirname $0`


echo "VMware Tools installation start `date`" >> ${LOGFILE}

${dir}/vmware-install.real.pl "[email protected]" 2>&1 | tee -a ${LOGFILE}

echo "VMware Tools installation end `date`" >> ${LOGFILE}

note: The -d switch instructs the command to run and accept all defaults as it progresses. This should be fine.

Reboot Ubuntu once the prior step is complete.

In order to complete the installation of VMware tools in Ubuntu Linux, we need to reboot the virtual machine. Do this at the terminal by simply typing sudo reboot.

Confirm VMware Tools is running at the terminal

Once the virtual machine reboots, go back to the terminal so we can check the status of VMware tools.  By typing service vmware-tools status we can see some output that confirms it is active and running on our machine.

How To Use The Terminal To Install and Uninstall VMware Tools

If you prefer to handle things in Linux entirely from the command line, this is easy to do as well. Since we have VMware tools already installed, we will need to uninstall first. This can be easily done with the command sudo vmware-uninstall-tools.pl.  In the screenshot, we can see the message Uninstalling the tar installation of VMware Tools.  Stopping services for VMware Tools, Stopping VMware Tools services in the virtual machine, Stopping Thinprint services in the virtual machine, etc…

After this, be sure to reboot the guest via sudo reboot before continuing. Now we are ready to install VMware tools on Ubuntu using the terminal. Simply type sudo apt-get install open-vm-tools to complete the process. Once this is done we can confirm the service is running with service open-vm-tools status.  We see the service is loaded, enabled, active, and running.

Installing VMware Tools on Linux Summary

When we first created a virtual machine with VMware Workstation, we chose the easy install option. When this is selected, if the guest OS is Windows, then VMware tools get installed automatically for you. In the case of Linux, we need to install VMware tools manually. In this tutorial, we did just that on a fresh installation of Ubuntu Desktop as a virtual machine in VMware Workstation. It is a best practice to have VMware tools installed on the guest due to the many benefits it provides such as preventing mouse lock, improving video performance, enabling file sharing between host and guest, unity mode, and many others. Have fun with your Ubuntu VM!



Установка VMware Tools на Debian, Ubuntu и CentOS

Напомним, что полноценная работа любой гостевой системы на гипервизоре VMWare ESXi крайне затруднительна без установки специального набора приложения и драйверов, называемый VMware Tools. Напомним зачем, собственно, нужны VMware Tools. Это:

  • Возможность корректного выключения/перезагрузки гостевой ОС (Windows,Linux, FreeBSD или Solaris ) из интерфейса клиента VMWare
  • Отправка сигналов heartbeat-а на сервер VSphere
  • Управление курсором и разрешением экрана при работе из консоли в системах Windows
  • Синхронизация времени между гипервизором и гостевой ОС
  • Включают наборы драйверов для SVGA , сетевого драйвер vmxnet, драйвера BusLogic SCSI, драйвера для мыши
  • Возможность copy/past файлов и передача буфера обмена между гостевой и хостовой ОС
  • Передача информации (такой как текущий ip адрес, тип гостевой ОС и т.д)
  • и многое другое

И если установка VMware Tools в ОС Windows крайне проста, то на серверах с Linux, имеющих только голый CLI у начинающих администраторов она может вызвать затруднения. В этой статье мы познакомимся с процедурой установки VMware Tools на популярных ОС семейства Linux.

Монтируем диск с VMware Tools

На этом этапе, полностью одинаковым для любой ОС, мы должны подключить виртуальный диск с дистрибутивом VM Tools в гостевую ОС.

В VMware Workstation идем в меню VM > Install VMware Tools…

В VMware vSphere Hypervisor (ESXi) нажмите VM > Guest > Install/Upgrade VMware Tools

Установка VMware Tools в Debian

Зайдите в систему с правами root. Перед началом установки рекомендуется произвести полное обновление системы и перезагрузить сервер.

apt-get update && apt-get dist-upgrade shutdown -r now

Установим пакет Linux Header с помощью команды:

apt-get update && apt-get install build-essential linux-headers-$(uname -r) libglib2.0-0

Монтируем диск с VMware Tools и распаковываем файлы:

mount /dev/cdrom /mnt tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/

Запускаем установку VMTools командой:

perl /tmp/vmware-tools-distrib/vmware-install.pl

В процессе установки на все вопросы оставляем стандартные значения нажатием Enter. После окончания установки вновь перезагрузите сервер.

shutdown -r now

Установка VMware Tools в Ubuntu

Заходим в систему с пользователем, имеющим привилегии sudo. Здесь также начнем с обновления всех компонентов системы и перезагрузки:

sudo apt-get update && sudo apt-get dist-upgrade sudo shutdown -r now

Устанавливаем Linux Header командой

sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)

Монтируем диск с VMTools и распаковываем архив

sudo mount /dev/cdrom /mnt sudo tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/

Установку VMware Tools запускаем командой:

sudo perl /tmp/vmware-tools-distrib/vmware-install.pl

Оставим все значения по0умолчанию, нажимая в процессе установки Enter. После установки vmTools перезагрузите систему:

sudo shutdown -r now

Установка VMware Tools на CentOS

Заходим в систему с правами root и запускаем (крайне рекомендуется) полное обновление пакетов системы, после которого выполняем перезагрузку:

yum update shutdown -r now

Устанавливаем компилятор Linux Header:

yum install gcc perl

Монтируем диск с VMware Tools и распаковываем файлы:

mount /dev/cdrom /mnt tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/

Установку VMware Tools выполняем командой:

perl /tmp/vmware-tools-distrib/vmware-install.pl

Соглашаемся со всеми параметрами и перезагружаем систему:

shutdown -r now

Как видите установка VMTools в ОС семейства Linux достаточно проста и удобна.


Установка vmware tools для debian 8 в виртуальной машине [мануал] / Хабрахабр

С полноценной установкой debian в VMWare у меня была постоянная морока, т.к. никогда у меня без напильника до конца нормально не устанавливались vmware tools. Может у меня руки не те, спорить не буду — с линуксом я всё же не на ты. Недавно вышла новая версия debian и, на второй день после официального релиза, я принял волевое решение перевести свои виртуалки, организующие серверы FTP/SFTP, с WindowsXP на линукс. Тут как раз подоспела новая версия VMWare 11, новая версия тулзов, debian 8 testing уже давно народом использовалась и я решил что уже всё должно быть гладко и мне надо будет поднапрячься и только разобраться с настройками proftpd. После установки и настройки debian 8 я решил установить vmware tools и завершить, таким образом, начальную фазу — подготовку базовой машины. И что вы думаете? VMware tools встали кривовато… Этот вопиющий факт не оставил меня равнодушным.Ну сколько уже можно? Например, Gnome3 на debian 7 у меня запускался только в альтернативной режиме и никак не получалось нормально установить драйвера для видео и/или задействовать поддержку 3D. Я помню некоторое время потратил на поиск решения и опробывания предложений по самостоятельной сборке, но успеха мне это не принесло и я забросил это дело, тем более работе оно не мешало. Но оставалось чувство недовыполненности работы.

И тут, опять что-то не то. GUI заработал изначально нормально. Gnome3 после настройки мне даже очень понравился (настройка через gnome-tweak-tool + допрасширения: Lock keys, Remove dropdown arrows). Тулсы ставятся почти нормально. Но в конечном счёте мы не получаем поддержки Shared Folders. Это печально, т.к. такой механизм удобен: подключаем папки в настройках виртуалки, они автоматом монтируются в /mnt/hgfs/. И не надо заморачиваться с расшариванием папок по сети в хостовой машине. Но после установки тулзов мы получаем неработающий модуль vmhgfs. В рунете я решения не нашел, но помню нашёл как решить проблему на каком-то англоязычном форуме. Это всё действо происходило 26-28 апреля. Меня удивило когда вчера ко мне обратился знакомый и посетовал, дескать не могу настроить вмваровскую сеть в виртуалке с новым дебианом. И я решил написать мануал другу, оформив его в виде статьи на хабре — вдруг ещё кому-то пригодится!

Итак, как установить тулзы.

Для начала устанавливаем нужные пакеты для сборки тулзов (это тянется с доисторических времён, иначе есть риск, что нормально ничего не соберётся):

sudo apt-get install linux-headers-$(uname -r) make gcc

Если далее выполнить установку штатных тулзов из поставки VMWare:

mount the VMware tools cdrom and install VMware Tools sudo mount /dev/cdrom /media/cdrom tar xvzf /media/cdrom/VMwareTools-9.9.2-2496486.tar.gz cd vmware-tools-distrib sudo ./vmware-install.pl -d

То после презагрузки получим неработающий модуль vmhgfs. Цитирую конец лога установки:

/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: ошибка выполнения рецепта для цели «/tmp/modconfig-zqp0EX/vmhgfs-only/inode.o» make[4]: *** [/tmp/modconfig-zqp0EX/vmhgfs-only/inode.o] Ошибка 1 make[4]: *** Ожидание завершения заданий… /usr/src/linux-headers-3.16.0-4-common/Makefile:1350: ошибка выполнения рецепта для цели «_module_/tmp/modconfig-zqp0EX/vmhgfs-only» make[3]: *** [_module_/tmp/modconfig-zqp0EX/vmhgfs-only] Ошибка 2 Makefile:181: ошибка выполнения рецепта для цели «sub-make» make[2]: *** [sub-make] Ошибка 2 Makefile:8: ошибка выполнения рецепта для цели «all» make[1]: *** [all] Ошибка 2 make[1]: выход из каталога «/usr/src/linux-headers-3.16.0-4-amd64» Makefile:120: ошибка выполнения рецепта для цели «vmhgfs.ko» make: *** [vmhgfs.ko] Ошибка 2 make: выход из каталога «/tmp/modconfig-zqp0EX/vmhgfs-only»

The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature.

If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD.

Для устранения этой печальной проблемы нужно выполнить ряд действий по замене d_alias на d_u.d_alias в пакете vmhgfs:

#!/bin/sh -x cd /usr/lib/vmware-tools/modules/source tar xf vmhgfs.tar grep -q d_u.d_alias vmhgfs-only/inode.c && echo "already patched" && exit 0 sed -i -e s/d_alias/d_u.d_alias/ vmhgfs-only/inode.c cp -p vmhgfs.tar vmhgfs.tar.orig tar cf vmhgfs.tar vmhgfs-only vmware-config-tools.pl -d -m

После этого функционал Shared Folders от VMWare начнет нормально работать — в папке /mnt/ngfs появятся подключенные папки в настройках виртуальной машины. ПРИМЕЧАНИЕ: это метод, несовместим с более ранними версиями ядра (ниже 3.13.0-45)!!!

После этих исправлений я собрал обратно тулзы в архив, из которого теперь можно устанавливать тузлы не заморачиваясь с дополнительными действия по замене d_alias на d_u.d_alias. Если кому-то нужно я могу выложить файл. Подскажите только куда, файл весит 178Мб, хотелось бы выложить его на какой-то файловый хостинг без регистрации и прочей мороки, что бы он там пролежал год-два хотябы.

Справедливости ради, считаю, нужно отметить что не только на тулзах от vmware свет клином сошёлся. Существует замечательный проект open-vm-tools. Пакет, правда, давно не обновлялся, но в своё время я им вполне успешно обходился и всё там всегда сразу работало. К тому же open.

Так же добрые люди подсказывают, что существует еще удобный набор патчей vmware-tools-patches.


Смотрите также