WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • Apple
You are here: Home / ESXi-Arm / Installing VMware Tools on Raspberry Pi OS for ESXi-Arm

Installing VMware Tools on Raspberry Pi OS for ESXi-Arm

10.15.2020 by William Lam // 6 Comments

Now that you have Raspberry Pi (rPI) OS running as a VM on ESXi-Arm, the next thing you will probably want to install is VMware Tools, especially useful to see the IP Address of your Guest if you are using DHCP and for enabling guest "soft" shutdown using the vSphere UI. Below are the instructions

Step 1 - Open Terminal after rPI OS has booted up and enable SSH

sudo systemctl enable ssh
sudo systemctl start ssh

Step 2 - Obtain the IP Address of your rPI OS and SSH to the system with the username pi and the password you had configured during the setup of rPI OS as a VM

Step 3 - Change to root and pull latest updates by running the following two commands:

sudo su -
apt update

Step 4 - Clone Open VM Tools repo and change into the inner directory by running the following commands:

git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/open-vm-tools/

Step 5 - Install the following packages which will be needed to compile VMware Tools from source:

apt install -y automake libtool 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 libgtk2.0-dev

Step 6 - Run the following commands to build and install VMware Tools:

autoreconf -i
./configure --without-x
make
make install
ldconfig

Step 7 - We need to create a new systemd unit file so that we can manage the VMware Tools service, do to so, run the following command:

cat > /etc/systemd/system/vmtoolsd.service << EOF
[Unit]
Description=
Description=Open VM Tools
After=
After=network-online.target

[Service]
ExecStart=
ExecStart=/usr/local/bin/vmtoolsd
Restart=always
RestartSec=1sec

[Install]
WantedBy=multi-user.target
EOF

Step 8 - Enable and start the VMware Tools service by running the following command:

systemctl enable vmtoolsd.service
systemctl start vmtoolsd.service

If everything was successfully installed and configured, you should be able to see that the status of VMware Tools is now running for your rPI OS running on ESXi-Arm!

More from my site

  • Cluster API BYOH Provider on Photon OS (Arm) with Tanzu Community Edition (TCE) and ESXi-Arm
  • Hybrid (x86 and Arm) Kubernetes clusters using Tanzu Community Edition (TCE) and ESXi-Arm
  • VEBA + Knative + k3s on ESXi-Arm
  • How to build a customizable Raspberry Pi OS Virtual Appliance (OVA)?
  • Stateless ESXi-Arm with Raspberry Pi
Share this...
  • Twitter
  • Facebook
  • Linkedin
  • Reddit
  • Pinterest

Categories // ESXi-Arm Tags // Arm, Raspberry Pi, vmware tools

Comments

  1. Aallon says

    10/16/2020 at 4:27 am

    We can run android os?

    Reply
    • William Lam says

      10/16/2020 at 5:37 am

      Try it out and let us know! I know in the past customers have ran Android OS for x86, but haven't looked into it

      Reply
  2. Marco says

    11/27/2020 at 7:09 am

    Thanks, I executed the steps on Ubuntu server 20.4 arm edition VM under ESXi on a Raspberry Pi 4 and it also works for that guest system

    Reply
  3. Bob says

    01/01/2021 at 2:15 pm

    This works pretty well, it now shows

    "Running, version:2147483647 (Guest Managed)"

    however I do get an error:

    "This virtual machine failed to become vSphere HA Protected and HA may not attempt to restart it after a failure."

    I'm running vCenter Server 7.0.1

    Reply
  4. Travis Thorne says

    04/24/2021 at 10:11 pm

    Hi,

    Thanks heaps for this guide.

    I copied & pasted the commands you listed above into a shell script, it work great .Thanks!

    install-vmware-tools.sh :

    ```
    #!/bin/sh

    # Change to root and pull latest updates by running the following two commands:

    sudo apt update

    # Clone Open VM Tools repo and change into the inner directory by running the following commands:

    git clone https://github.com/vmware/open-vm-tools.git
    cd open-vm-tools/open-vm-tools/

    # Install the following packages which will be needed to compile VMware Tools from source:

    sudo apt install -y \
    automake libtool 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 libgtk2.0-dev

    # Run the following commands to build and install VMware Tools:

    autoreconf -i
    ./configure without-x
    make
    sudo make install
    sudo ldconfig

    # We need to create a new systemd unit file so that we can
    # manage the VMware Tools service, do to so, run the following command:

    cat | sudo tee /etc/systemd/system/vmtoolsd.service << EOF
    [Unit]
    Description=
    Description=Open VM Tools
    After=
    After=network-online.target
    [Service]
    ExecStart=
    ExecStart=/usr/local/bin/vmtoolsd
    Restart=always
    RestartSec=1sec
    [Install]
    WantedBy=multi-user.target
    EOF

    # Enable and start the VMware Tools service by running the following command:

    sudo systemctl enable vmtoolsd.service
    sudo systemctl start vmtoolsd.service
    ```

    Reply
    • Travis Thorne says

      04/24/2021 at 10:18 pm

      oops, int the script I pasted, the line:
      ./configure without-x
      should be:
      ./configure --without-x

      Reply

Thanks for the comment! Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Support

Recent

  • Quick Tip - Prepare VMware Photon OS for use with vSphere Guest OS Customization and cloud-init 06/29/2022
  • Using the new vSphere Guest OS Customization with cloud-init in vSphere 7.0 Update 3 06/27/2022
  • How to forcefully disconnect a vSphere VM Console session? 06/24/2022
  • Quick Tip - Using ESXi Scripted Installation (kickstart) to configure IPv6 networking 06/21/2022
  • Hiking Trails 06/04/2022

Advertisment

Copyright WilliamLam.com © 2022

 

Loading Comments...