Skip to content

Instantly share code, notes, and snippets.

@mry
Created January 1, 2021 20:34
Show Gist options
  • Save mry/058de7cf95a89e5519c6bd0400f5437d to your computer and use it in GitHub Desktop.
Save mry/058de7cf95a89e5519c6bd0400f5437d to your computer and use it in GitHub Desktop.
Make and install vmware open-tools on Ubuntu 20.04 arm64
#!/bin/sh
apt update -y && apt upgrade -y
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
git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/open-vm-tools/
autoreconf -i
./configure --disable-dependency-tracking
make
make install
ldconfig
cat > /etc/systemd/system/vmtoolsd.service << EOF
[Unit]
Description=Service for virtual machines hosted on VMware
Documentation=http://github.com/vmware/open-vm-tools
After=network-online.target
[Service]
ExecStart=/usr/local/bin/vmtoolsd
Restart=always
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable vmtoolsd.service
systemctl start vmtoolsd.service
systemctl status vmtoolsd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment