Install vmtool on linux

Install vmtool on linux

It is recommended that you use Open VM Tools in Linux virtual machines.

For more information about Linux distributions supported by Open VM Tools, see https://github.com/vmware/open-vm-tools/blob/master/README.md and the VMware Compatibility Guide at https://www.vmware.com/resources/compatibility/search.php.

  • Modern Linux distributions not officially supported by tar tools.
    • Red Hat Enterprise Linux 8 and later releases.
    • CentOS 8 and later releases.
    • Oracle Linux 8 and later releases.
    • SUSE Linux Enterprise 15 and later releases.

    For the Linux virtual machines that have Open VM Tools installed but are not in the scope mentioned in the preceding bullet, Install/Update/Reinstall VMware Tools menu is enabled, so that you can install bundled tar tools on top of Open VM Tools to get Shared Folder (HGFS) feature support.

    For old Linux virtual machines not supported by Open VM Tools, perform the following steps to install tar tools.

    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.

    Procedure

    If the CD-ROM device is mounted, the CD-ROM device and its mount point are listed in a manner similar to the following output:

    /dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev)

    Some Linux distributions use different mount point names. For example, on some distributions the mount point is /media/VMware Tools rather than /mnt/cdrom . Modify the command to reflect the conventions that your distribution uses.

    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 location of this directory depends on where you placed it during the previous installation. Often this directory is placed in /tmp/vmware-tools-distrib .

    tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gz
    cd vmware-tools-distrib sudo ./vmware-install.pl

    Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running. 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.

    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.

    What to do next

    If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.

    Источник

    Установка VMware Tools на виртуальной машине с Linux

    В этой статье мы рассмотрим, как установить VMware Tools на виртуальных машинах с ОС семейства Linux. Развертывание VMTools в гостевой операционной системе виртуальной машины повышает производительность и управляемость ОС. Кроме того при установке VMTools некоторые из драйверов, включенных в ОС, заменяются версией, оптимизированной для виртуализации (например, драйвер vmxnet3). Также VMware Tools предоставляет API интерфейсы, такие как VIX, которые позволяют управлять виртуальными машинами. В этой статья мы покажем, как установить VMware Tools в популярных дистрибутивах Linux.

    В зависимости от дистрибутива Linux существует несколько способов установки VMware Tools. Наиболее часто используемым методом является установка из интегрированного в состав ESXI файла в формате ISO. Этот ISO файл, содержащий двоичные файлы vmtools (установочные файлы, скрипты и т. д.), монтируется в виртуальном CDROM из гостевого меню виртуальной машины. После этого vmtools устанавливаются с помощью скрипта Perl.

    Другой популярный метод установка с использованием пакета Open-VM-Tools (OVT) от VMware. Благодаря чему vmtools можно автоматически установить во время развертывания ОС или из репозитория (с использованием YUM или APT).

    Установка vmtools из встроенного ISO образа

    В этом примере мы покажем пример установки vmtools из ISO образа на примере виртуальной машины с Centos 6.x.

    ВМ без установленных vmtools

    Guest - data-lazy-src=

    Затем распакуйте архив vmtools в каталог /tmp.

    tar –zxf /vmtools/VmwareTools-*.tar.gz –C /tmp

    tar –zxf /vmtools/VmwareTools-*.tar.gz –C /tmp

    При этом могут быть обнаружены недостающие зависимости (особенно на свеже установленных виртуальных машинах). К примеру, чтобы скачать и установить YUM, необходимые для успешной установки vmtools, выполните команду:

    yum –y install kernel-devel gcc dracut make perl eject

    yum –y install kernel-devel gcc dracut make perl eject

    Теперь перейдите в каталог /tmp и запустите скрипт Perl (лучше оставить все настройки по-умолчанию).

    Чтобы убедиться, что процесс установки успешно завершен, проверьте статус VMware Tools в клиенте vSphere.

    статус VMware Tools в клиенте VMWare vSphere

    Установка open-vm-tools из репозитория

    Open-vm-tools (OVT)- это замена привычным VMware tools, разработанная компанией VMware, но с участием сообщества. VMware планирует прекратить поддержку VMware tools для тех дистрибутивов Linux, для которых имеется OVT версия. Разработка Open-vm-tools открыта и ведется на GitHub

    На данный момент OVT поддерживаются для следующие дистрибутивы Linux:

    • Fedora 19 и выше;
    • Debian 7.x и выше;
    • openSUSE 11.x и выше;
    • Ubuntu (12.04 LTS, 13.10 и выше)
    • Red Hat Enterprise Linux 7.0 и выше;
    • CentOS 7.0 и выше;
    • Oracle Linux 7.0 и выше;
    • SUSE Linux Enterprise 12 и выше.

    Далее я покажу, как установить open-vm-tools в популярных дистрибутивах Linux.

    По умолчанию пакет в системе не установлен. Установка проста, никаких дополнительных PPA не требуется, пакет включается во время установки.

    su
    apt-get update
    apt-get install open-vm-tools -y

    Пакет доступен в обычном репозитории без EPEL. В минимальной конфигурации по-умолчанию пакет не устанавливается. Запустите установку пакета и добавьте его в systemd:

    sudo yum install open-vm-tools
    sudo systemctl enable vmtoolsd
    sudo systemctl start vmtoolsd

    Ubuntu 16.04

    В моей тестовой системе с Ubuntu 16.04 оказался пакет уже установлен. В том случае, если у вас он отсутствует, устаовите его по аналогии с Ubuntu 14.04, но включение отличается, поскольку Ubuntu 16.04 и включите егов systemd.

    sudo apt-get update
    sudo apt-get install open-vm-tools –y
    sudo systemctl enable open-vm-tools
    sudo systemctl start open-vm-tools

    Обратите внимание, что после установки OVT в консоли vSphere, статус vmtools будет отображаться как «Running (Guest Managed)». Для сторонних vmtools статус будет «Running (3rd-party / Independent)».

    Источник

    Install vmtool on linux

    You are using an outdated browser. Please upgrade your browser to improve your experience.

    You can manually install VMware Tools on a Linux virtual machine using the command line. For later Linux distributions, use the integrated open-vm-tools version.

    For more information about Linux distributions supported by Open VM Tools, see https://github.com/vmware/open-vm-tools/blob/master/README.md and the VMware Compatibility Guide at https://www.vmware.com/resources/compatibility/search.php.

Оцените статью
Adblock
detector