×

VMware Tools for Ubuntu 20.04 LTS

lixiaoyao lixiaoyao 发表于2021-02-06 20:32:07 浏览2261 评论0

抢沙发发表评论

Prerequisites
Ubuntu 20.04 LTS (arm64) installed as a Virtual Machine on ESXi-Arm Fling.
Ubuntu Download: https://ubuntu.com/download/server/arm
ESXi Arm Edition: https://flings.vmware.com/esxi-arm-edition
open-vm-tools Documentation: https://github.com/vmware/open-vm-tools

Installation

  1. Open a Terminal or connect with SSH to your Ubuntu.

  2. Install tools and libraries that are required to build open-vm-tools.

    # apt install -y git automake make gobjc++ libtool pkg-config libmspack-dev libglib2.0-dev libpam0g-dev libssl-dev libxml2-dev libxmlsec1-dev libx11-dev libxext-dev libxinerama-dev libxi-dev libxrender-dev libxrandr-dev libxtst-dev libgdk-pixbuf2.0-dev libgtk-3-dev libgtkmm-3.0-dev
  3. Clone VMware's official open-vm-tools repository from GitHub.

    # git clone    // 国内 https://gitee.com/koomox/open-vm-tools 
    # cd open-vm-tools/open-vm-tools/
  4. Compile open-vm-tools.

    # autoreconf -i
    # ./configure --disable-dependency-tracking
    # make
    # make install
    # ldconfig
  5. Create a unit file. The file is required to run vmtoolsd as service with systemd.

    # cat > /etc/systemd/system/vmtoolsd.service << EOF
    [Unit]
    Description=Service for virtual machines hosted on VMware
    Documentation=   https://gitee.com/koomox/open-vm-tools 
    After=network-online.target
    
    [Service]
    ExecStart=/usr/local/bin/vmtoolsd
    Restart=always
    TimeoutStopSec=5
    
    [Install]
    WantedBy=multi-user.target
    EOF
  6. Enable and start the open-vm-tools service.

    # systemctl enable vmtoolsd.service
    # systemctl start vmtoolsd.service
  7. Verify that open-vm-tools are running

    # systemctl status vmtoolsd.service

You should now see that VMware Tools are running in the vSphere Client.


访客