- Пошаговая инструкция по установке VMware Tools на Linux
- Установка
- Проверка
- Автозагрузка
- Удаление
- Не родная утилита (openvmtools)
- Команды VMware Tools
- Как проверить, запущены ли инструменты VMware на моем гостевом сервере Ubuntu? [закрыто]
- 5 ответов
- VMware Workstation 5.0
- Docs
- Prerequisites
- Procedure
- Results
- What to do next
- VMware Workstation 5.0
- VMware Tools for Linux Guests
- Installing VMware Tools within X
- Installing VMware Tools from the Command Line with the Tar Installer
- Installing VMware Tools from the Command Line with the RPM Installer
- Starting VMware Tools Automatically
- Uninstalling VMware Tools
Пошаговая инструкция по установке VMware Tools на Linux
VMware Tools увеличивают функциональные возможности виртуальной машины. Можно установить как родные утилиты, так и open-vm-tools из репозитория Linux. Рассмотрим оба варианта.
Установка
Процесс установки во многом похож на установку VMware Tools во FreeBSD.
Открываем консоль управления виртуальными машинами. Находим ту, на которую будем устанавливать VMware Tools. Кликаем по ней правой кнопкой мыши — Guest — Install/Upgrade VMware Tools:
Подтверждаем, нажатием OK — будет выполнено монтирование установочного образа утилит к виртуальной машине.
Теперь подключается к Linux по SSH и монтируем образ к гостевой системе следующей командой:
mount /dev/cdrom /mnt
* в некоторых версиях Linux, устройство CD-ROM может называться cdrom1.
Распаковываем архив с установочными скриптами во временную директорию:
tar -zxvf /mnt/VMwareTools-* -C /tmp/
CD-ROM нам больше не нужен — отмонтируем его:
Запускаем скрипт установки VMware Tools:
Если видим, примерно, такое сообщение:
open-vm-tools are available from the OS vendor and VMware recommends using
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [no]
отвечаем yes.
На все остальные вопросы отвечаем по умолчанию, нажимая Enter.
В сообщении, на которое мы ответили yes говориться о том, что лучше устанавливать VMware Tools при помощи open-vm-tools. Однако после такой установки, консоль VMware в статусе утилит виртуальной машины ставит вопросительный знак и пишет 3rdParty. Дав свое согласие, мы продолжили установку старым проверенным методом.
Запуск установки в автоматическом режиме (без необходимости отвечать на вопросы) можно запустить командой:
Проверка
Версию установленного ПО можно посмотреть следующей командой:
Теперь открываем консоль управления VMware — устанавливаем курсор на виртуальную машину с установленными тулзами и переходим на вкладку Summary. В графе VMware Tools мы должны увидеть зеленую галочку и значение Running:
Автозагрузка
При установке VMware Tools добавляются в автозагрузку. Действий не требуется.
Если по каким-либо причинам, этого не произошло, добавить запуск скрипта при запуске системы можно командой:
systemctl enable vmware-tools
Или в ранних системах.
update-rc.d vmware-tools defaults
chkconfig vmware-tools on
Удаление
Для удаления используется скрипт vmware-uninstall-tools.pl:
Не родная утилита (openvmtools)
Выше мы рассмотрели наиболее предпочтительный вариант установки vmtools. Однако, если по каким-либо причинам, у нас нет возможности установить утилиту таким образом, мы можем воспользоваться репозиторием установленной системы (само собой, при наличии данной утилиты в нем).
Установка выполняется разными командами в зависимости от используемой системы.
а) Deb (Ubuntu, Debian):
apt-get install open-vm-tools
б) RPM (Red Hat, CentOS, Rocky Linux):
yum install open-vm-tools
Для разрешения автозапуска утилиты и ее старта вводим команду:
systemctl enable vmtoolsd —now
Команды VMware Tools
После установки vmtools нам будут доступны дополнительные команды. К сожалению, они плохо документированы, поэтому не удалось найти их адекватное описание:
Команда | Примеры использования |
---|---|
vmware-namespace-cmd | vmware-namespace-cmd [OPTION?] [get-value | set-key | delete-key] [ ] |
vmware-rpctool | rpctool as an RPC command. |
vmtoolsd | vmtoolsd [OPTION] |
vmware-toolbox-cmd | vmware-toolbox-cmd [options] [subcommand] |
vmware-checkvm | vmware-checkvm (показывает версию VMware) |
vmware-vgauth-cmd | vmware-vgauth-cmd [OPTION] [add | list | remove] |
VGAuthService | VGAuthService [OPTION] |
vmware-xferlogs | vmware-xferlogs |
vmware-hgfsclient | vmware-hgfsclient |
vmhgfs-fuse | vmhgfs-fuse sharedir mountpoint [options] |
По каждой команде можно вызвать небольшую справку командой:
Источник
Как проверить, запущены ли инструменты VMware на моем гостевом сервере Ubuntu? [закрыто]
У меня есть сервер Ubuntu 9.10, работающий в качестве гостя от VMware Fusion. Как проверить, запущены ли инструменты VMware из командной строки?
5 ответов
Это работает в SLES:
Вы также можете проверить, запущены ли модули ядра vm
Протестировано на Ubuntu 12.xx
Он работает на моих машинах (с 12.04 по 14.04)
Убедитесь, что vmware-guestd запущен
Вы можете использовать initctl , чтобы запросить список известных заданий и экземпляров и вывести статус каждого из стандартного вывода:
Примечание. Важно префикс команды sudo (или войти в систему как root ). Если у вас нет привилегий root, вы можете получить сообщение об ошибке « unable to connect to system bus: failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory. ». Это очень запутанно.
Фильтрация результатов
Команда initctl может генерировать большой список результатов, которые передаются по многим экранам.
Итак, может быть лучше подключить стандартный вывод к программе paginator, например less или more
Однако, я предпочитаю передавать вывод в программу фильтра, например grep , например:
Выполняется initctl , но фильтрует его результаты, чтобы исключить все строки вывода, если они не содержат фразу vmware .
Понимание вывода
Я запустил команду grep-filter ( sudo initctl list | grep vmware ) и получил следующий вывод:
Первая строка подтвердила, что vmware-tools выполнял .
Если никакого вывода вообще не было, я бы предположил, что vmware-tools не работает .
Как initctl , каждая строка вывода отражает статус задания в формате:
Сначала задается имя задания, за которым следует текущая цель и состояние выбранного экземпляра. Цель — либо начать, либо остановить, статус может быть одним из ожидающих, запуска, предзапуска, порождения, пост-старт, запуск, предварительный останов, остановка, убой или пост-остановка.
Примечания
Для вашей информации моя машина была Ubuntu 13.10 Saucy Salamander Final Beta .
Просмотрите раздел справочной страницы initctl на list и status для получения дополнительной информации.
Для лучшего ознакомления с Linux-каналами и т. д. стоит прочитать те 26 коротких страниц этой оригинальной статьи: Unix Time-Sharing System , Д.М. Ричи и К. Томпсон
Источник
VMware Workstation 5.0
For best performance, it is important to have VMware Tools installed and running in your virtual machine.
After you install VMware Tools in a Windows virtual machine, the VMware Tools services start automatically when you start the guest operating system.
When VMware Tools is running in a Windows virtual machine, the VMware Tools icon appears in the system tray unless you disable the icon.
If the VMware Tools icon is not displayed in the system tray, you can use the VMware Tools control panel in the guest operating system. Go to Start > Settings > Control Panel or Start > Control Panel, depending on the version of Windows you are using, locate the VMware Tools icon and double-click it to change settings for VMware Tools. You can also reactivate the system tray icon. On the Options tab, select Show VMware Tools in the taskbar.
In a Linux or FreeBSD virtual machine, boot the guest operating system, start X and launch your graphical environment. Then you can launch the VMware Tools background application with this command:
You may run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).
With some window managers, you can place the command to start VMware Tools in a startup configuration so VMware Tools starts automatically when you start your graphical environment. Consult your window manager’s documentation for details.
Источник
Docs
—> share-line
—> —> —> —> plus
For Linux virtual machines, you manually install or upgrade VMware Tools by using the command line.
Install the latest version of VMware Tools to enhance the performance of the virtual machine’s guest operating system and improve virtual machine management. When you power on a virtual machine, if a new version of VMware Tools is available, you see a notification in the status bar of the guest operating system.
Prerequisites
- Power on the virtual machine.
- Verify that the guest operating system is running.
- Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.
- For vSphere virtual machines, to determine whether you have the latest version of VMware Tools, in the vSphere Client inventory, select the virtual machine and click the Summary tab.
Procedure
- Select the menu command to mount the VMware Tools virtual disc on the guest operating system.
VMware Product Menu Command vSphere Client Inventory > Virtual Machine > Guest > Install/Upgrade VMware Tools vSphere Web Client Right-click the virtual machine and select All vCenter Actions > Guest OS > Install/Upgrade VMware Tools . - To locate a virtual machine, select a datacenter, folder, cluster, resource pool, host, or vApp.
- Click the Related Objects tab and click Virtual Machines .
Fusion Virtual Machine > Install (or Upgrade) VMware Tools Workstation VM > Install (or Upgrade) VMware Tools Player Player > Manage > Install (or Upgrade) VMware Tools - In the virtual machine, log in to the guest operating system as root and open a terminal window.
- Run the mount command with no arguments to determine whether your Linux distribution automatically mounted the VMware Tools virtual CD-ROM image.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom , modify the command to reflect the conventions that your distribution uses.
The value x.x.x is the product version number, and yyyy is the build number of the product release.
If your Linux distribution automatically mounted the CD-ROM, you do not need to unmount the image.
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks.
Results
If you are using vCenter Server, the VMware Tools label on the Summary tab changes to OK .
What to do next
(Recommended) If you upgraded VMware Tools as part of a vSphere upgrade, next determine whether to upgrade the virtual machines in your environment. To review and compare the hardware available for different compatibility levels, see the vSphere Virtual Machine Administration documentation.
Источник
VMware Workstation 5.0
VMware Tools for Linux Guests
On a Linux guest, you can install VMware Tools within X or from the command line
Installing VMware Tools within X
You can install VMware Tools within X using the .tar installer in a terminal window. See Installing VMware Tools from the Command Line with the Tar Installer.
To install VMware Tools from X with the RPM installer:
1. Choose VM > Install VMware Tools.
The guest operating system mounts the VMware Tools installation virtual CD.
2. Double-click the VMware Tools CD icon on the desktop.
Note: In some Linux distributions, the VMware Tools CD icon may fail to appear when you install VMware Tools within an X windows session on a guest. In this case, you should continue installing VMware Tools as described in Installing VMware Tools from the Command Line with the Tar Installer, beginning with step 3.
3. Double-click the RPM installer in the root of the CD-ROM.
4. Enter the root password.
5. Click Continue.
The installer prepares the packages.
6. Click Continue when the installer presents a dialog box saying Completed System Preparation.
A dialog appears for Updating system, with a progress bar. When the installer is done, VMware Tools are installed. There is no confirmation or finish button.
7. In an X terminal, as root (su -), configure VMware Tools.
Respond to the questions the installer displays on the screen. Press Enter to accept the default value.
Note: Be sure to respond yes when the installer offers to run the configuration program.
8. Launch the VMware Tools background application:
Note: Some guest operating systems require a reboot for full functionality.
Installing VMware Tools from the Command Line with the Tar Installer
The first steps are performed on the host, within Workstation menus:
1. Power on the virtual machine.
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
The remaining steps take place inside the virtual machine.
3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
Note: Some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, you must modify the following commands to reflect the conventions used by your distribution.
Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is
/tmp/vmware-tools-distrib.4. Untar the VMware Tools tar file:
tar zxf /mnt/cdrom/VMwareTools-5.0.0- .tar.gz
Where is the build/revision number of the VMware Workstation release.
Note: If you attempt to install a tar installation over an rpm installation or the reverse the installer detects the previous installation and must convert the installer database format before continuing.
5. Run the .tar VMware Tools installer:
Respond to the configuration questions on the screen. Press Enter to accept the default value.
6. Log off of the root account.
7. Start X and your graphical environment.
8. In an X terminal, launch the VMware Tools background application.
Note: You may run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).
Installing VMware Tools from the Command Line with the RPM Installer
The first steps are performed on the host, within Workstation menus:
1. Power on the virtual machine.
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
The remaining steps take place inside the virtual machine.
3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
Note: Some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, you must modify the following commands to reflect the conventions used by your distribution.
Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is
/tmp/vmware-tools-distrib.4. At the command prompt, enter:
rpm -Uhv /mnt/cdrom/VMwareTools-5.0.0- .i386.rpm
Where is the build/revision number of the VMware Workstation release.
Note: If you attempt to install an rpm installation over a tar installation or the reverse the installer detects the previous installation and must convert the installer database format before continuing.
5. Configure VMware Tools:
Respond to the questions the installer displays on the screen. Press Enter to accept the default value.
6. Log off of the root account.
7. Start X and your graphical environment.
8. In an X terminal, launch the VMware Tools background application.
Note: You may run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).
Starting VMware Tools Automatically
You may find it helpful to configure your guest operating system so VMware Tools starts when you start your X server. The steps for doing so vary depending on your Linux distribution and your desktop environment. Check your operating system documentation for the appropriate steps to take.
For example, in a Red Hat Linux 7.1 guest using GNOME, follow these steps.
1. Open the Startup Programs panel in the GNOME Control Center.
Main Menu (click the foot icon in the lower left corner of the screen) > Programs > Settings > Session > Startup Programs
3. In the Startup Command field, enter vmware-toolbox.
4. Click OK, click OK again, then close the GNOME Control Center.
The next time you start X, VMware Tools starts automatically.
Uninstalling VMware Tools
To remove VMware Tools from your Linux guest operating system, log on as root (su -) and enter the following command:
Источник