How to install XenServer Tools – Linux
Within this tutorial we will cover how to install XenServer Tools to your virtual machines. This applies to CentOS, Debian and Red Hat operating systems.
1. Open up XenCenter and establish a connection to your XenServer. Here is an example of a Virtual Machine that is a fresh install but does not have XenServer Tools setup. You will notice that for “Virtualization State:” the software says “Tools not installed”.
2. Let’s get started by simply right-clicking on the name of our Virtual Machine and clicking “Install XenServer Tools”. A warning will come up stating that, “Any CD or DVD currently in the Virtual Machine’s CD drive will be ejected when xenServer Tools are installed.” Click on “Install ZenServer Tools” to continue unless you are currently using a CD in the VM. If so, continue this tutorial at a time when the virtual disk drive is free for use.
3. You should be sent to the console tab of XenCenter for your Virtual Machine. You will notice that at the top of the window, below the tabs that the software is telling you that it has the CD image of “xs-tools.iso” loaded into the DVD Drive. It also provides you with the device name within the system.
4. You can do the following steps via either the console or via an SSH session to the system. I will perform the installation using SSH. Here is the output of my session. Remember that the drive’s device name is provided by XenCenter.
$ ssh 10.17.37.243
If you would like to simply copy and paste into your shell, the following lines should perform all of the steps provided that you are assigned the same device name of /dev/xvdd
5. The XenServer Tools installation script does a reasonable job of determining the best way to install what it needs without much intervention. If everything went well you should be able to reboot your system from the command line and when it restarts you can see that XenServer Tools are installed as in the following image.
6. Now XenCenter will be able to have a bit more control of the operating system within the Virtual Machine and you will also be able to view the previously unavailable counters within the “Performance” tab of XenCenter.