Устанавливаем vmware tools linux

Устанавливаем vmware tools 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.

  • 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.
    • For vSphere virtual machines, 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

    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 .

    List the contents of the mount point directory and note the file name of the VMware Tools tar installer.

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

    Follow the prompts to accept the default values, if appropriate for your configuration. Follow the instructions at the end of the script.

    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.

    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.

    What to do next

    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 Tools на Linux

    Обновлено

    Обновлено: 18.02.2023 Опубликовано: 09.12.2016

    VMware Tools увеличивают функциональные возможности виртуальной машины. Можно установить как родные утилиты, так и open-vm-tools из репозитория Linux. Рассмотрим оба варианта.

    Установка

    Процесс установки во многом похож на установку VMware Tools во FreeBSD.

    Открываем консоль управления виртуальными машинами. Находим ту, на которую будем устанавливать VMware Tools. Кликаем по ней правой кнопкой мыши — GuestInstall/Upgrade VMware Tools:

    Монтирование дистрибутива VMware Tools к виртуальной машине

    Подтверждаем, нажатием OK — будет выполнено монтирование установочного образа утилит к виртуальной машине.

    Теперь подключается к Linux по SSH и монтируем образ к гостевой системе следующей командой:

    * в некоторых версиях 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 мы видим зеленую галочку со значение Running

    Автозагрузка

    При установке VMware Tools добавляются в автозагрузку. Действий не требуется.

    Если по каким-либо причинам, этого не произошло, добавить запуск скрипта при запуске системы можно командой:

    systemctl enable vmware-tools

    update-rc.d vmware-tools defaults

    Удаление

    Для удаления используется скрипт vmware-uninstall-tools.pl:

    Не родная утилита (openvmtools)

    Выше мы рассмотрели наиболее предпочтительный вариант установки vmtools. Однако, если по каким-либо причинам, у нас нет возможности установить утилиту таким образом, мы можем воспользоваться репозиторием установленной системы (само собой, при наличии данной утилиты в нем).

    Установка выполняется разными командами в зависимости от используемой системы.

    б) RPM (Red Hat, CentOS, Rocky Linux):

    Для разрешения автозапуска утилиты и ее старта вводим команду:

    systemctl enable vmtoolsd —now

    Команды VMware Tools

    После установки vmtools нам будут доступны дополнительные команды. К сожалению, они плохо документированы, поэтому не удалось найти их адекватное описание:

    Команда Примеры использования
    vmware-namespace-cmd vmware-namespace-cmd [OPTION?] [get-value | set-key | delete-key] []
    vmware-rpctool rpctool send 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 tools 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 Open VM Tools (README) and the VMware Compatibility Guide at https://www.vmware.com/resources/compatibility/search.php.

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