Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

\uD83D\uDCD8 Instructions

  1. Remove existing open-vm-tools:

    Code Block
    sudo yum remove open-vm-tools
  2. Install open-vm-tools dependencies:

    Code Block
    yum install build-essential libmspack-devel libxml2-devel \ 
    xmlsec1-devel libXext-devel libXinerama-devel libXi-devel \ 
    libcurl-devel curl protobuf-compiler protobuf protobuf-devel \
    grpc-cpp rpc-plugins grpc-devel containerd-devel libtool-ltdl-devel \
    glib2-devel pam-devel
  3. Download latest open-vm-tools source:

    Code Block
    wget https://github.com/vmware/open-vm-tools/releases/download/stable-12.1.0/open-vm-tools-12.1.0-20219665.tar.gz
  4. Uncompress tar ball:

    Code Block
    tar xvf open-vm-tools-12.1.0-20219665.tar.gz
  5. Build open-vm-tools:

    Code Block
    cd open-vm-tools*
    autoreconf -i
    ./configure --without-x
    make
    sudo make install && sudo ldconfig
  6. Create vmtoolsd.service in /usr/lib/systemd/system/ with the following content:

    Code Block
    
    [Unit]
    Description=Service for virtual machines hosted on VMware
    Documentation=http://github.com/vmware/open-vm-tools
    ConditionVirtualization=vmware
    Requires=vgauthd.service
    After=vgauthd.service
    DefaultDependencies=no
    Before=cloud-init-local.service
    
    [Service]
    ExecStart=/usr/local/bin/vmtoolsd
    TimeoutStopSec=5
    
    [Install]
    WantedBy=multi-user.target
    Also=vgauthd.service
  7. Create vgauthd.service in /usr/lib/systemd/system/ with the following content:

    Code Block
    [Unit]
    Description=VGAuth Service for open-vm-tools
    Documentation=http://github.com/vmware/open-vm-tools
    ConditionVirtualization=vmware
    PartOf=vmtoolsd.service
    
    [Service]
    ExecStart=/usr/local/bin/VGAuthService -s
    TimeoutStopSec=5
    
    [Install]
    RequiredBy=vmtoolsd.service
  8. Reload systemd units:

    Code Block
    systemctl daemon-reload
  9. Enable and start units:

    Code Block
    systemctl enable --now vgauthd
    systemctl enable --now vmtoolsd
  10. Check open-vm-tools version with either vmtoolsd or vmware-rpctool:

    Code Block
    vmtoolsd --version
    VMware Tools daemon, version 12.1.0.37487 (build-20219665)
    
    vmtoolsd --cmd "info-get guestinfo.vmtools.description"
    open-vm-tools 11.0.5 build 15389592
    
    vmware-rpctool "info-get guestinfo.vmtools.description"
    open-vm-tools 11.0.5 build 15389592
  11. Finally, check with the vss-cli:

    Code Block
    vss-cli --columns moref,name,folder.path,tools_running_status,tools_version  compute vm ls -f name=vss-vm12345
    moref     name               folder.path       tools_running_status      tools_version
    --------  -----------------  ----------------  ----------------------  ---------------
    vm-12345  1803P-vss-vm12345  Public > Client1  guestToolsRunning                 12320

Filter by label (Content by label)
page
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@32c6ab3f
showSpacefalse
sortmodified
showSpacetypefalsepage
reversetruetype
labelskb-how-to-article
cqllabel = "kb-how-to-article" and type = "page" and space = "VSSPublic"labelskb-how-to-article