Vmware tools linux package

Vmware tools linux package

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

    Обновлено

    Обновлено: 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

    This page explains how to install the VMware Tools on an Ubuntu guest VM.

    Installing VMware tools on an Ubuntu guest

    • the open-vm-tools package in Ubuntu
    • packages.vmware.com
    • your VMware host (this method does not use .deb packages)

    VMware recommends users to use open-vm-tools on Linux, including Ubuntu.

    Installing from Ubuntu package open-vm-tools on Trusty Tahr 14.04 and later

    open-vm-tools is the recommended method of installing VMware tools on Ubuntu. Packages are available in the main repository since 14.04.

    # For desktop: apt-get install open-vm-tools open-vm-tools-desktop # For server and headless installations: apt-get install open-vm-tools

    If you are on Trusty after upgrading from an older release, you may need to use open-vm-tools-lts-trusty-desktop instead.

    Legacy Ubuntu Installations

    Given the nature of virtualization, there may be a need for continued usage of very old versions of Ubuntu. Instructions for 10.04 to 12.04 are listed below. For anything older, please consult VMware’s installation guide.

    Installing from Operating System Specific Packages (OSPs) on Lucid Lynx 10.04 to Precise Pangolin 12.04

    The package open-vm-tools is available in the multiverse repository for releases 10.04 to 12.04. However, these versions are very out of date and may not have the drivers for newer versions of ESXi and VMware Workstation / Player / Fusion. For this reason, if you are still in need of a legacy Ubuntu VM, installation from VMware’s repository is recommended. Use 12.04 package for Ubuntu 12.10, 13.04 and 13.10 releases.

    Lucid: apt-add-repository 'deb https://packages.vmware.com/tools/releases/latest/ubuntu/ lucid main' Natty: apt-add-repository 'deb https://packages.vmware.com/tools/releases/latest/ubuntu/ natty main' Oneiric: apt-add-repository 'deb https://packages.vmware.com/tools/releases/latest/ubuntu/ oneiric main' Precise: apt-add-repository 'deb https://packages.vmware.com/tools/releases/latest/ubuntu/ precise main' wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub -q -O- | \ apt-key add - # (The above links to the latest builds of VMware-tools; however, # these packages should be compatible with all VMware servers, including the ESX 4 to vSphere ESXi 6.5. # Next update your repos apt-get update

    Note: using apt-add-repository will also add an entry for sources, which are not available in the vmware repository. You’ll need to manually delete the deb-src entry for «packages.vmware.com», which should be at the bottom of your /etc/apt/sources.list file.

    sudo apt-get install vmware-tools-esx-kmods-kernel_release # Where kernel_release is the kernel release and type returned by the uname -r command. # For example: vmware-tools-esx-kmods-2.6.32-21-generic # Then for desktop VMs or those that need graphics support sudo apt-get install vmware-tools-esx-nox # Or for server and headless installations sudo apt-get install vmware-tools-esx # Some versions may require kernel headers sudo apt-get install linux-headers-virtual

    Verify the succesful installation

    # Verify that the VMware Tools daemon, vmtoolsd, is running. pgrep -fl vmtoolsd # Verify that the required kernel modules load properly. /sbin/lsmod

    Kernel modules are only loaded for the virtual devices being used. However, the vmmemctl module should always be loaded.

    Installing from your VMware host

    Warning: This install method does not use Ubuntu packages. Instead, it bypasses dpkg and writes files directly to your system. This is generally not recommended.

    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` psmisc

    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

    # make a mount point if needed : sudo mkdir /media/cdrom # Mount the CD sudo mount /dev/cdrom /media/cdrom # Copy and extract VMWareTools sudo cp /media/cdrom/VMwareTools*.tar.gz ~/Desktop # You can extract with archive manager, right click on the archive and extract . or tar xvf VMwareTools*.tar.gz # Install as below

    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 (just hit the key).

    You can configure the tools as root

    Otherwise run them as a user (not root)

    • In order for the synchronized clipboard and mouse to function as well as the host shared folders feature, you must have vmware-toolbox running, although you can minimize the window.

    To have vmware tools auto start with your sessions, go to 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:

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

    Option "Protocol" "ExplorerPS/2"

    Additional Resources

    VMware/Tools (последним исправлял пользователь dpsi 2017-10-31 01:28:02)

    The material on this wiki is available under a free license, see Copyright / License for details
    You can contribute to this wiki, see Wiki Guide for details

    Источник

    Читайте также:  Linux выполнить последовательность команд
Оцените статью
Adblock
detector