#!/bin/bash

source /opt/scripts_local/shared_functions.sh

echo "Installing Vm tools if required."
# vm tools
if ! _isVirt; then
  if ! ( sudo systemctl status qemu-guest-agent ) ; then
    sudo apt-get install qemu-guest-agent -y
    echo "Installing Vm tools: installing..."
  else
    echo "Installing Vm tools: already installed, skipping."
  fi
else
  echo "Installing Vm tools: not a Vm, skipping."
fi