Installing XCP-ng VM Tools is very simple

To do so, SSH in with Putty, or simply use desired VM’s Console, from XCP

then type the following three commands – admin rights required, so use sudo as show below;

$sudo mount /dev/cdrom /mnt
$sudo bash /mnt/Linux/install.sh
$sudo umount /dev/cdrom

Note, the above instructions are given at XCP-ng documentation at https://xcp-ng.org/docs/guests.html#linux relevant section is repeated below for ease of access;

________________________________________________________________________

Install from the guest tools ISO

#“Supported” Linux distributions

For distros that are supported by the install.sh script (Debian, CentOS, RHEL, SLES, Ubuntu…), the process is:

  • Attach the guest tools ISO to the guest from Xen Orchestra or using xe.
  • Then inside the VM, as root:
mount /dev/cdrom /mnt
bash /mnt/Linux/install.sh
umount /dev/cdrom
  • No need to reboot the VM even if the script asks to. That’s an old message from back when it was needed to install a kernel module in addition to the management agent. We’ll get rid of it at some point.
  • Eject the guest tools ISO

________________________________________________________________________

Note that the above example works flawlessly with Ubuntu 22.04, other Linux distros may differ and examples of each are given in the above XCP-ng documentation.

Leave a Reply