I have recently deployed a XenServer environment and was required to install the XenServer Tools on a virtual machine with Ubuntu install.
First I was required to switch to running commands with elevated root privelages.
Now, we are required to mount the XenServer Tools ISO on the virtual machine and then to run the following to mount the ISO and browse to the Linux installation directory.
mount /dev/xvdd /mnt cd /mnt/Linux
Now run the Debian package for XenServer Tools for the virtual machines architecture type, in the example below this is for a 64-bit instance type of Ubuntu.
dpkg -i xe-guest-utilties_6.2.0.-1120_amd64.deb