Commenting for my future self and others as I just came across this issue too and it's not overly well documented and comments on the forums are often missing a a full story for how to debug and get this working......
When using Ubuntu 24.04, the usual apt method of installing XE Guest Utilities via the command;
apt-install xe-guest-utilities
Works, but doesn't. It successfully brings through the Memory information through to XO/XOA/XCP-ng Server, but not the IP Address, which is a tad strange.
When checking the version of xe-guest-utilities that is contained within the APT Repository that comes configured out of the box with Ubuntu 24.04 using the following command;
apt info xe-guest-utilities
You can see the response is that it is running version "7.20.2-0" (as at the time of writing, which is before running an apt update command.
Even when after running an update command;
sudo apt update
Then checking what packages are available to be updated using the following command;
apt list --upgradable
xe-guest-utilities wasn't available for an update past this point unfortunately.
So to uninstall xe-guest-utilities installed via APT, simply run the following command;
sudo apt remove xe-guest-utilities
Then install via XO/XOA/XCP-ng Guest-Tools.iso Mount + Command Line by following these steps. Firstly, Select the guest-utilities.iso from the Disk within the XO/XOA/XCP-ng Platform for the VM. Then SSH into the box/console view and run the following commands;
sudo /dev/cdrom /mnt
sudo bash /mnt/Linux/install.sh
sudo umount /dev/cdrom
What you will notice when you run the second command is that gets installed here is "xe-guest-utilities_7.30.0.12_amd64.deb" - So is further ahead.
Then you'll need to use the following commands to start the service on boot and also start the service.
systemctl enable xe-linux-distribution.service
systemctl start xe-linux-distribution.service
And that now results in the IP Address of the virtual machine flowing through to XO/XOA/XCP-ng, which ever you are using.